mirror of
https://gitea.smigz.com/smiggiddy/odin-codeprojects.git
synced 2025-05-10 04:05:22 -04:00
Admin dashboard (#5)
* feat: base html/css * feat: aligment and setting up grids * fix: update titles * feat: card formatting and colors * feat: add bg colors/border radius * feat: finished topbar
This commit is contained in:
parent
b96438787d
commit
eb98c77d0d
4 changed files with 394 additions and 0 deletions
159
admin-dashboard/css/style.css
Normal file
159
admin-dashboard/css/style.css
Normal file
|
@ -0,0 +1,159 @@
|
|||
|
||||
:root {
|
||||
--dark-bg: #2C3639;
|
||||
--light-bg: #DCD7C9;
|
||||
--dark-bg-color-2: #EBE3D5;
|
||||
--content-color: #FAF6F0;
|
||||
--card-color: #B0A695;
|
||||
}
|
||||
|
||||
* {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.container {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 5fr;
|
||||
}
|
||||
|
||||
.sidebar {
|
||||
grid-row: 1 / 3;
|
||||
background-color: var(--dark-bg);
|
||||
color: var(--light-bg);
|
||||
}
|
||||
|
||||
.navbar {
|
||||
grid-column: 1 / 2;
|
||||
display: grid;
|
||||
grid-template-rows: repeat(auto-fit, minmax(60px, 1fr));
|
||||
justify-content: center;
|
||||
gap: 40px;
|
||||
}
|
||||
|
||||
.navbar ul>a>h1 {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 1.3rem;
|
||||
font-size: 2rem;
|
||||
}
|
||||
|
||||
.topbar-header {
|
||||
margin: 12px 0;
|
||||
}
|
||||
|
||||
.topbar-header > [class="material-symbols-outlined"] {
|
||||
font-size: 40px;
|
||||
}
|
||||
|
||||
.navbar ul>a>li {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 1rem;
|
||||
font-size: 1.4rem;
|
||||
padding: 5px;
|
||||
margin-top: 20px;
|
||||
margin-left: 10px;
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
|
||||
|
||||
.topbar {
|
||||
background-color: var(--dark-bg-color-2);
|
||||
box-shadow: 0 3px 10px rgb(0 0 0 / 0.2);
|
||||
grid-row: 1 / 1;
|
||||
grid-column: 2 / 3;
|
||||
margin: 20px;
|
||||
border-radius: 10px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
}
|
||||
|
||||
.topbar ul {
|
||||
padding: 20px;
|
||||
display: flex;
|
||||
justify-content: flex-start;
|
||||
gap: 20px;
|
||||
margin-left: 10px;
|
||||
}
|
||||
|
||||
.topbar .user-info {
|
||||
margin-right: 20px;
|
||||
align-self: center;
|
||||
|
||||
}
|
||||
|
||||
.user-info {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
gap: 20px;
|
||||
}
|
||||
|
||||
.user-info img {
|
||||
height: 2.2rem;
|
||||
border: 2px #2C3639 solid;
|
||||
border-radius: 50%;
|
||||
}
|
||||
|
||||
.user-info span {
|
||||
font-size: 2.2rem;
|
||||
}
|
||||
|
||||
.content-header {
|
||||
margin-left: 20px;
|
||||
margin-top: 20px;
|
||||
}
|
||||
|
||||
|
||||
.cards {
|
||||
grid-column: 2 / 3;
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
|
||||
padding: 20px;
|
||||
gap: 20px;
|
||||
}
|
||||
|
||||
.card {
|
||||
word-wrap: wrap;
|
||||
min-width: 300px;
|
||||
padding: 20px;
|
||||
border-radius: 2%;
|
||||
background-color: var(--card-color);
|
||||
}
|
||||
|
||||
.card h1 {
|
||||
font-size: 1.5rem;
|
||||
margin-bottom: 6px;
|
||||
text-align: left;
|
||||
padding: 8px;
|
||||
}
|
||||
|
||||
.card p {
|
||||
font-size: 0.9rem;
|
||||
padding: 8px;
|
||||
}
|
||||
|
||||
.card-icons {
|
||||
margin: 5px;
|
||||
display: flex;
|
||||
justify-content: flex-end;
|
||||
}
|
||||
|
||||
|
||||
ul {
|
||||
list-style-type: none;
|
||||
}
|
||||
|
||||
body {
|
||||
font-family: 'Fira Sans', sans-serif;
|
||||
font-size: 16px;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
background-color: var(--light-bg);
|
||||
}
|
||||
|
||||
a {
|
||||
text-decoration: none;
|
||||
color: inherit;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue