Initial commit
This commit is contained in:
@@ -0,0 +1,75 @@
|
||||
body{
|
||||
display: grid;
|
||||
grid-row: span;
|
||||
grid:
|
||||
"header header header"
|
||||
"main main main"
|
||||
"footer footer footer";
|
||||
grid-template-columns:250px auto 20%;
|
||||
column-gap: 10px;
|
||||
|
||||
font-family: 'Gowun Dodum', sans-serif;
|
||||
background-color: #EAEDF8;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
header{grid-area: header;}
|
||||
nav{grid-area: nav;}
|
||||
main{grid-area: main;}
|
||||
aside{grid-area: aside;}
|
||||
footer{grid-area: footer;}
|
||||
|
||||
footer{
|
||||
position: fixed;
|
||||
bottom: 0px;
|
||||
padding: 15px;
|
||||
text-align: center;
|
||||
background-color: #343434;
|
||||
color: white;
|
||||
margin-top: 20px;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
header{
|
||||
background-color: white;
|
||||
position: fixed;
|
||||
left: 0;
|
||||
right: 0;
|
||||
top: 0;
|
||||
height: 80px;
|
||||
box-shadow: 2px 2px 2px rgba(0, 0, 0, 0.1);
|
||||
padding-left: 50px;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
}
|
||||
|
||||
main{
|
||||
margin-top: 75px;
|
||||
margin-left: 280px;
|
||||
margin-bottom: 110px;
|
||||
margin-right: 280px;
|
||||
}
|
||||
|
||||
aside{
|
||||
position: fixed;
|
||||
right: 0;
|
||||
top: 0;
|
||||
padding-top: 125px;
|
||||
padding-left: 20px;
|
||||
padding-right: 40px;
|
||||
height: 80vh;
|
||||
border-left: 4px;
|
||||
border-color: white;
|
||||
border-style: dotted;
|
||||
}
|
||||
|
||||
@media screen and (max-width:768px){
|
||||
body{
|
||||
grid:
|
||||
"header"
|
||||
"nav"
|
||||
"main"
|
||||
"aside"
|
||||
"footer";
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
nav {
|
||||
position: fixed;
|
||||
left: 0;
|
||||
top: 0;
|
||||
width: 230px;
|
||||
background-color: #746CF5;
|
||||
margin-right: 32px;
|
||||
margin-top: 55px;
|
||||
padding-top: 50px;
|
||||
padding-left: 20px;
|
||||
height: 80vh;
|
||||
}
|
||||
|
||||
nav a {
|
||||
display: block;
|
||||
text-decoration: none;
|
||||
color: white;
|
||||
padding: 8px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
nav img {
|
||||
margin-right: 8px;
|
||||
}
|
||||
|
||||
nav a:hover {
|
||||
background-color: rgba(255, 255, 255, 0.1);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user