diff --git a/src/pages/index.astro b/src/pages/index.astro
index 99a7ce3..a7f3ecc 100644
--- a/src/pages/index.astro
+++ b/src/pages/index.astro
@@ -4,29 +4,36 @@ import "../styles/index.css"
---
-
-
+
+
+
+
+ The Correct Answer - Queen
+
+
+
-
-
+
+
diff --git a/src/styles/index.css b/src/styles/index.css
index 10761de..67af5e6 100644
--- a/src/styles/index.css
+++ b/src/styles/index.css
@@ -1,51 +1,74 @@
-#bar {
+main > * {
+ display: flex;
+ width: 100%;
+ justify-content: center;
+ align-items: center;
+ width: min(45rem, 100%);
+}
+
+#guesses {
+ flex-direction: column;
+ gap: 2rem;
+
+ & span {
+ display: flex;
+ justify-content: center;
+ align-items: center;
+
+ font-weight: bold;
+
+ background-color: #000;
+ height: 2.4rem;
+ width: 100%;
+
+ border-radius: 2rem;
+
+ &.correct {
+ background-image: linear-gradient(
+ to bottom right,
+ var(--brand-pink) 0%,
+ var(--brand-purple) 100%
+ );
+ }
+ }
+}
+
+#bars {
+ display: grid;
+ grid-template-columns: 1fr 2fr 4fr 8fr;
+ justify-content: center;
width: min(40rem, 100%);
+ position: relative;
- & #bars {
- display: grid;
- grid-template-columns: 1fr 2fr 4fr 8fr;
- gap: 0.3rem;
-
- & * {
- background-color: rgba(255, 255, 255, 20%);
- height: 1rem;
- border-radius: 1rem;
- grid-row: 1;
- }
-
- & #available {
- grid-column-start: 1;
- width: 100%;
- }
+ & * {
+ background-color: rgba(255, 255, 255, 20%);
+ height: 1rem;
+ border-radius: 1rem;
+ grid-row: 1;
}
& #available {
background-color: white;
- width: 0;
- }
-}
-
-.frame-container {
- position: relative;
-
- @supports (-moz-appearance: none) {
- display: none;
- }
-
- & span {
- pointer-events: none;
- }
-
- & iframe {
- position: absolute;
+ grid-column-start: 1;
width: 100%;
- height: 100%;
- border: none;
- z-index: -2;
- pointer-events: all;
+ }
- clip-path: inset(90% 0 0 90%);
- transform-origin: bottom right;
- transform: scale(10);
+ & #played {
+ position: absolute;
+ background: linear-gradient(
+ to bottom right,
+ #cc56d0 0%,
+ var(--brand-purple) 100%
+ );
+
+ grid-column: 1 / -1;
+
+ width: 0%;
+ transition: none;
+
+ &.playing {
+ transition: width 15s linear;
+ width: 100%;
+ }
}
}
diff --git a/src/styles/layout.css b/src/styles/layout.css
index eb81136..526b11e 100644
--- a/src/styles/layout.css
+++ b/src/styles/layout.css
@@ -1,13 +1,17 @@
html,
body {
+ display: flex;
+ flex-direction: column;
margin: 0;
width: 100%;
height: 100%;
}
:root {
- background: linear-gradient(black, rgb(18, 2, 38));
--brand-purple: #6e06ff;
+ --brand-pink: #cc56d0;
+
+ background: linear-gradient(black, rgb(18, 2, 38));
font-family: sans-serif;
}
@@ -18,6 +22,7 @@ img {
}
nav {
+ position: absolute;
display: flex;
align-items: center;
padding: 2rem 3rem;
@@ -35,12 +40,15 @@ nav {
main {
color: white;
display: flex;
+ flex-direction: column;
justify-content: center;
align-items: center;
+
+ gap: 1rem;
+ flex-grow: 1;
}
-button,
-.fake-button {
+button {
--border-radius: 2rem;
position: relative;
background: white;
@@ -60,16 +68,12 @@ button,
background: rgb(211, 211, 211);
}
- &.fake-button {
- pointer-events: none;
- }
-
& svg {
width: 2.2rem;
}
}
-:is(button, .fake-button)::before {
+button::before {
--border-size: 5px;
content: "";
z-index: -1;
@@ -78,7 +82,7 @@ button,
height: 100%;
background-image: linear-gradient(
to bottom right,
- #cc56d0 0%,
+ var(--brand-pink) 0%,
var(--brand-purple) 100%
);
padding: var(--border-size);
@@ -86,10 +90,3 @@ button,
left: calc(var(--border-size) * -1);
position: absolute;
}
-
-.fake-button-container {
- cursor: pointer;
- &:hover {
- filter: brightness(80%);
- }
-}