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
64 changes: 49 additions & 15 deletions docs/src/components/Navigation.astro
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,10 @@ import appIcon from "../assets/rocketsim-app-icon.png";

interface Props {
isAlwaysActive?: boolean;
showLogin?: boolean;
}

const { isAlwaysActive } = Astro.props;
const { isAlwaysActive, showLogin = false } = Astro.props;
---

<style>
Expand All @@ -20,42 +21,61 @@ const { isAlwaysActive } = Astro.props;
transition: border-bottom-color 0.3s;
box-sizing: content-box;

@media (min-width: 850px) {
@media (min-width: 880px) {
position: sticky;
top: -1px;
z-index: 100;
}
}

.navigation-wrapper--sticky {
@media (min-width: 850px) {
@media (min-width: 880px) {
border-bottom-color: rgba(255, 255, 255, 0.24);

.navigation__logo {
opacity: 1;
}

.navigation__login {
opacity: 1;
}

.navigation__right-column {
opacity: 1;
}
}
}

nav {
@media (min-width: 850px) {
@media (min-width: 880px) {
display: flex;
align-items: center;
grid-column: 1 / -2;
}
}

.navigation__logo {
display: none;
width: 2.75rem;
height: auto;
}

.navigation__login {
text-decoration: none;
color: #fff;
font-weight: 500;
margin-right: 1rem;
}

.navigation__right-column {
display: none;
opacity: 0;
transition: opacity 0.3s;

@media (min-width: 850px) {
display: block;
@media (min-width: 880px) {
display: flex;
align-items: center;
grid-column: span 1 / -1;
gap: 1rem;
justify-self: end;
}
}
Expand All @@ -70,11 +90,16 @@ const { isAlwaysActive } = Astro.props;

list-style: none;

@media (min-width: 850px) {
@media (min-width: 880px) {
flex-direction: row;
gap: 3rem;
}
}

.link--login {
font-weight: 600;
text-decoration: none;
}
</style>

<div
Expand All @@ -90,13 +115,22 @@ const { isAlwaysActive } = Astro.props;
<slot />
</ul>
</nav>
<Image
src={appIcon}
alt="RocketSim app icon"
width="88"
height="88"
class="navigation__logo"
/>
<div class="navigation__right-column">
{
showLogin ? (
<a href="https://teams.rocketsim.app" class="link link--login">
Login
</a>
) : null
}
<Image
src={appIcon}
alt="RocketSim app icon"
width="88"
height="88"
class="navigation__logo"
/>
</div>
</div>
</div>

Expand Down
22 changes: 21 additions & 1 deletion docs/src/pages/team-insights.astro
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,30 @@ import TeamTestimonial from "../components/TeamTestimonial.astro";
import logoImage from "../assets/rocketsim-insights-logo.svg";
---

<style>
.login-button-container {
position: absolute;
top: 1rem;
right: 0rem;
left: 0;
z-index: 1;
}

.button--login {
grid-column: span 1 / -1;
}
</style>

<BaseLayout
pageTitle="Build Apps Faster with Insights - RocketSim"
pageDescription="Simulator Airplane Mode, Location Simulation, Accessibility Testing, Compare designs inside the iOS simulator. Test deeplinks, push notifications."
>
<div class="login-button-container grid">
<a
href="https://teams.rocketsim.app"
class="button button--small button--login">Login</a
>
</div>
<Header
title="Make your whole team Build Apps Faster"
logo={logoImage}
Expand All @@ -28,7 +48,7 @@ import logoImage from "../assets/rocketsim-insights-logo.svg";
Connect your team using the same license key and gather team insights like
p75 build duration, machine benchmarks, and more.
</Header>
<Navigation>
<Navigation showLogin>
<NavigationLink href="#get-team-license" asButton>
Get Team Licenses
</NavigationLink>
Expand Down