diff --git a/src/components/organisms/Greetings/Greetings.css b/src/components/organisms/Greetings/Greetings.css index 261c4a68..5d79d120 100644 --- a/src/components/organisms/Greetings/Greetings.css +++ b/src/components/organisms/Greetings/Greetings.css @@ -19,9 +19,29 @@ .greetings__inner { width: 100%; max-width: 46rem; + /* Auto block margins centre the terminal in the space the scroll cue leaves */ + margin: auto; +} + +/* The scroll cue sits in the flow under the actions rather than pinned to the + bottom edge, so it can never cover the button when the hero runs taller than + the screen (large text, short phones). */ +.greetings__scroll { + margin-top: var(--spacing-6); +} + +.greetings__scroll .scroll-down-container { + position: relative; + bottom: auto; + left: auto; + transform: none; margin: 0 auto; } +.greetings__scroll .scroll-down-container:hover { + transform: translateY(2px); +} + .greetings__title { margin: 0; font-size: clamp(1.5rem, 6vw, 2.5rem); diff --git a/src/components/organisms/Greetings/Greetings.tsx b/src/components/organisms/Greetings/Greetings.tsx index b4ea6d38..f5bc5317 100644 --- a/src/components/organisms/Greetings/Greetings.tsx +++ b/src/components/organisms/Greetings/Greetings.tsx @@ -120,6 +120,7 @@ const Greetings = () => { {/* Scroll down indicator using the ScrollDown atom component */}