mirror of
https://github.com/runyanjake/jakeswestcoast.git
synced 2025-10-04 23:37:29 -07:00
45 lines
666 B
CSS
45 lines
666 B
CSS
html, body {
|
|
margin: 0;
|
|
padding: 0;
|
|
height: 100%;
|
|
font-family: 'Arial', sans-serif;
|
|
}
|
|
|
|
.image-background {
|
|
position: relative;
|
|
height: 100vh;
|
|
overflow: hidden;
|
|
}
|
|
|
|
img {
|
|
position: absolute;
|
|
top: 50%;
|
|
left: 50%;
|
|
min-width: 100%;
|
|
min-height: 100%;
|
|
transform: translate(-50%, -50%);
|
|
object-fit: cover;
|
|
z-index: -1;
|
|
}
|
|
|
|
.content {
|
|
position: absolute;
|
|
top: 50%;
|
|
left: 50%;
|
|
transform: translate(-50%, -50%);
|
|
text-align: center;
|
|
color: white;
|
|
text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
|
|
}
|
|
|
|
h1 {
|
|
font-size: 4rem;
|
|
margin: 0;
|
|
}
|
|
|
|
p {
|
|
font-size: 1.5rem;
|
|
margin-top: 10px;
|
|
}
|
|
|