From 577a5c7345c6a4afd9e43827b05fec2b538d3167 Mon Sep 17 00:00:00 2001 From: simon Date: Thu, 15 Oct 2026 22:09:22 -0500 Subject: changed book button to be sticky --- index.html | 70 +++++++++++++++++++++++++++++++------------------------------- 1 file changed, 35 insertions(+), 35 deletions(-) diff --git a/index.html b/index.html index 9e204dc..ec0bb65 100644 --- a/index.html +++ b/index.html @@ -57,6 +57,7 @@ width: 90%; flex-direction: column; align-items: center; + margin-top: 2rem; } #imageContainer { flex-direction: row; @@ -96,55 +97,54 @@ justify-content: space-evenly; align-items: center; gap: 2rem; + margin-top: 2rem; } #categoryLinks a { + padding: 2rem; text-decoration: none; + text-transform: uppercase; + font-weight: bold; + color: var(--gold); + font-size: 3rem; border-radius: 1rem; border: 1px solid var(--gold); transition: ease 0.2s; } - #categoryLinks a:hover { color: var(--gold); } + #categoryLinks a:hover { + transform: scale(1.01); + color: var(--white); + border-color: var(--white); + } /** BOOK NOW big button */ #book-button { - height: 7rem; - min-width: 100%; - - display: flex; - align-items: center; - justify-content: center; + position: sticky; - background-color: var(--black); - color: var(--gold); + background-color: var(--gold); + color: var(--black); border: 1px solid var(--dark-gold); border-radius: 5rem; - padding: 2rem 1rem; + padding: 2rem 3rem; margin: 0; font-size: 2rem; font-weight: bold; text-decoration: none; transition: 0.3s ease; + z-index: 99; } #book-button:hover { cursor: pointer; box-shadow: 0px 0px 10px var(--gold); - font-size: 2.25rem; } #book-button:active { background-color: var(--gold); } - #book-link { - display: block; - width: 50%; - text-decoration: none; - } - /** MOBILE */ @media screen and (max-width: 850px) { #hero-image { @@ -154,6 +154,7 @@ } main { + gap: 0; } #intro { @@ -165,9 +166,8 @@ #book-button { font-size: 1.75rem; - width: 85%; - } - #book-link { + top: 15%; + left: 35vw; } #imageContainer { @@ -181,6 +181,7 @@ +
+ - - -