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

Landing page #44

Merged
merged 30 commits into from
Oct 31, 2024
Merged
Show file tree
Hide file tree
Changes from 21 commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
01e0bb8
base work
saraswatpuneet Oct 30, 2024
c47af4e
set top page with placeholder image
saraswatpuneet Oct 30, 2024
bc56c76
cleanup
saraswatpuneet Oct 30, 2024
cb93f0f
align with about page
saraswatpuneet Oct 30, 2024
8ae7fbb
correction
saraswatpuneet Oct 30, 2024
480a619
styling
saraswatpuneet Oct 30, 2024
faa9448
Merge branch 'developer-portal' into landing_page
saraswatpuneet Oct 30, 2024
4cdc273
lint
saraswatpuneet Oct 30, 2024
f485a3a
lint
saraswatpuneet Oct 30, 2024
a7cdc4e
addd placeholder section image
saraswatpuneet Oct 30, 2024
6a50ee1
lint
saraswatpuneet Oct 30, 2024
213d001
improve image placeholder
saraswatpuneet Oct 31, 2024
3bed3f4
remove sections nesting and contains docs stuff in docs
saraswatpuneet Oct 31, 2024
eae3367
remove unused style
saraswatpuneet Oct 31, 2024
ee78267
remove image from mobile view
saraswatpuneet Oct 31, 2024
722b887
improve design for small screen
saraswatpuneet Oct 31, 2024
747d820
aling indentation
saraswatpuneet Oct 31, 2024
29e92ba
set same header colors across
saraswatpuneet Oct 31, 2024
5c60e08
remove views
saraswatpuneet Oct 31, 2024
61e9f0b
need to constrain view
saraswatpuneet Oct 31, 2024
8ba7af0
simple render
saraswatpuneet Oct 31, 2024
f1af4e4
Update src/routes/docs/components/DocsBody.svelte
saraswatpuneet Oct 31, 2024
a816e40
Update src/routes/docs/components/DocsBody.svelte
saraswatpuneet Oct 31, 2024
4764972
remove parts
saraswatpuneet Oct 31, 2024
7d161ec
remove outer scope
saraswatpuneet Oct 31, 2024
90aa32e
set page layout
saraswatpuneet Oct 31, 2024
cd28d9e
cleanups for cleaner less wavy layout
saraswatpuneet Oct 31, 2024
fc79ea8
align top down
saraswatpuneet Oct 31, 2024
f580dd5
render at laptopsize
saraswatpuneet Oct 31, 2024
9446ab0
rename
saraswatpuneet Oct 31, 2024
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
1 change: 1 addition & 0 deletions src/lib/assets/placeholder-portal.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 2 additions & 9 deletions src/routes/docs/+layout.svelte
Original file line number Diff line number Diff line change
@@ -1,15 +1,8 @@
<script lang="ts">
import Header from '../../components/Header/Header.svelte';
import { Footer } from '@frequency-chain/style-guide';

const logoHex = '#5E69FF';
const navColor = 'navy';
</script>

<div class="relative lg:max-w-[100vw] xl:max-w-page">
<Header {logoHex} {navColor} />
<div class="mt-4 p-3">
<slot />
</div>
<div>
<slot />
<Footer />
</div>
31 changes: 30 additions & 1 deletion src/routes/docs/+page.svelte
Original file line number Diff line number Diff line change
@@ -1 +1,30 @@
<div class="mx-auto flex-grow justify-center px-4 sm:px-6 lg:px-8"></div>
<script lang="ts">
import DocsBody from './components/DocsBody.svelte';
import Header from '../../components/Header/Header.svelte';
$: section = 1;
const brightBlue = '#5E69FF';
const cream = '#FEFAF3';

const logoMap = new Map([
[1, { logo: brightBlue, nav: 'navy' }],
[2, { logo: cream, nav: 'cream' }],
[3, { logo: brightBlue, nav: 'cream' }],
[4, { logo: brightBlue, nav: 'navy' }],
[5, { logo: cream, nav: 'cream' }],
]);

// Section navigation titles for Aria

$: logoHex = logoMap.get(section)?.logo;
$: navColor = logoMap.get(section)?.nav;
// $: baseUrl = $page.url.protocol + '//' + $page.url.host;
</script>

<div class="min-h-[calc(100vh-100px)]">
<div class="relative lg:max-w-[100vw] xl:max-w-page">
<div class="absolute top-0 z-50 w-full"><Header {logoHex} {navColor} bind:section /></div>
<div class={`relative w-[100vw] min-w-full sm:pt-[80px] lg:pt-[140px] vertical-lg:w-[100%]`}>
<DocsBody />
</div>
</div>
</div>
33 changes: 33 additions & 0 deletions src/routes/docs/components/DocsBody.svelte
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
<script lang="ts">
import SlideIn from '../../../components/SlideIn.svelte';
import Placeholder from './Placeholder.svelte';
</script>

<div
class="flex sm:justify-start sm:px-[30px] md:px-[50px] lg:justify-end lg:px-0 vertical-lg:justify-start vertical-lg:px-[30px]"
>
<section class="flex h-full w-full flex-col gap-6 lg:w-[60%] lg:pl-6">
<SlideIn>
<h2 class="title-75 paragraph-spacing-left text-navy sm:max-w-[600px] md:max-w-[700px] lg:max-w-[800px]">
Build with Frequency
</h2>
</SlideIn>
<SlideIn>
<p class="title-50 paragraph-spacing-left text-orange sm:max-w-[600px] md:max-w-[700px] lg:max-w-[800px]">
Better with You
</p>
</SlideIn>
<p class="body paragraph-spacing-left sm:max-w-[600px] md:max-w-[700px] lg:max-w-[800px]">
Everything here is open source. Our development roadmap is focussed on our mission of reclaiming the social graph
for the common good and is guided by our principles. Infrastructure for the Next Generation Decentralized Social
Internet.
</p>
<p class="body paragraph-spacing-left sm:max-w-[600px] md:max-w-[700px] lg:max-w-[800px]">
If this is your first visit, the DSNP whitepape is a good place to start. Where you go after depends on your
goals: the nagivation panel gives some useful entry points.
</p>
</section>
</div>
<div>
<Placeholder />
</div>
7 changes: 7 additions & 0 deletions src/routes/docs/components/Placeholder.svelte
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<!-- Desktop -->
<div
class="relative z-10 h-full w-full bg-[url(/src/lib/assets/placeholder-portal.svg)] bg-right-bottom bg-no-repeat sm:hidden lg:block vertical-lg:hidden"
></div>
<div
class="relative z-0 -mt-[350px] h-[400px] w-full bg-[url(/src/lib/assets/placeholder-portal.svg)] bg-left-top bg-no-repeat sm:hidden lg:block vertical-lg:hidden"
></div>
Loading