updates account design
This commit is contained in:
parent
14670ae871
commit
b0f4e98513
BIN
server/static/css/.main.css.swp
Normal file
BIN
server/static/css/.main.css.swp
Normal file
Binary file not shown.
@ -1,3 +1,9 @@
|
|||||||
|
|
||||||
|
body *
|
||||||
|
{
|
||||||
|
font-family: "Trebuchet MS", Helvetica, sans-serif;
|
||||||
|
}
|
||||||
|
|
||||||
.logins {
|
.logins {
|
||||||
height: 100px;
|
height: 100px;
|
||||||
width: 500px;
|
width: 500px;
|
||||||
@ -67,48 +73,16 @@
|
|||||||
text-align: left;
|
text-align: left;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
/* The sidebar menu */
|
|
||||||
.sidenav {
|
|
||||||
height: 100%; /* Full-height: remove this if you want "auto" height */
|
|
||||||
width: 160px; /* Set the width of the sidebar */
|
|
||||||
position: fixed; /* Fixed Sidebar (stay in place on scroll) */
|
|
||||||
z-index: 1; /* Stay on top */
|
|
||||||
top: 0; /* Stay at the top */
|
|
||||||
left: 0;
|
|
||||||
background-color: #111; /* Black */
|
|
||||||
overflow-x: hidden; /* Disable horizontal scroll */
|
|
||||||
padding-top: 20px;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* The navigation menu links */
|
|
||||||
.sidenav a {
|
|
||||||
padding: 6px 8px 6px 16px;
|
|
||||||
text-decoration: none;
|
|
||||||
font-size: 25px;
|
|
||||||
color: #818181;
|
|
||||||
display: block;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* When you mouse over the navigation links, change their color */
|
|
||||||
.sidenav a:hover {
|
|
||||||
color: #f1f1f1;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Style page content */
|
/* Style page content */
|
||||||
.main {
|
.main {
|
||||||
margin-left: 160px; /* Same as the width of the sidebar */
|
|
||||||
padding: 30px 10px;
|
padding: 30px 10px;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
justify-content: center;
|
||||||
|
align-items: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* On smaller screens, where height is less than 450px, change the style of the sidebar (less padding and a smaller font size) */
|
|
||||||
@media screen and (max-height: 450px) {
|
|
||||||
.sidenav {padding-top: 15px;}
|
|
||||||
.sidenav a {font-size: 18px;}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/* slider */
|
|
||||||
|
|
||||||
/* The switch - the box around the slider */
|
/* The switch - the box around the slider */
|
||||||
.switch {
|
.switch {
|
||||||
position: relative;
|
position: relative;
|
||||||
@ -171,3 +145,63 @@
|
|||||||
.slider.round:before {
|
.slider.round:before {
|
||||||
border-radius: 50%;
|
border-radius: 50%;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.container {
|
||||||
|
display: inline-flex;
|
||||||
|
justify-content: center;
|
||||||
|
align-items:center;
|
||||||
|
flex-direction: row;
|
||||||
|
padding: 0px 2rem 0px 2rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.container .button {
|
||||||
|
padding: 1rem 1.5rem 1rem 1.5rem;
|
||||||
|
font-size: 2rem;
|
||||||
|
margin: 4rem;
|
||||||
|
color: black;
|
||||||
|
text-decoration: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.container .button.logout {
|
||||||
|
background-color: #ddd;
|
||||||
|
}
|
||||||
|
|
||||||
|
.container .button.delete {
|
||||||
|
background-color: #b51409;
|
||||||
|
}
|
||||||
|
|
||||||
|
.sub.container {
|
||||||
|
width: 20rem;
|
||||||
|
justify-content: left;
|
||||||
|
}
|
||||||
|
|
||||||
|
.profile {
|
||||||
|
display: inline-flex;
|
||||||
|
justify-content: center;
|
||||||
|
align-items:center;
|
||||||
|
flex-direction: row;
|
||||||
|
}
|
||||||
|
|
||||||
|
.profile .picture {
|
||||||
|
width: 4rem;
|
||||||
|
height: 4rem;
|
||||||
|
border-radius: 50%;
|
||||||
|
margin-right: 2rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.profile .name {
|
||||||
|
font-size: 3rem;
|
||||||
|
color: #333;
|
||||||
|
}
|
||||||
|
|
||||||
|
.sub.container .name {
|
||||||
|
margin-right: 1rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
.sub.container .data {
|
||||||
|
background: #ddd;
|
||||||
|
padding: 5px;
|
||||||
|
border-radius: 5px;
|
||||||
|
margin-right: 1rem;
|
||||||
|
}
|
||||||
|
BIN
server/template/.account.html.swp
Normal file
BIN
server/template/.account.html.swp
Normal file
Binary file not shown.
@ -1,8 +1,17 @@
|
|||||||
{% extends "sidebar.html" %}
|
{% extends "sidebar.html" %}
|
||||||
{% block body%}
|
{% block body%}
|
||||||
<p>Hello, {{ username }}! You're logged in! Email: {{email}}</p>
|
<div class="container profile">
|
||||||
<div><p>Google Profile Picture:</p>
|
<img class="picture" src={{ profile_img }} alt="Profile Picture"></img>
|
||||||
<img src={{ profile_img }} alt="Google profile pic"></img></div>
|
<p class="name"> {{ username }} </p>
|
||||||
<a class="button" href="/logout">Logout</a>
|
</div>
|
||||||
<a class="button" href="/test">test API</a>
|
<div class="sub container">
|
||||||
|
<p class=name>E-mail </p><p class=data> {{email}}</p>
|
||||||
|
</div>
|
||||||
|
<div class="sub container">
|
||||||
|
<p class=data>0</p><p class=name> Devices </p>
|
||||||
|
</div>
|
||||||
|
<div class=container>
|
||||||
|
<a class="button logout" href="/logout">Logout</a>
|
||||||
|
<a class="button delete" href="/delete_account">Delete Account</a>
|
||||||
|
</div>
|
||||||
{% endblock %}
|
{% endblock %}
|
Loading…
Reference in New Issue
Block a user