소스 검색

Изменил страницу профиля: убрал головной блок

Andrei 2 년 전
부모
커밋
a346474a89
3개의 변경된 파일14개의 추가작업 그리고 23개의 파일을 삭제
  1. 5 4
      static/css/profile.css
  2. 6 18
      templates/profile.html
  3. 3 1
      templates/showcase.html

+ 5 - 4
static/css/profile.css

@@ -6,7 +6,8 @@
     background: linear-gradient( rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8) ), url(../images/back_profile_one.jpg);background-repeat: repeat;  background-position: center;
 }
 .profile_block {
-    height: 57vw;
+    margin-top: 5vw;
+    height: 65vw;
     width: 85%;
     margin-left: 7.5%;
     margin-bottom: 6%;
@@ -99,12 +100,12 @@ form {
     padding-left: 15px;
 }
 #logout_button {
-    color: #000000;
-    background-color:#f5d3b8;
+    color: #ffffff;
+    background-color:#ff3f3f;
 }
 #logout_button:hover {
     text-decoration: none;
-    color: #000000;
+    color: #ffffff;
 }
 .profile_button_text {
     width: 100%;

+ 6 - 18
templates/profile.html

@@ -1,24 +1,7 @@
 <link rel="stylesheet" href="../static/css/profile.css"/>
 {% extends "base.html" %} {% block content %}
 <div class="profile_page">
-    <div class="open_button_block">
-        <div class="open_button_content">
-            <h2 class="open_button_title">Профиль</h2>
-            <p class="open_button_article">Здесь можно поменять настройки учетной записи</p>
-            <a class="open_button" data-bs-toggle="collapse" href="#collapseExample" role="button" aria-expanded="false"
-               aria-controls="collapseExample">
-                <div class="open_button_text">
-                    Редактировать
-                </div>
-            </a>
-            <a class="profile_button" id="logout_button" href="/logout">
-                <div class="profile_button_text">
-                    <p>Выйти</p>
-                </div>
-            </a>
-        </div>
-    </div>
-    <div class="profile_block collapse" id="collapseExample">
+    <div class="profile_block">
         <div class="header_profile">
             <img class="user_photo" src="../{{current_user.photo}}"/>
         </div>
@@ -94,6 +77,11 @@
                 </div>
                 <div class="form_data_button">
                     {{ form.submit(type="submit", class="profile_button") }}
+                    <a class="profile_button" id="logout_button" href="/logout">
+                        <div class="profile_button_text">
+                            <p>Выйти</p>
+                        </div>
+                    </a>
                 </div>
             </form>
         </div>

+ 3 - 1
templates/showcase.html

@@ -1,6 +1,8 @@
 <link rel="stylesheet" href="../static/css/showcase.css"/>
 {% extends "base.html" %} {% block content %}
 <div class="showscale_page">
-s
+<div class="header">
+
+</div>
 </div>
 {% endblock %}