Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions src/components/organisms/Greetings/Greetings.css
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
1 change: 1 addition & 0 deletions src/components/organisms/Greetings/Greetings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ const Greetings = () => {

{/* Scroll down indicator using the ScrollDown atom component */}
<motion.div
className="greetings__scroll"
variants={slideUpVariants}
initial={animationEnabled ? 'hidden' : false}
animate="visible"
Expand Down
Loading