diff --git a/db/moona_data.db b/db/moona_data.db index ea51aec..dd37cb7 100644 Binary files a/db/moona_data.db and b/db/moona_data.db differ diff --git a/static/css/base.css b/static/css/base.css index dc1335c..280e427 100644 --- a/static/css/base.css +++ b/static/css/base.css @@ -2,11 +2,11 @@ font-family: 'Montserrat Alternates', sans-serif; } body { - font-family: 'Comfortaa', cursive; + font-family: 'Comfortaa', cursive; } .upp_zag { -margin-left: auto; - margin-right: auto; -text-align: center; -margin-top: 50px; + margin-left: auto; + margin-right: auto; + text-align: center; + margin-top: 50px; } \ No newline at end of file diff --git a/static/css/diary.css b/static/css/diary.css index b3bef88..af196d0 100644 --- a/static/css/diary.css +++ b/static/css/diary.css @@ -24,9 +24,9 @@ summary { margin-bottom: 10px; } .my_author { - width:148px; - height:44px; - left:255px; + width:40%; + height:5%; + left:10%; -webkit-border-radius: 22px; -moz-border-radius: 22px; border-radius: 22px; @@ -40,6 +40,9 @@ summary { #image { width: 70%; } +.card-body { + background-color: #7fc3ff; +} #all_my_post, #all_my_post1 { margin-left: auto; margin-right: auto; @@ -53,10 +56,9 @@ summary { margin-bottom: 20px; } .my_author, .my_post_zag { - text-align: center; - margin-left: auto; + margin-left: 50%; margin-right: auto; - margin-top: 25px; + margin-top: -20%; } .pub, .private { width: 60%; @@ -102,6 +104,10 @@ textarea { display:inline-block; vertical-align: top; } +.but { + width: 80%; + margin-bottom:5%; +} #all_my_question { width: 30%; height: -100%; @@ -109,7 +115,7 @@ textarea { .question, .my_post { background-color:#7fc3ff; border-radius: 22px; - width: 90%; + width: 100%; margin-left: 10px; } .is_ans { diff --git a/static/css/main.css b/static/css/main.css index bf4c0c3..ee214b3 100644 --- a/static/css/main.css +++ b/static/css/main.css @@ -1,49 +1,153 @@ +.bad_user { + margin-left: auto; + margin-right: auto; + background-color: #1daff0; + color: #ffffff; + width: 50%; + height: 55%; + -webkit-border-radius:22px; + -moz-border-radius: 22px; + border-radius: 22px; + border:2px solid #ffffff; + margin-top: 20px; +} +#main_table { + margin-left:7% +} +.bad_centre { + text-align: center; +} +summary { + margin-bottom: 10px; +} +.pos_emot { + margin-bottom: 10px; +} +.nig_emot { + margin-bottom: 10px; +} +.my_author { + width:40%; + height:5%; + left:10%; + -webkit-border-radius: 22px; + -moz-border-radius: 22px; + border-radius: 22px; + border:2px solid #ffffff; + background-color:#1daff0; + top: 98px; +} +.emot { + margin-bottom: 30px; +} +#image { + width: 70%; +} +.card-body { + background-color: #7fc3ff; +} +#all_my_post, #all_my_post1 { + margin-left: auto; + margin-right: auto; +} +#my_post, #my_post1 { + text-align: center; + margin-left: auto; + margin-right: auto; + background-color: #7fc3ff; + border-radius: 50px; + margin-bottom: 20px; +} +.my_author, .my_post_zag { + margin-left: 50%; + margin-right: auto; + margin-top: -20%; +} +.pub, .private { + width: 60%; + height: 10%; + margin-left: auto; + margin-right: auto; +} #add_post { margin-top: 20px; margin-left: 83%; } -.row1, .row2, .row3 { - width: 33%; +#edit_btn, #edit_btn1 { + background-color: #c5f1ff; +} +input[type=text], input[type=email], input[type=password], input[type=file], input[type=number]{ + padding:10px; + border:5; + box-shadow:0 0 15px 4px rgba(0,0,0,0.06); + border-radius:10px; +} +textarea { + width:100%; + resize: vertical; + padding:10px; + border-radius:10px; + border:5; + box-shadow:0 0 15px 4px rgba(0,0,0,0.06); + height:150px; +} +.post_form { + margin-left: auto; + margin-right: auto; + width: 80%; + height: 50% +} +.box { + margin-left: 20px; +} +.row2, .row1, .row3{ + width: 30%; +} +.row1, .row2, .question, .row3{ display:inline-block; vertical-align: top; - margin-top: 39px; } -.rowdiv1, .rowdiv2, .rowdiv3 { - width: 95%; +.but { + width: 80%; + margin-bottom:5%; } -.post_zag, .card-text, .card-body, .post_zag, .author { - width: 90%; - margin-left: auto; - margin-right: auto; - text-align: center; +#all_my_question { + width: 30%; + height: -100%; } -.post { - background-color: #7fc3ff; - border-radius: 50px; - width: 90%; - height: 95%; - margin-bottom: 20px; -} -details { - color: #ffffff; -} -#main_table { - margin-left: 10%; - margin-right: auto; - width: 90%; -} -.question { +.question, .my_post { background-color:#7fc3ff; border-radius: 22px; - width: 90%; - margin-left: 10px; + width: 100%; } .is_ans { background-color:#ddefff; border:2px solid #ffffff; border-radius: 25px; - width: 95%; + width: 380px; } -.but { - width: 80%; +.emot_block { + color: #ffffff; + font-weight: bolder; +} +table { + margin-left: 10%; + width: 90%; +} +.like { + width: 50%; + margin-left: auto; + margin-right: auto; +} +.row1_div, .row2_div, .row3div { + width: 100%; +} +td { + margin: 20px; +} +#all_my_question { +width: 25%; +} +.is_ans { +width: 95%; } \ No newline at end of file diff --git a/static/css/publications.css b/static/css/publications.css index da17a29..aa022a9 100644 --- a/static/css/publications.css +++ b/static/css/publications.css @@ -1,41 +1,141 @@ -.but { - width: 80%; -} -table { - margin-left: 10%; - margin-right: auto; - width: 90%; -} -#row1, #row2, #row3 { - width: 33%; - display:inline-block; - vertical-align: top; - margin-top: 39px; -} -#row1_div, #row2_div, #row3_div { - width: 95%; -} -.post_zag, .card-text, .card-body, .post_zag, .author { - width: 90%; +.bad_user { margin-left: auto; margin-right: auto; - text-align: center; + background-color: #1daff0; + color: #ffffff; + width: 50%; + height: 55%; + -webkit-border-radius:22px; + -moz-border-radius: 22px; + border-radius: 22px; + border:2px solid #ffffff; + margin-top: 20px; } -.post { +.bad_centre { + text-align: center; + margin-left:20%; + margin-right: -20% +} +summary { + margin-bottom: 10px; +} +.pos_emot { + margin-bottom: 10px; +} +.nig_emot { + margin-bottom: 10px; +} +.my_author { + width:40%; + height:5%; + left:10%; + -webkit-border-radius: 22px; + -moz-border-radius: 22px; + border-radius: 22px; + border:2px solid #ffffff; + background-color:#1daff0; + top: 98px; +} +.emot { + margin-bottom: 30px; +} +#image { + width: 70%; +} +.card-body { + background-color: #7fc3ff; +} +#all_my_post, #all_my_post1 { + margin-left: auto; + margin-right: auto; +} +#my_post, #my_post1 { + text-align: center; + margin-left: auto; + margin-right: auto; background-color: #7fc3ff; border-radius: 50px; - width: 90%; - height: 95%; margin-bottom: 20px; } -details { - color: #ffffff; +.my_author, .post_zag { + margin-left: 50%; + margin-right: auto; + margin-top: -20%; +} +.pub, .private { + width: 60%; + height: 10%; + margin-left: auto; + margin-right: auto; } #add_post { margin-top: 20px; margin-left: 83%; } -.hz1 { - margin: 5%; - font-size: 160%; +#edit_btn, #edit_btn1 { + background-color: #c5f1ff; +} +input[type=text], input[type=email], input[type=password], input[type=file], input[type=number]{ + padding:10px; + border:5; + box-shadow:0 0 15px 4px rgba(0,0,0,0.06); + border-radius:10px; +} +textarea { + width:100%; + resize: vertical; + padding:10px; + border-radius:10px; + border:5; + box-shadow:0 0 15px 4px rgba(0,0,0,0.06); + height:150px; +} +.post_form { + margin-left: auto; + margin-right: auto; + width: 80%; + height: 50% +} +.box { + margin-left: 20px; +} +#row2, #row1 { + width: 30%; +} +#row1, #row2, #all_my_question { + display:inline-block; + vertical-align: top; +} +.but { + width: 80%; + margin-bottom:5%; +} +#all_my_question { + width: 30%; + height: -100%; +} +.question, .my_post { + background-color:#7fc3ff; + border-radius: 22px; + width: 100%; + margin-left: 10px; +} +.emot_block { + color: #ffffff; + font-weight: bolder; +} +table { + margin-left: 10%; + width: 90%; +} +.like { + width: 50%; + margin-left: auto; + margin-right: auto; +} +#row1_div, #row2_div { +width: 98%; +} +td { + margin: 20px; } \ No newline at end of file diff --git a/templates/base.html b/templates/base.html index b26a98c..b8307c6 100644 --- a/templates/base.html +++ b/templates/base.html @@ -21,11 +21,8 @@ } } - - - +
+ {% if item.public == 1 or item.public == 'True' %} + + {% else %} + + {% endif %} +
+ {{ current_user.name }} +
+
+ + {% if emotion_for_you[loop.index0]['is_like'] %} + + {% else %} + + {% endif %} + + {% if emotion_for_you[loop.index0]['like'] != None %} +

{{emotion_for_you[loop.index0]['like']}}

+ {% endif %} +
+
+ + Изменить + + + Удалить +
-

- {% endfor %} - - {% endif %} -
- {{ emotion_for_you[loop.index0]['author'].name }}
- {{item.date}} + {% endfor %}
- {% endfor %} - - {% else %} -
-

Ничего не нашлось :с

-
- {% endif %} + {% else %} +
+

Ничего не нашлось :с

+
+ {% endif %}