JSFiddle - React, Tailwind, and code Playground

by itbeard

HTML

<!DOCTYPE html>
<html lang="en">
 
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Website Template</title>
    <link rel="stylesheet" href="styles.css">
</head>
 
<body>
    <header>
        <div id="logo">Logo</div>
        <div id="header-text">АйТуборог</div>
        <div id="slogan">Header slogan placeholder</div>
    </header>
 
    <nav id="menu">
        МЕНЮ
    </nav>
 
    <main>
        <h1>Article title placeholder</h1>
        <article>
            Article body
        </article>
        <div id="floating-adv">
            Floating adv
        </div>
    </main>
 
    <footer id="floating-footer">
        Floating footer
    </footer>
 
</body>
 
</html>

CSS

body {
    font-family: Arial, sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0;
    padding: 0;
}
 
header {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding: 10px;
    background-color: #e1e1e1;
}
 
#logo {
    font-size: 24px;
    font-weight: bold;
}
 
#header-text {
    font-size: 32px;
    font-weight: bold;
}
 
#slogan {
    font-size: 18px;
    color: #777;
}
 
#menu {
    width: 200px;
    height: 100vh;
    background-color: #ddd;
    padding: 10px;
}
 
main {
    flex: 1;
    display: flex;
    justify-content: space-between;
    width: 80%;
}
 
h1 {
    font-size: 28px;
    margin-top: 20px;
}
 
article {
    width: 70%;
    padding: 20px;
    background-color: #f1f1f1;
}
 
#floating-adv {
    width: 20%;
    background-color: #ddd;
    padding: 10px;
}
 
#floating-footer {
    width: 100%;
    background-color: #ccc;
    padding: 10px;
    text-align: center;
}