<div class="container">
<div class="right-page">
<span class="cat">99U Quarterly</span>
<div class="text">
<h1 class="title">Issue No.3</h1>
<span class="date">Editorial desing to CSS Grid</span>
<span class="author"><a href="https://www.silocreativo.com/en/editorial-design-and-css-grid-inspiration-and-examples/">silocreativo.com</a><span>
</div>
</span>
</div>
</div>
body {
margin: 0;
padding: 0;
font-family: 'EB Garamond', serif;
}
p {
margin-top: 0;
}
.container {
background-color: #00D0C0;
display: grid;
grid-template: minmax(100vh, 1fr) / 50% 50%;
}
.right-page {
grid-column: 2 / 3;
margin: 30px;
background-color: #fff;
padding: 30px;
font-size: 18px;
line-height: 1.65;
border-left: 1px dashed #f1f1f1;
position: relative;
text-align: center;
display: grid;
grid-template: 50px 1fr / 1fr;
}
.right-page:before {
content: "";
border-left: 1px dashed #00b5a7;
height: calc(100% + 60px);
width: 1px;
position: absolute;
left: -30px;
top: -30px;
}
.right-page .cat {
font-family: 'Roboto Condensed', sans-serif;
grid-area: 1 / 1 / 2 / 2;
justify-self: center;
text-transform: uppercase;
border: 2px solid #565052;
align-self: start;
padding: 10px 20px;
font-size: 11px;
font-weight: 700;
letter-spacing: 0px;
}
.right-page .text {
grid-area: 2 / 1 / 3 / 2;
align-self: center
}
.right-page .title {
text-align: center;
color: #00D0C0;
font-weight: 400;
font-size: 72px;
letter-spacing: 3px;
margin: 0;
position: relative;
}
.right-page .title:after {
content: "";
background-color: #00d0c0;
height: 1px;
width: 50px;
display: block;
margin: 0 auto 20px;
}
.right-page .date {
font-size: 18px;
font-style: italic;
display: block;
}
.right-page .author {
font-size: 16px;
color: #00D0C0;
font-style: italic;
text-align: center;
display: block;
}
.right-page .author a {
text-decoration: none;
color: #00D0C0;
}
@media (min-width: 800px) and (max-width: 1200px) {
.right-page .title {
font-size: calc(0.15 * (50vw - 120px));
}
}
@media (max-width: 799px) {
.container {
grid-template: minmax(100vh, 1fr) / 1fr;
}
.right-page {
grid-column: 1 / 2;
}
.right-page:before {
content: none;
}
.right-page .title {
font-size: 58px;
}
}
@media (max-width: 450px) {
.right-page .title {
font-size: 38px;
}
}
This Pen doesn't use any external JavaScript resources.