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

trymito: add pyoneer promotion to website #1305

Merged
merged 1 commit into from
May 23, 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
21 changes: 15 additions & 6 deletions trymito.io/components/Header/Header.module.css
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
.header {
display: flex;
justify-content: space-between;
align-items: center;

padding: 2rem 4rem;
background-color: var(--color-background);

Expand All @@ -14,7 +10,13 @@
z-index: 1; /* Make sure everything scrolls behind the nav bar */
}

.header li {
.navbar {
display: flex;
justify-content: space-between;
align-items: center;
}

.navbar li {
list-style: none;
color: var(--color-text-secondary);
margin-top: 2rem;
Expand Down Expand Up @@ -72,10 +74,17 @@
display: none;
}

.promotion_banner {
width: 100%;
padding-top: .5rem;
padding-bottom: .5rem;
text-align: center;
}

@media only screen and (min-width: 50em) {

.header {
padding-top: 1.5rem;
padding-top: .5rem;
padding-bottom: 2rem;
}

Expand Down
11 changes: 9 additions & 2 deletions trymito.io/components/Header/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,13 @@ const Header = (): JSX.Element => {
const [mobileMenuVisible, setMobileMenuVisible] = useState(false)

return (
<header className={headerStyles.header}>
<header className={headerStyles.header}>
<div className={headerStyles.promotion_banner}>
<a href="https://naterush1997.typeform.com/to/SIKccZHc?utm_source=trymito_promo_banner" target="_blank" rel="noreferrer">
🎁 <span className='text-primary'>Sign up for the new </span><span className='text-highlight'>AI-powered Excel to Python converter → </span>
</a>
</div>
<div className={headerStyles.navbar}>
<div className={headerStyles.desktop_left_nav_bar}>
<Link href='/'>
<a> {/* We have to add this for the link to work, see here: https://github.com/vercel/next.js/issues/20434 */}
Expand Down Expand Up @@ -243,7 +249,8 @@ const Header = (): JSX.Element => {
</ul>
</nav>
</div>
</header>
</div>
</header>
)
}

Expand Down
1 change: 0 additions & 1 deletion trymito.io/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ const Home: NextPage = () => {
<title>Best Python Spreadsheet Automation & Code Generation | Mito </title>
<meta name="viewport" content="width=device-width, initial-scale=1" />
</Head>

<Header/>

<div className={pageStyles.container}>
Expand Down
Loading