add user page markup

This commit is contained in:
2025-05-20 17:05:45 +03:00
parent 3bd474d7fe
commit 2eddb70d63
7 changed files with 186 additions and 42 deletions

View File

@ -45,10 +45,14 @@ $button_color: color.adjust($accent_color, $hue: 90);
body {
font-family: sans-serif;
margin: 20px 20px 0px 20px;
margin: 20px;
background-color: $main_bg;
}
.big {
font-size: 1.8rem;
}
#topnav {
@include navbar($accent_color);
justify-content: space-between;
@ -59,12 +63,17 @@ body {
@include navbar($dark_bg);
}
#threadnav {
.darkbg {
padding-bottom: 10px;
padding-left: 10px;
background-color: $dark_bg;
}
.user-actions {
display: flex;
column-gap: 15px;
}
.site-title {
display: inline;
padding-right: 30px;
@ -123,6 +132,40 @@ body {
padding: 5px 20px;
}
.user-posts {
display: grid;
grid-template-columns: 200px 1fr;
grid-template-rows: 1fr;
gap: 0;
grid-auto-flow: row;
grid-template-areas:
"user-page-usercard user-posts-container";
border: 2px outset $dark2;
}
.user-page-usercard {
grid-area: user-page-usercard;
display: flex;
flex-direction: column;
align-items: center;
padding: 20px 10px;
border: 4px outset $light;
background-color: $dark_bg;
border-right: solid 2px;
}
.user-posts-container {
grid-area: user-posts-container;
display: grid;
grid-template-columns: 1fr;
grid-template-rows: 0.2fr 2.5fr;
gap: 0px 0px;
grid-auto-flow: row;
grid-template-areas:
"post-info"
"post-content";
}
.avatar {
width: 90%;
height: 90%;