Skip to content

Adding a banner about Pyrefly to the website's home page #989

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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
25 changes: 25 additions & 0 deletions documentation/website/src/pages/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,30 @@ const features = [
},
];

function TopBanner() {
return (
<div className={styles.topBannerContainer}>
<div className={styles.topBanner}>
<div className={styles.topBannerTitle}>
{'📣\xa0'}
<Link
to={`https://pyrefly.org/`}
className={styles.topBannerTitleText}>
{'Check out Pyrefly'}
</Link>
{'\xa0📣'}
<br />
<Link
to={`https://pyrefly.org/`}
className={styles.topBannerTitleText}>
<span style={{ fontSize: '0.8em' }}>the next iteration of Pyre!️</span>
</Link>
</div>
</div>
</div>
);
}

function Feature({imageUrl, title, description}) {
const imgUrl = useBaseUrl(imageUrl);
return (
Expand All @@ -91,6 +115,7 @@ function Home() {
<Layout
title={`${siteConfig.title}`}
description="A performant type-checker for Python 3.">
<TopBanner/>
<header className={classnames('hero hero--primary', styles.heroBanner)}>
<div className="container">
<img src="img/pyre.svg" alt="Pyre logo." width="100" />
Expand Down
42 changes: 42 additions & 0 deletions documentation/website/src/pages/styles.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -108,3 +108,45 @@
width: 98%;
}
}

.topBannerContainer {
background-color: rgb(15, 15, 15);
}

.topBanner {
display: flex;
justify-content: center;
align-items: center;
}

.topBannerTitle {
font-size: 54px;
font-weight: bold;
margin-bottom: 0.4rem;
align-items: center;
text-align:center;

}

@media only screen and (max-width: 768px) {
.topBannerTitle {
font-size: 40px;
}
}

.topBannerTitleText {
background: linear-gradient(
90deg,
rgb(131 58 180 / 100%) 0%,
rgb(253 29 29 / 100%) 50%,
rgb(252 176 69 / 100%) 100%
);
background-clip: text;

-webkit-text-fill-color: transparent;
}

.topBannerTitleText:hover {
border-bottom: solid 2px;
border-color: rgb(152 0 255);
}
Loading