<header>
<div class="logo">
<h1>Amanda F. Joel</h1>
</div>
<ul>
<li>Works</li>
<li>Profile</li>
<li>Contact</li>
</ul>
</header>
<main class="grid">
<div class="title">
<p>Begin With</p>
<p>Your Lifestyle</p>
<p>Aug ’21</p>
</div>
<div class="images">
<div class="image">
<img src="https://preethi-dev.github.io/Modern-Layout-32/assets/images/Images.png" alt="" />
</div>
<img src="https://preethi-dev.github.io/Modern-Layout-32/assets/images/View Button.png" alt="" class="button" />
</div>
</main>
<footer>
<div class="previous">
<img src="https://preethi-dev.github.io/Modern-Layout-32/assets/images/left arrow.svg" alt="left arrow" />
<a href="/">Previous</a>
</div>
<div class="next">
<a href="/">Next</a>
<img src="https://preethi-dev.github.io/Modern-Layout-32/assets/images/right arrow.svg" alt="right arrow" />
</div>
</footer>
/* Fonts */
@import url("https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700;800&display=swap");
@font-face {
font-family: "Ketsiyo";
src: url(https://preethi-dev.github.io/Modern-Layout-32/assets/fonts/Ketsiyo.otf);
}
/* Resets */
*,
*::before,
*::after {
margin: 0;
padding: 0;
box-sizing: border-box;
}
a {
text-decoration: none;
}
ul li {
list-style: none;
}
/* Variables */
:root {
--primary: #ffffff;
--seconadry: #0c1519;
}
/* Base Styles */
body {
background-image: url(https://preethi-dev.github.io/Modern-Layout-32/assets/images/Bg.png);
background-size: cover;
background-repeat: no-repeat;
background-color: var(--seconadry);
color: var(--primary);
min-height: 100vh;
}
a {
color: var(--primary);
}
img {
max-width: 100%;
}
header,
footer {
padding: 3.5rem;
}
header {
display: flex;
align-items: center;
}
header .logo h1,
ul li {
font-family: "Syne";
font-style: normal;
font-weight: 700;
font-size: 1rem;
line-height: 100%;
letter-spacing: -0.02em;
}
header ul li {
font-size: 0.875rem;
opacity: 0.56;
}
header ul li:nth-child(1) {
opacity: 1;
}
main .title p {
font-family: "Ketsiyo";
font-style: normal;
font-weight: 400;
line-height: 100%;
text-align: center;
letter-spacing: -0.02em;
}
footer {
display: flex;
justify-content: space-between;
}
footer a {
font-family: "Syne";
font-style: normal;
font-weight: 700;
font-size: 0.875rem;
line-height: 100%;
letter-spacing: -0.02em;
}
/* Mobile Styles */
.grid {
display: grid;
grid-template-columns: repeat(4, 1fr);
}
header {
justify-content: center;
}
main > * {
grid-column: 1 / -1;
justify-self: center;
}
main .title {
z-index: 1;
}
main .title p {
font-size: 3.75rem;
}
header ul,
main .images .button {
display: none;
}
/* Tablet Styles */
@media screen and (width >= 768px) {
header {
justify-content: space-between;
}
header ul {
display: flex;
justify-content: space-between;
gap: 3rem;
}
main .title p {
font-size: 5.75rem;
}
}
/* Laptop Styles */
@media screen and (width >= 1000px) {
.grid {
grid-template-columns: repeat(12, 1fr);
grid-template-rows: auto 250px;
}
main .title p {
font-size: 7.75rem;
}
main .title {
grid-row: 1;
}
main .images {
grid-row: 1 / span 2;
align-self: end;
position: relative;
}
main .images .button {
display: block;
position: absolute;
bottom: 5rem;
right: -1rem;
}
}
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.