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

Waitlist Page #31

Merged
merged 8 commits into from
Mar 29, 2023
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
37 changes: 37 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
"@sveltejs/adapter-auto": "^2.0.0",
"@sveltejs/adapter-netlify": "^2.0.6",
"@sveltejs/kit": "^1.5.0",
"@tailwindcss/forms": "^0.5.3",
"@types/cookie": "^0.5.1",
"@typescript-eslint/eslint-plugin": "^5.54.1",
"@typescript-eslint/parser": "^5.54.1",
Expand Down
7 changes: 7 additions & 0 deletions src/app.css
Original file line number Diff line number Diff line change
Expand Up @@ -153,4 +153,11 @@
.text-large {
@apply text-p-x-large leading-[33.6px];
}

input[type="text"],
input[type="number"],
textarea,
select {
@apply bg-bg rounded-lg border-2 border-rose;
}
}
3 changes: 1 addition & 2 deletions src/lib/components/index/conference-info.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,5 @@
Join in on conversation around building and implementing the tools that improve
the software development experience.
</p>
<!-- TODO: Update Join waitlist URL -->
<PrimaryButton href="/" text="Join the waitlist" />
<PrimaryButton href="/join" text="Join the waitlist" />
</div>
18 changes: 18 additions & 0 deletions src/lib/components/layout/faqs.svelte
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<script lang="ts">
import type { FAQ } from "$lib/types/faq";

export let faqs: FAQ[];
</script>

<div class="flex flex-col items-center space-y-8">
<h1 class="font-bold text-4xl">FAQs</h1>

<div class="grid gap-x-8 gap-y-10 grid-flow-row-dense grid-cols-2">
{#each faqs as faq}
<div class="max-w-sm">
<h4 class="font-bold text-xl">{faq.title}</h4>
<p class="text-lg">{faq.description}</p>
</div>
{/each}
</div>
</div>
2 changes: 1 addition & 1 deletion src/lib/components/layout/join-us.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
</div>
</div>

<PrimaryButton text="Join the waitlist" />
<PrimaryButton href="/join" text="Join the waitlist" />

<div class="flex gap-4 items-center">
<div class="w-8 h-8 mb-auto mt-1">
Expand Down
3 changes: 1 addition & 2 deletions src/lib/components/layout/nav.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@
>
<CDEUniverse />
<div class="hidden items-center gap-x-small lg:flex">
<!-- TODO: Update URL when ready -->
<SecondaryButton href="/" text="Join waitlist" isDisabled={false} />
<SecondaryButton href="/join" text="Join waitlist" isDisabled={false} />
</div>
</div>
</nav>
Expand Down
2 changes: 1 addition & 1 deletion src/lib/components/layout/speakers.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@
</div>
</div>

<style>
<style lang="postcss">
.social-link {
@apply w-5 h-5 block;
}
Expand Down
62 changes: 62 additions & 0 deletions src/lib/components/layout/waitlist.svelte
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
<script>
import PrimaryButton from "../library/primary-button.svelte";
import OpenGraph from "../library/open-graph.svelte";
</script>

<OpenGraph
data={{
title: "Join the waitlist",
description: "Join the waitlist for CDE Universe 2023",
}}
/>

<div class="flex flex-col items-start gap-10 ">
<h1 class="text-7xl md:text-8xl font-normal mx-auto">Join the waitlist</h1>

<p class="text-xl mx-auto">Apply below for a ticket to CDE Universe 2023.</p>

<form class="grid grid-cols-2 gap-10 max-w-xl mx-auto">
<label>
Full Name*
<input type="text" />
</label>

<label>
Work e-mail*
<input type="text" />
</label>

<label>
Company website*
<input type="text" />
</label>

<label>
Role*
<select>
<option value="SOMETHING">Role</option>
Siddhant-K-code marked this conversation as resolved.
Show resolved Hide resolved
</select>
</label>

<label class="col-span-2">
What do you want to learn?*
<textarea rows="6" />
</label>

<p class="col-span-2 text-xs">
By submitting this form, I confirm that I acknowledge the collection and
processing of personal data by CDE universe, as further described in the
<a href="/privacy">Privacy Policy</a>.
</p>

<div>
<PrimaryButton text="Submit" />
</div>
</form>
</div>

<style lang="postcss">
label {
@apply flex flex-col gap-2;
}
</style>
32 changes: 32 additions & 0 deletions src/lib/data.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import type { Speaker } from "./types/speakers";
import type { FAQ } from "./types/faq";

export const speakers: Speaker[] = [
{
Expand Down Expand Up @@ -74,3 +75,34 @@ export const speakers: Speaker[] = [
github: "gitpod",
},
];

export const faqs: FAQ[] = [
{
title: "Who will be invited to join?",
description:
"CDE Universe is for anyone building and implementing for a better software development experience. Platform engineers, DevOps, and developer experience engineers, will all be in attendance.",
},
{
title: "Why should I join?",
description:
"CDE Universe is small and curated. Connect with leading minds across the developer tool space. Learn best practices in cloud development, CDE adoption and emerging technologies that enable better software development.",
},
{
title: "When will I hear back regarding attendance?",
description:
"Remaining tickets will be released on a weekly basis. You'll hear back about your application within 7 days.",
},
{
title: "Is the conference free?",
description: "Yes, the event is free for participants.",
},
{
title: "Will there be recordings?",
description: "Yes, talks will be recorded.",
},
{
title: "Can I attend virtually as well?",
description:
"No, this is an in-person event. Recordings will be up on our YouTube channel after the event.",
},
];
4 changes: 4 additions & 0 deletions src/lib/types/faq.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
export interface FAQ {
title: string;
description: string;
}
10 changes: 10 additions & 0 deletions src/routes/join/+page.svelte
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<script lang="ts">
import Waitlist from "$lib/components/layout/waitlist.svelte";
import Faqs from "$lib/components/layout/faqs.svelte";
import { faqs } from "$lib/data";
</script>

<div class="max-w-5xl mx-auto space-y-36 pt-16 pb-36">
<Waitlist />
<Faqs {faqs} />
</div>
2 changes: 1 addition & 1 deletion tailwind.config.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ const config = {
},
},

plugins: [],
plugins: [require("@tailwindcss/forms")],
};

module.exports = config;