-
Notifications
You must be signed in to change notification settings - Fork 412
landing page #1611
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
Merged
Merged
landing page #1611
Changes from 17 commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
eca3ca5
new assets
ComputelessComputer 35857ea
marquee
ComputelessComputer 6a36c28
video
ComputelessComputer ecb2022
logo-cloud fix
ComputelessComputer f3e1b64
platform hook
ComputelessComputer d3a747f
big borders
ComputelessComputer 99e8424
responsive header
ComputelessComputer 6e9a1ae
social card fix
ComputelessComputer 2f41780
feat(web): Enhance hero section with email submission and interaction
ComputelessComputer eb23f1a
feat(web): Enhance landing page with analytics and improvements
ComputelessComputer eb79569
use Link
yujonglee 0c0a11e
use env
yujonglee 06e99e9
simplify routes
yujonglee b61c8e1
replace contact api route with server function
yujonglee 9e8bb58
follow posthog official docs
yujonglee 1121098
unrelated cleanups
yujonglee 8f5e8e3
refactor with tanstack stuff
yujonglee be7ef52
update loops env
yujonglee 439afb1
other chores
yujonglee File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,42 @@ | ||
| import { createServerFn } from "@tanstack/react-start"; | ||
| import { z } from "zod"; | ||
|
|
||
| const inputSchema = z.object({ | ||
| email: z.string().email(), | ||
| userGroup: z.string().optional(), | ||
| locale: z.string().optional(), | ||
| platform: z.string().optional(), | ||
| source: z.string().optional(), | ||
| intent: z.string().optional(), | ||
| }); | ||
|
|
||
| export const addContact = createServerFn({ method: "POST" }) | ||
| .inputValidator(inputSchema) | ||
| .handler(async ({ data }) => { | ||
| const loopsResponse = await fetch( | ||
| "https://app.loops.so/api/v1/contacts/create", | ||
| { | ||
| method: "POST", | ||
| headers: { | ||
| "Content-Type": "application/json", | ||
| Authorization: `Bearer ${process.env.LOOPS_KEY}`, | ||
| }, | ||
yujonglee marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| body: JSON.stringify({ | ||
| email: data.email, | ||
| userGroup: data.userGroup, | ||
| locale: data.locale, | ||
| source: data.source, | ||
| intent: data.intent, | ||
| platform: data.platform, | ||
| }), | ||
| }, | ||
| ); | ||
|
|
||
| if (!loopsResponse.ok) { | ||
| const error = await loopsResponse.json(); | ||
| console.error("Error creating contact:", error); | ||
| throw new Error(error.message || "Failed to create contact"); | ||
| } | ||
|
|
||
| return { success: true }; | ||
| }); | ||
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.