Initial commit

This commit is contained in:
2022-03-03 01:14:39 +01:00
commit 88d26d1e5c
14 changed files with 1638 additions and 0 deletions
+1
View File
@@ -0,0 +1 @@
import './style.scss'
+74
View File
@@ -0,0 +1,74 @@
/* Box sizing rules */
*,
*::before,
*::after {
box-sizing: border-box;
}
/* Remove default margin */
body,
h1,
h2,
h3,
h4,
p,
figure,
blockquote,
dl,
dd {
margin: 0;
}
/* Remove list styles on ul, ol elements with a list role, which suggests default styling will be removed */
ul[role='list'],
ol[role='list'] {
list-style: none;
}
/* Set core root defaults */
html:focus-within {
scroll-behavior: smooth;
}
/* Set core body defaults */
body {
min-height: 100vh;
text-rendering: optimizeSpeed;
line-height: 1.5;
}
/* A elements that don't have a class get default styles */
a:not([class]) {
text-decoration-skip-ink: auto;
}
/* Make images easier to work with */
img,
picture {
max-width: 100%;
display: block;
}
/* Inherit fonts for inputs and buttons */
input,
button,
textarea,
select {
font: inherit;
}
/* Remove all animations, transitions and smooth scroll for people that prefer not to see them */
@media (prefers-reduced-motion: reduce) {
html:focus-within {
scroll-behavior: auto;
}
*,
*::before,
*::after {
animation-duration: 0.01ms !important;
animation-iteration-count: 1 !important;
transition-duration: 0.01ms !important;
scroll-behavior: auto !important;
}
}
+119
View File
@@ -0,0 +1,119 @@
@use './reset.scss';
body {
background: #f0f0f0;
display: flex;
flex-direction: column;
align-items: center;
}
header {
width: 100%;
height: 3rem;
position: relative;
background: #fff;
border-bottom: 1px solid #ddd;
.nav-item {
height: 3rem;
display: flex;
align-items: center;
justify-content: center;
}
.left {
position: absolute;
left: 0;
padding-left: 1rem;
display: flex;
gap: 1rem;
}
.center {
position: absolute;
left: 50%;
transform: translate(-50%, 0);
display: flex;
gap: 1rem;
}
.right {
position: absolute;
right: 0;
padding-right: 1rem;
display: flex;
gap: 1rem;
}
}
main {
display: flex;
flex-direction: column;
gap: 2rem;
align-items: center;
padding: 2rem 1rem 2rem;
.room-name {
display: flex;
align-items: center;
justify-content: center;
font-size: 26px;
font-weight: bold;
}
.room-main {
display: flex;
flex-direction: row;
gap: 1rem;
@media screen and (max-width: 1000px) {
flex-direction: column;
}
.room-diagram {
display: flex;
flex-direction: column;
border: 1px solid #ddd;
background: #fff;
padding: 1rem;
}
.room-bookings {
display: flex;
flex-direction: column;
border: 1px solid #ddd;
background: #fff;
min-width: 15rem;
padding: 0.5rem;
.seat-list {
display: flex;
flex-direction: column;
gap: 0.5rem;
.seat {
display: grid;
grid-template-columns: 1fr auto;
}
}
}
}
}