Skip to content

Commit cb2c78f

Browse files
authored
post live updates (#100)
# Description Post live updates: - [x] Change tagline to `Welcome to the People's Internet` (Also update the `og:description` header tag) - [x] Check anchor tags for padding (Mission is known broken) - [x] Consistent spacing in developer mobile sections (too much white space at bottom of first section and too little on top of second section) - [x] Image at top of developer portal is too small in mobile. Should be able to read text in the image. - [x] Post contact form thank you should clear the form, but still stay in the same location on the page - [x] Switching the Thank you png to svg/html - [x] "Growing into a better" zindex needs to be increased - [x] second pass at margins - [x] Ecosystem header doesn't underline on scroll - partially closes #99 --------- Co-authored-by: Claire Olmstead <[email protected]>
1 parent 9724c12 commit cb2c78f

File tree

12 files changed

+52
-55
lines changed

12 files changed

+52
-55
lines changed

src/app.html

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,7 @@
1212

1313
<meta property="og:title" content="Frequency" />
1414
<meta property="og:url" content="" />
15-
<meta
16-
property="og:description"
17-
content="Frequency fuels the Social Web, putting control & data privacy in your hands."
18-
/>
15+
<meta property="og:description" content="Welcome to the People's Internet." />
1916
<!-- The og:images must be absolute. The assets are in /static -->
2017
<meta property="og:type" content="website" />
2118
<meta property="og:image" content="https://www.frequency.xyz/og-preview.png" />
Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,11 @@
11
<script lang="ts">
2-
import ThankYouWaves from '$lib/assets/ThankYouWaves.png';
2+
import ThankYouWaves from '$lib/assets/ThankYouWave.svg';
33
4-
let { onClick = async () => {}, classes = '' } = $props();
4+
let { onClick = async () => {} } = $props();
55
</script>
66

77
<!-- svelte-ignore a11y_click_events_have_key_events -->
88
<!-- svelte-ignore a11y_no_static_element_interactions -->
9-
<div class="flex items-center justify-center" onclick={onClick}>
10-
<img
11-
class="px-auto mx-auto block {classes}"
12-
width="400"
13-
src={ThankYouWaves}
14-
alt="Frequency waves with 'Thank you!' caption"
15-
/>
9+
<div class="flex cursor-pointer items-center justify-center" onclick={onClick}>
10+
<img src={ThankYouWaves} alt="Frequency waves with 'Thank you!' caption" />
1611
</div>

src/components/GetNotified/GetNotified.svelte

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
import { Input, Textarea } from '@frequency-chain/style-guide';
33
import { dev } from '$app/environment';
44
import ContactThankYou from '$components/GetNotified/ContactThankYou.svelte';
5-
import { goto } from '$app/navigation';
65
76
const fieldMapping = {
87
name: 'entry.464666765',
@@ -73,12 +72,16 @@
7372
}
7473
};
7574
76-
const goToTop = async (_e: Event) => {
75+
const resetForm = async (_e: Event) => {
7776
formSuccess = false;
7877
hasSubmittedFormAtLeastOnce = false;
79-
await goto('/');
80-
const form = document.getElementsByTagName('form')[0] as HTMLFormElement;
81-
form.reset();
78+
name = '';
79+
email = '';
80+
isDeveloper = false;
81+
isPartnership = false;
82+
comment = '';
83+
const form = document.getElementById('contact-form') as HTMLFormElement;
84+
if (form) form.reset();
8285
};
8386
</script>
8487

@@ -90,6 +93,7 @@
9093
novalidate
9194
class="mx-auto mt-f24 justify-center gap-f24"
9295
data-testid="contact-form"
96+
id="contact-form"
9397
>
9498
<Input
9599
label="Name"
@@ -145,6 +149,6 @@
145149
</button>
146150
</form>
147151
{:else}
148-
<ContactThankYou onClick={goToTop} />
152+
<ContactThankYou onClick={resetForm} />
149153
{/if}
150154
</div>

src/components/HAccordion.svelte

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,8 @@
6161
{@render children()}
6262
</div>
6363
<div class={`flex flex-row ${contentAlignClasses}`}>
64-
<Button id={`explore_${sectionNumber}_button`} size="xs" type="primary" href={url} target="_blank">
65-
Learn <img src={Arrow} width="12px" height="12px" alt="" />
64+
<Button id={`explore_${sectionNumber}_button`} size="xs" type="primary" href={url}>
65+
Learn<img src={Arrow} alt="" class="h-[14px]" />
6666
</Button>
6767
</div>
6868
</div>

src/components/Sections/Ecosystem.svelte

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@
2020
></div>
2121
</div>
2222
</div>
23-
<div class="relative mt-[-100px] bg-navy pb-f64 md:pb-f120">
23+
<div class="relative mt-[-100px] bg-navy pb-f64 md:pb-f96">
2424
<section class="freq-container flex items-center md:px-52">
25-
<div class="flex w-full flex-col gap-f24 lg:w-2/3">
25+
<div class="z-10 flex w-full flex-col gap-f24 lg:w-2/3">
2626
<SlideIn>
2727
<h1 class="title-70 relative z-10 font-title text-white">
2828
Growing into a better <br class="hidden md:inline" />Future Together

src/components/Sections/Mission/Mission.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
</script>
77

88
<SectionWrapper id="mission">
9-
<section class="freq-container mb-f64">
9+
<section class="freq-container pb-f96 pt-f64">
1010
<MissionHeader />
1111
<MissionItems />
1212
</section>

src/components/Sections/Top/Top.svelte

Lines changed: 16 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -8,42 +8,33 @@
88
// That's to be able to responsively handle the movement of the animation
99
</script>
1010

11-
<SectionWrapper class="freq-container flex flex-col pb-f64 md:flex-row md:items-center md:justify-center">
11+
<SectionWrapper class="freq-container flex flex-col md:flex-row md:items-center md:justify-center">
1212
<div
13-
class="mb:h-[500px] relative mb-f56 flex h-[300px] w-full self-stretch sm:h-[380px] md:mb-0 md:w-1/2 lg:h-[700px]"
13+
class="mb:h-[500px] relative mb-f56 flex h-[300px] w-full self-stretch xs:h-[380px] md:-ml-f24 md:mb-0 md:w-1/2 lg:h-[700px]"
1414
>
1515
<HomeAnimation />
1616
<div
17-
class="math absolute left-[20px] top-[25%] sm:left-[18%] md:left-[23%] md:top-[calc(85px-((100vw-1300px)*0.075))] lg:top-[calc(250px-((100vw-1300px)*0.075))] xl:top-[220px]"
17+
class="math absolute left-[20px] top-[25%] xs:left-[18%] md:left-[23%] md:top-[calc(85px-((100vw-1300px)*0.075))] lg:top-[calc(250px-((100vw-1300px)*0.075))] xl:top-[220px]"
1818
>
1919
<SlideIn>
2020
<MsaCounter />
2121
</SlideIn>
2222
</div>
2323
</div>
24-
<div class="mx-auto w-full sm:max-w-[360px] md:w-1/2 md:max-w-[300px] md:pl-0 lg:max-w-[380px]">
25-
<SlideIn>
26-
<div
27-
class="font-title text-[44px] leading-[1] tracking-wide text-primary sm:text-left sm:text-[55px] md:text-[55px] lg:text-[70px]"
28-
>
29-
Bringing
30-
</div>
31-
<div
32-
class="relative font-title text-[44px] leading-[1] tracking-wide text-primary sm:text-right sm:text-[55px] md:text-[55px] lg:text-[70px]"
33-
>
34-
Humanity
35-
</div>
36-
<div class="italic text-teal sm:text-[28px] lg:text-[32px]">to the</div>
37-
<div
38-
class="font-title text-[44px] leading-[1] tracking-wide text-primary sm:text-left sm:text-[55px] md:text-[55px] lg:text-[70px]"
39-
>
40-
People's
41-
</div>
42-
<div
43-
class="font-title text-[44px] leading-[1] tracking-wide text-primary sm:text-right sm:text-[55px] md:text-[55px] lg:text-[70px]"
44-
>
45-
Internet
24+
<div class="mx-auto w-auto xs:max-w-[400px] md:w-1/2 md:max-w-[400px] md:pl-0 lg:w-full lg:max-w-[500px]">
25+
<SlideIn class="md:-ml-f16">
26+
<div class="top-title pl-f24 xs:text-left">Welcome</div>
27+
<div class="flex flex-wrap items-center gap-f16">
28+
<div class="whitespace-nowrap italic text-teal xs:text-normal sm:text-lg lg:text-[32px]">to the</div>
29+
<div class="top-title xs:text-left">People's</div>
4630
</div>
31+
<div class="top-title pl-f48">Internet</div>
4732
</SlideIn>
4833
</div>
4934
</SectionWrapper>
35+
36+
<style>
37+
.top-title {
38+
@apply font-title leading-[1] tracking-wide text-primary xs:text-[50px] sm:text-[60px] md:text-[75px] lg:text-[90px];
39+
}
40+
</style>

src/components/Sections/Users/Users.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
import UsersHeader from './UsersHeader.svelte';
66
</script>
77

8-
<SectionWrapper id="users" class="relative bg-navy pb-f128 pt-0 text-white lg:py-f128">
8+
<SectionWrapper id="users" class="relative bg-navy pb-f96 pt-0 text-white lg:py-f128">
99
<SectionContent class="flex flex-col gap-f56">
1010
<UsersHeader />
1111
<div class="freq-container">

src/lib/assets/ThankYouWave.svg

Lines changed: 8 additions & 0 deletions
Loading

src/lib/assets/ThankYouWaves.png

-39.8 KB
Binary file not shown.

src/routes/docs/components/DocsMain.svelte

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,10 @@
33
import SlideIn from '$components/SlideIn.svelte';
44
</script>
55

6-
<section class="freq-container flex flex-col lg:flex-row lg:items-center lg:justify-center">
7-
<div class="flex max-h-[500px] w-full self-center lg:h-[700px] lg:w-1/2">
6+
<section
7+
class="freq-container flex flex-col xs:pb-f56 md:pb-f96 lg:flex-row lg:items-center lg:justify-center lg:pb-f24"
8+
>
9+
<div class="flex h-[100vw] w-full self-center xs:max-h-[500px] lg:h-[700px] lg:w-1/2">
810
<DevPortalAnimation />
911
</div>
1012
<div class="flex flex-col gap-6 lg:w-1/2">

src/routes/docs/components/Explore.svelte

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,14 @@
2727

2828
<div
2929
id="explore_section"
30-
class="freq-container mt-f96 flex w-full flex-col gap-f12 pb-f96 pt-f20 lg:flex-row lg:gap-0 lg:py-f96"
30+
class="freq-container flex w-full flex-col gap-f12 pb-f96 pt-f56 lg:flex-row lg:gap-0 lg:py-f96"
3131
>
32-
<div id="explore_description" class="relative flex w-full flex-row px-f32 text-teal lg:w-1/2 lg:pt-f96">
32+
<div id="explore_description" class="relative flex w-full flex-row text-teal md:px-f32 lg:w-1/2 lg:pt-f96">
3333
<div class="flex flex-col gap-f32">
3434
<SlideIn>
3535
<span class="title-h2 mt-f8 text-clip text-wrap">Explore &amp; Build</span>
3636
</SlideIn>
37-
<div class="body pb-f64 text-white md:pb-f80">
37+
<div class="body pb-f64 text-white xs:pb-f32 md:pb-f80">
3838
Frequency offers simple blockchain integration for your applications&mdash;bridging the gap between your app and
3939
the decentralized web. Frequency Developer Gateway offers a suite of self-hosted tools and services that make it
4040
easy to connect your applications to Frequency. This allows your developer team to focus on building outstanding

0 commit comments

Comments
 (0)