JSFiddle - React, Tailwind, and code Playground
by velo_ninja
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="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css">
<style>
body {
margin: 0;
padding: 0;
overflow: hidden;
}
#mainDiv {
width: 100%;
height: 20vh;
min-height: 5vh;
height: 10px;
background-color: grey;
position: fixed;
top: 1px;
left: 0px;
display: flex;
justify-content: space-around;
align-items: center;
z-index: 2;
}
.section {
border-radius: 10%;
flex: 1;
height: 80%;
min-height: 40%;
box-sizing: border-box;
margin: 0.5%;
padding: 0.5%;
display: flex;
justify-content: center;
align-items: center;
flex-direction: row;
position: relative;
}
.button-container {
display: flex;
flex-direction: row;
justify-content: center;
align-items: center;
height: 100%;
}
.button {
width: 80%;
height: 80%;
border: none;
border-radius: 20%;
padding: 7px;
cursor: pointer;
font-size: 1.5rem;
display: flex;
justify-content: center;
align-items: center;
transition: background-color 0.3s ease, color 0.3s ease;
}
.menu {
position: fixed;
bottom: 0;
left: 50%;
transform: translateX(-50%);
width: 53.33%;
height: 150px;
transition: bottom 0.5s ease, background-color 0.5s ease;
z-index: 1;
...