-
Notifications
You must be signed in to change notification settings - Fork 15
Add a get started button to the top nav #172
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
Conversation
Deploying localstack-docs with
|
Latest commit: |
8ca609c
|
Status: | ✅ Deploy successful! |
Preview URL: | https://78af914f.localstack-docs.pages.dev |
Branch Preview URL: | https://get-started-button.localstack-docs.pages.dev |
Tested it and it looks great! It seems to work on the AWS side, but the Snow seems to have a tiny issue... even tho initially it appends the snow parameter to the URL, it quickly disappears and doesn't seem to work in the final load? |
const isSnowflakePage = route.id.startsWith('snowflake'); | ||
|
||
// Build the URL with conditional parameter | ||
const getStartedUrl = isSnowflakePage | ||
? 'https://app.localstack.cloud/sign-up?emulator=snowflake' | ||
: 'https://app.localstack.cloud/sign-up'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
const isSnowflakePage = route.id.startsWith('snowflake'); | |
// Build the URL with conditional parameter | |
const getStartedUrl = isSnowflakePage | |
? 'https://app.localstack.cloud/sign-up?emulator=snowflake' | |
: 'https://app.localstack.cloud/sign-up'; | |
const isSnowflakePage = route.id.startsWith('snowflake'); | |
// Build the URL with conditional parameter | |
const getStartedUrl = isSnowflakePage | |
? 'https://app.localstack.cloud/sign-up?emulator=snowflake' | |
: 'https://app.localstack.cloud/sign-up'; |
In this case, should we remove these lines @remotesynth ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tweaked the lines but left them in. The URL variable doesn't really do anything it seems at the moment but I think it's worth differentiating which docs they came from anyway.
It was confusing that there is a Getting Started and a Get Started. I didn't want people to think this led to a docs page. Also cleaned up the code a bit. Left the emulator tag in although it doesn't do anything at the moment.
This adds a get started button to the top navigation to encourage sign ups. This links to
https://app.localstack.cloud/sign-up
. If you are in the snowflake docs, it will add an?emulator=snowflake
as is done in the web site.