create new site layout

This commit is contained in:
Arthur Lu
2024-05-16 21:23:54 +00:00
committed by Arthur Lu
parent 0a8a25d785
commit ebcbc7b14e
14 changed files with 114 additions and 445 deletions

42
css/overlay.css Normal file
View File

@@ -0,0 +1,42 @@
.overlay-container {
position: relative;
max-width: 1080px;
margin-left: auto;
margin-right: auto;
}
.overlay-container .image {
display: block;
width: 100%;
height: auto;
}
.overlay-container .overlay-mask {
position: absolute;
top: 0;
bottom: 0;
left: 0;
right: 0;
height: 100%;
width: 100%;
background-color: rgba(0, 0, 0, 0);
color: rgba(0, 0, 0, 0);
transition-property: color, background-color;
transition-duration: 0.25s, 0.25s;
transition-timing-function: ease-in-out;
}
.overlay-container:hover .overlay-mask {
background-color: rgba(0, 0, 0, 0.7);
color: rgba(255, 255, 255, 1);
}
.overlay-container .overlay-content {
padding-left: 15%;
padding-right: 15%;
height: 100%;
display: flex;
flex-direction: column;
justify-content: center;
text-decoration: none;
}

39
css/style.css Normal file
View File

@@ -0,0 +1,39 @@
html {
box-sizing: border-box;
}
h1, h2, h3, h4, h5, h6, p, a, label, button, input, select, td {
font-family: monospace;
}
body {
margin-left: 16px;
margin-right: 16px;
width: calc(100% - 16px - 16px);
}
header {
margin-top: 50px;
text-align: center;
}
h1 a {
text-decoration: none;
}
nav {
display: flex;
flex-direction: row;
flex-wrap: nowrap;
column-gap: 4ch;
justify-content: center;
}
nav a {
text-decoration: none;
font-size: larger;
}
main {
text-align: center;
}