Skip to content

Commit

Permalink
Update fonts and CTA layout in hero section
Browse files Browse the repository at this point in the history
  • Loading branch information
fedealvarezcampos committed Nov 13, 2023
1 parent 422492c commit c6ac32e
Show file tree
Hide file tree
Showing 4 changed files with 49 additions and 5 deletions.
Binary file modified website/src/app/fonts/BasementGrotesque-BlackExpanded.woff2
Binary file not shown.
Binary file modified website/src/app/fonts/BasementGrotesque-Regular.woff2
Binary file not shown.
46 changes: 41 additions & 5 deletions website/src/app/sections/hero/hero.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -25,25 +25,37 @@
}

.cta {
display: flex;
flex-direction: column-reverse;
font-size: tovw(16px, "desktop-large", 12px);
line-height: 1.2;
max-width: tovw(537px);
margin-right: 0;
margin-left: auto;
text-align: right;
display: flex;
align-items: center;
gap: toem(16px, 16px);
align-items: flex-end;
gap: tovw(10px, "desktop-large", 6px);

@media screen and (max-width: 800px) {
max-width: unset;
margin: 0;
justify-content: center;
margin-top: tovw(12px, "tablet", 12px);
align-items: center;
margin-top: tovw(8px, "tablet", 8px);
}

svg {
width: tovw(16px, "desktop-large", 16px);
height: tovw(16px, "desktop-large", 16px);

@media screen and (max-width: 800px) {
width: tovw(14px, "tablet", 14px);
height: tovw(14px, "tablet", 14px);
}
}

a {
font-size: tovw(22px, "desktop-large", 14px);
font-size: tovw(18px, "desktop-large", 14px);
display: flex;
align-items: center;
justify-content: center;
Expand All @@ -52,6 +64,30 @@
border-radius: 999999px;
color: black;
padding: toem(4px, 16px) toem(8px, 16px);

@media (hover: hover) {
transition: color 0.2s ease-in-out, background-color 0.2s ease-in-out;

&:hover {
color: var(--color-orange);
background-color: color-mix(
in srgb,
var(--color-black) 70%,
white 20%
);
}
}
}

.docs-link {
span {
font-weight: 800;
}
}

&--buttons {
display: flex;
gap: tovw(8px, "desktop-large", 6px);
}
}
}
Expand Down
8 changes: 8 additions & 0 deletions website/src/app/sections/hero/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ export const Hero = () => {
<pre>
<code>npm i @bsmnt/scrollytelling</code>
</pre>
<div className={s["cta--buttons"]}>
<a
href="https://github.com/basementstudio/scrollytelling"
target="_blank"
Expand All @@ -134,6 +135,13 @@ export const Hero = () => {
</svg>
<span>GitHub</span>
</a>
<Link
target="_blank"
rel="noopener noreferrer"
className={s["docs-link"]} href="/docs">
<span>b</span>
Docs</Link>
</div>
</div>
</header>

Expand Down

2 comments on commit c6ac32e

@vercel
Copy link

@vercel vercel bot commented on c6ac32e Nov 13, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vercel
Copy link

@vercel vercel bot commented on c6ac32e Nov 13, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.