JSFiddle - React, Tailwind, and code Playground
by codemeasandwich
HTML
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="styles.css">
<title>Flexbox Representation</title>
</head>
<body>
<div class="container">
<header>
<div class="logo"></div>
</header>
<main>
<aside>
<!-- Secondary Titles -->
<div class="title-frame">
<span class="time">16:25</span>
<span class="title">"CASSIAN"</span>
<span class="subtitle">THE NIGHT SKY - 18th OCTOBER 2022 - BOUNTIFUL, UT, USA</span>
</div>
<!-- ... other title frames -->
</aside>
<section class="latest-title">
<span class="time">16:21</span>
<span class="title large">“ON THIS DAY TWO HEARTS BECAME ONE .YOUR WEDDING DAY ..LOVE TODAY AND ALWAYS. FROM MUM”</span>
<span class="subtitle">THE NIGHT SKY - 14th SEPTEMBER 2024 - BRIERLEY, UK</span>
</section>
</main>
</div>
</body>
</html>
CSS
body {
margin: 0;
font-family: 'Inter', sans-serif;
}
.container {
display: flex;
flex-direction: column;
background-color: #121824;
height: 100vh;
}
header {
display: flex;
background-color: #0A0E15;
padding: 16px;
align-items: center;
}
.logo {
width: 50px;
height: 50px;
background: url('logo-url'); /* replace 'logo-url' with the URL of the logo */
}
main {
display: flex;
flex: 1;
}
aside {
background-color: #0A0E15;
opacity: 0.8;
padding: 10px;
}
.title-frame {
margin-bottom: 10px;
}
.title-frame span {
display: block;
}
.latest-title {
padding: 20px;
flex: 1;
background: url('background-url'); /* replace 'background-url' with the URL of the background image */
background-size: cover;
}
.large {
font-size: 50px;
font-family: 'Playfair Display', serif;
}