Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add release badge on website #1607

Merged
merged 2 commits into from
Jan 25, 2024
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
50 changes: 49 additions & 1 deletion docs/components/HomepageHero.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,56 @@
text-align: center;
}

.headline {
.badgeContainer {
margin-top: 4rem;
}

.badge {
padding: 0.5rem 1rem;
border-radius: 2em;
box-shadow: hsl(204 10% 75%) 0 0 0 1px inset;
background: rgba(255, 255, 255, 0.7);
color: hsl(204 20% 30%);
font-size: 1rem;
text-decoration: none;
white-space: nowrap;
user-select: none;
transition: all 0.2s ease;

&:hover {
box-shadow: 0 5px 22px -10px hsl(204 45% 20%);
box-shadow: hsl(204 20% 50%) 0 0 0 1px inset;
}

&:active {
box-shadow: hsl(204 10% 75%) 0 0 0 1px inset;
}

&:focus-visible {
outline: 2px solid
hsl(var(--nextra-primary-hue) var(--nextra-primary-saturation) 77%);
outline-offset: 2px;
}

:global(.dark) & {
background: rgba(17, 17, 17, 0.7);
color: hsl(204 10% 70%);
box-shadow: hsl(204 10% 25%) 0 0 0 1px inset;
text-shadow: 0 1px 1px #000;

&:hover {
background: rgba(17, 17, 17, 1);
box-shadow: hsl(204 10% 50%) 0 0 0 1px inset;
}

&:active {
box-shadow: hsl(204 10% 25%) 0 0 0 1px inset;
}
}
}

.headline {
margin-top: 1.5rem;
display: inline-flex;
background-image: linear-gradient(146deg, #000, #5e6265);
-webkit-background-clip: text;
Expand Down
10 changes: 10 additions & 0 deletions docs/components/HomepageHero.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,16 @@ export function HomepageHero({ version, stars: initialStars }: Props) {
<div className={styles.tilesBg}></div>
<div className={styles.tiles}></div>
<div className={styles.content}>
<div className={styles.badgeContainer}>
<a
className={styles.badge}
href="https://twitter.com/ReactCosmos/status/1750257520243888429"
target="_blank"
rel="noopener noreferrer"
>
React Cosmos 6 is here 🎉
</a>
</div>
<h1 className={styles.headline}>
A better way to <br className="sm:hidden" />
build <br className="hidden sm:block" />
Expand Down
Loading