user page style now similar to login

This commit is contained in:
Mystikfluu 2022-06-03 08:42:30 +02:00
parent 00e5ed3c21
commit c05c5d47e0
2 changed files with 34 additions and 12 deletions

View File

@ -4,10 +4,14 @@
body {
background-color: black;
color: white;
color: black;
text-align: center;
}
h1 {
color: white;
}
button {
font-size: 18px;
margin: 10px;
@ -18,7 +22,7 @@ button {
}
#bio {
color:white;
color:black;
font-size: 20px;
background-color: black;
border: 0px solid black;
@ -26,6 +30,16 @@ button {
}
.bio {
color:white;
color:black;
font-size: 20px;
}
main {
display: flex;
align-items: center;
justify-content: center;
height: 75vh;
width: 100%;
background: url(https://upload.wikimedia.org/wikipedia/commons/thumb/0/0b/Mountains-1412683.svg/1280px-Mountains-1412683.svg.png) no-repeat center center;
background-size: cover;
}

View File

@ -15,15 +15,23 @@
<li><a href="/user">Profile</a></li>
<li><a href="/posts">Posts</a></li>
</ul>
<h1>Welcome Back!</h1>
<h2 id="user">User: USER</h2>
<br>
<span class="bio">Bio: <input type="text" id="bio" disabled placeholder="wow such empty"></span>
<button id="changeBio" onclick="bioChanger()">Change Bio</button>
<br>
<button onclick="location.assign('/changePW')">Want to change your password?</button>
<br>
<button onclick="location.assign('/posts')">Want to chat with some cool fellas?</button>
<header>
<h1>Welcome Back!</h1>
</header>
<main>
<form id="login_form" class="form_class" action="login" method="post">
<div class="info_div">
<h2 id="user">User: USER</h2>
<br>
<span class="bio">Bio: <input type="text" id="bio" disabled placeholder="wow such empty"></span>
<button id="changeBio" onclick="bioChanger()">Change Bio</button>
<br>
<button onclick="location.assign('/changePW')">Want to change your password?</button>
<br>
<button onclick="location.assign('/posts')">Want to chat with some cool fellas?</button>
</div>
</form>
</main>
<script>
async function setuser() {
let user = await (await fetch("/api/getuser")).json();