Skip to content

Commit

Permalink
first pass
Browse files Browse the repository at this point in the history
  • Loading branch information
shannonwells committed Nov 19, 2024
1 parent 46fa20a commit 0e4dcd6
Show file tree
Hide file tree
Showing 18 changed files with 6,693 additions and 154 deletions.
5 changes: 4 additions & 1 deletion client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,8 @@
"typescript": "^5.1.3",
"vite": "5.4.6"
},
"type": "module"
"type": "module",
"dependencies": {
"@frequency-chain/style-guide": "^0.1.22"
}
}
146 changes: 60 additions & 86 deletions client/src/app.css
Original file line number Diff line number Diff line change
@@ -1,22 +1,15 @@
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Unbounded:wght@700;800&display=swap");
@font-face {
font-family: 'Newake';
src: url('./style/indieground-newakefont-web/Newake-Font-Regular.eot');
src:
url('./style/indieground-newakefont-web/Newake-Font-Regular.woff') format('woff'),
url('./style/indieground-newakefont-web/Newake-Font-Regular.otf') format('opentype'),
url('./style/indieground-newakefont-web/Newake-Font-Regular.svg#filename') format('svg');
}

@tailwind base;
@tailwind components;

:root {
font-family: Poppins, Helvetica, Arial, sans-serif;
font-size: 16px;
line-height: 24px;
font-weight: 400;

color-scheme: light dark;

font-synthesis: none;
text-rendering: optimizeLegibility;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
-webkit-text-size-adjust: 100%;
scroll-behavior: smooth;
}
@tailwind utilities;

a {
font-weight: 500;
Expand All @@ -28,59 +21,21 @@ a:hover {
color: #535bf2;
}

body {
margin: 0;
display: flex;
place-items: center;
min-width: 320px;
min-height: 100vh;
background-color: #fefaf3;
}

@media (min-width: 768px) {
.background {
/* background-image: url("$lib/assets/circle.svg"), url("$lib/assets/circle.svg"), url("$lib/assets/circle.svg"); */
background-repeat: no-repeat;
position: absolute;
background-position-y: 10%, 73%, 50%;
background-position-x:
25%,
-13%,
115%;
background-size: 20%, 20%, 30%;
bottom: 0px;
right: 0px;
width: 100%;
height: 100%;
pointer-events: none;
}
}

h1 {
font-size: 3.2em;
line-height: 1.1;
}

.card {
padding: 2em;
@apply p-[2em] bg-cream;
}

button {
border-radius: 50%;
@apply bg-teal text-black font-bold cursor-pointer;
border: 1px solid transparent !important;
padding: 0.6em 1.2em;
font-size: 1em;
font-weight: bold;
font-family: inherit;
background-color: #55b1ab;
cursor: pointer;
transition: border-color 0.25s;
color: #fff;

}

button:disabled {
background-color: #c8cdd0;
color: #fff !important;
@apply bg-gray3;
color: white !important;
}

button:hover {
Expand All @@ -90,8 +45,7 @@ button:hover {

@media (prefers-color-scheme: light) {
:root {
color: #213547;
background-color: #ffffff;
@apply text-black bg-white;
}

a:hover {
Expand All @@ -104,28 +58,48 @@ button:hover {
}

.submit-btn {
@apply btn w-full mt-6 rounded-3xl text-white;
background-color: #55b1ab;
text-transform: none;
}

.faucet-card {
background-color: #fff;
}

.card-title {
@apply text-black text-4xl;
font-weight: 700;
@apply btn w-full mt-6 rounded-3xl text-black font-bold bg-teal;
/*text-transform: none;*/
}

@layer components {
/* Typeography */
.title-h2 {
@apply font-title text-[50px] leading-[1] tracking-wider md:text-[60px] lg:text-[64px];
}

.title-h3 {
@apply font-title text-[40px] leading-[1] tracking-wider md:text-[40px] lg:text-[44px];
}

.title-h5 {
@apply font-title text-[18px] leading-[1] tracking-wider sm:text-[20px] md:text-[22px] lg:text-[26px];
}
.body {
@apply text-normal md:text-md;
}
}

@layer base {
html {
color-scheme: light dark;
font-synthesis: none;
text-rendering: optimizeLegibility;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
-webkit-text-size-adjust: 100%;
scroll-behavior: smooth;
}

body {
@apply m-0 min-w-f320 min-h-[100vh] flex items-center bg-white text-normal;
}

button {
@apply select-none;
}

::placeholder {
@apply text-gray2 !important;
}
}

.card-subtitle {
@apply text-black opacity-70;
font-weight: 400;
font-size: 16px;
}

.dropdown a {
color: black;
}

@tailwind utilities;
17 changes: 2 additions & 15 deletions client/src/lib/components/Card.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
import { testnet } from "$lib/utils/stores";
</script>

<div class="card md:w-2/4 w-5/6 min-w-full shadow-xl faucet-card">
<div class="card md:w-2/4 w-5/6 min-w-full shadow-xl">
<div class="card-body items-center text-center">
<h1>{$testnet.networkName} Faucet</h1>
<h1 class="title-h3 text-navy">{$testnet.networkName} Faucet</h1>
<h3>
Get {$testnet.currency} tokens for {$testnet.networkName} testnet.
</h3>
Expand All @@ -24,16 +24,3 @@
</div>
</div>
{/if}

<style lang="postcss">
h1 {
@apply text-black text-4xl;
font-weight: 700;
}
h3 {
@apply text-black opacity-70;
font-weight: 400;
font-size: 16px;
}
</style>
51 changes: 40 additions & 11 deletions client/src/lib/components/Footer.svelte
Original file line number Diff line number Diff line change
@@ -1,15 +1,44 @@
<script lang="ts">
import { PUBLIC_FORUM } from "$env/static/public";
import { IconButton, } from "@frequency-chain/style-guide";
import XLogo from "$lib/components/icons/XLogo.svelte";
import DiscordLogo from "$lib/components/icons/DiscordLogo.svelte"
import FrequencyLogo from "$lib/components/icons/FrequencyLogo.svelte"
export let privacyHref: string = 'https://www.frequency.xyz/privacy';
export let type: 'light' | 'dark' = 'light';
let fgColorText = {
dark: 'text-white',
light: 'text-black',
}[type];
let fgColorBg = {
dark: 'bg-white',
light: 'bg-black',
}[type];
</script>

<footer class="footer items-center p-4 text-black px-1 md:px-6">
<div class="items-center grid-flow-col">
<p>2024 Frequency Network Foundation</p>
</div>
<div class="grid-flow-col gap-4 md:place-self-center md:justify-self-end">
<b class="font-bold">Questions?</b>
<a class="text-black text-opacity-80 cursor-pointer" href={PUBLIC_FORUM} target="_blank">
Discord Channel
</a>
</div>
<footer
class="sm md:md mx-auto my-0 flex max-w-screen-xl flex-col items-center gap-f16 border-t-[2px] border-current py-f48 md:gap-f48 {fgColorText}"
>
<FrequencyLogo fill="#000000"/>
<aside class="flex flex-col items-center space-y-4 text-center leading-none md:flex-row md:space-x-4 md:space-y-0">
<div>
© {new Date().getFullYear()} Frequency Network Foundation <span class="md:hidden">All Rights Reserved</span>
</div>
<div class="hidden w-[2px] self-stretch md:block {fgColorBg}"></div>
<div class="hidden md:block">All Rights Reserved</div>
<div class="hidden w-[2px] self-stretch md:block {fgColorBg}"></div>
<div>
<a href={privacyHref} class="underline transition duration-[0.3s] hover:text-teal">Privacy Policy</a>
</div>
</aside>
<div class="flex gap-f16" aria-label="Social Links">
<IconButton {type} label="X/Twitter" href={'https://twitter.com/one_frequency'}>
<XLogo />
</IconButton>
<IconButton {type} label="Discord" href="https://discord.com/invite/JchmHX5afV">
<DiscordLogo />
</IconButton>
</div>
</footer>

4 changes: 2 additions & 2 deletions client/src/lib/components/NavBar.svelte
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
<script lang="ts">
import { base } from "$app/paths";
import logo from "$lib/assets/logo.svg";
import FrequencyLogo from "$lib/components/icons/FrequencyLogo.svelte"
</script>

<div class="navigation-bar">
<div class="flex-1">
<div class="w-36 rounded-full">
<a href={`${base}/`}><img src={logo} alt="logo" /></a>
<a href={`${base}/`} class="text-black"><FrequencyLogo width="144"/></a>
</div>
</div>
<div class="flex-none">
Expand Down
17 changes: 17 additions & 0 deletions client/src/lib/components/icons/DiscordLogo.svelte
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<svg
viewBox="0 -28.5 256 256"
version="1.1"
xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink"
preserveAspectRatio="xMidYMid"
class={$$restProps.class}
>
<g>
<path
d="M216.856339,16.5966031 C200.285002,8.84328665 182.566144,3.2084988 164.041564,0 C161.766523,4.11318106 159.108624,9.64549908 157.276099,14.0464379 C137.583995,11.0849896 118.072967,11.0849896 98.7430163,14.0464379 C96.9108417,9.64549908 94.1925838,4.11318106 91.8971895,0 C73.3526068,3.2084988 55.6133949,8.86399117 39.0420583,16.6376612 C5.61752293,67.146514 -3.4433191,116.400813 1.08711069,164.955721 C23.2560196,181.510915 44.7403634,191.567697 65.8621325,198.148576 C71.0772151,190.971126 75.7283628,183.341335 79.7352139,175.300261 C72.104019,172.400575 64.7949724,168.822202 57.8887866,164.667963 C59.7209612,163.310589 61.5131304,161.891452 63.2445898,160.431257 C105.36741,180.133187 151.134928,180.133187 192.754523,160.431257 C194.506336,161.891452 196.298154,163.310589 198.110326,164.667963 C191.183787,168.842556 183.854737,172.420929 176.223542,175.320965 C180.230393,183.341335 184.861538,190.991831 190.096624,198.16893 C211.238746,191.588051 232.743023,181.531619 254.911949,164.955721 C260.227747,108.668201 245.831087,59.8662432 216.856339,16.5966031 Z M85.4738752,135.09489 C72.8290281,135.09489 62.4592217,123.290155 62.4592217,108.914901 C62.4592217,94.5396472 72.607595,82.7145587 85.4738752,82.7145587 C98.3405064,82.7145587 108.709962,94.5189427 108.488529,108.914901 C108.508531,123.290155 98.3405064,135.09489 85.4738752,135.09489 Z M170.525237,135.09489 C157.88039,135.09489 147.510584,123.290155 147.510584,108.914901 C147.510584,94.5396472 157.658606,82.7145587 170.525237,82.7145587 C183.391518,82.7145587 193.761324,94.5189427 193.539891,108.914901 C193.539891,123.290155 183.391518,135.09489 170.525237,135.09489 Z"
fill="currentColor"
fill-rule="nonzero"
>
</path>
</g>
</svg>
Original file line number Diff line number Diff line change
@@ -1,13 +1,18 @@
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="461.117" height="68.256" viewBox="0 0 461.117 68.256">
<script type="ts">
export let fill='#55B1AB';
export let width='461'
</script>

<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" {width} height="68.256" viewBox="0 0 461.117 68.256">
<defs>
<clipPath id="clip-path">
<path id="Path_60" data-name="Path 60" d="M36.1,40.076v65.463H47.625V85.166l23.052-9.945-.309-11.729L47.625,73.177V50.987H76.953V40.076ZM91.965,50.987h15.449c4.976,0,9.078,2.531,9.078,7.943,0,5.324-4.1,8.03-9.078,8.03H91.965ZM80.444,40.076v65.463H91.965V89.479l36.048,16.147V92.97l-35-15.1h14.139c11.173,0,20.861-7.157,20.861-18.94s-9.688-18.854-20.861-18.854Zm51.06,0v65.463h40.849V94.629H143.025V78.219h29.328V67.309H143.025V50.987h29.328V40.076Zm150.651,0V84.853c0,6.721-4.888,11.347-11.522,11.347s-11.521-4.626-11.521-11.347V40.076H247.59v44.6c0,13.18,10.3,22.258,23.043,22.258s23.043-9.078,23.043-22.258v-44.6Zm15.012,0v65.463h40.848V94.629H308.688V78.219h29.327V67.309H308.688V50.987h29.327V40.076Zm80.824,0V84.242l-24-44.166H341.506v65.463h11.347V61.461l24.09,44.078h12.4V40.076Zm106.923,0-9.078,24.615-9.6-24.615H453.492l27.843,65.463H493.38l-11.608-27.32,15.449-38.143ZM186.754,72.808a23.261,23.261,0,1,1,46.522,0,23.816,23.816,0,0,1-3.055,11.7L204.3,68.531V81.536l18.243,11a23.733,23.733,0,0,1-12.569,3.578,23.008,23.008,0,0,1-23.218-23.3M209.972,38.68a34.128,34.128,0,1,0,22.519,59.876l11.609,6.983V92.97l-4.626-2.793A34.838,34.838,0,0,0,244.1,72.808,33.846,33.846,0,0,0,209.972,38.68Zm216.985,0a34.128,34.128,0,1,0,27.407,54.377l-8.03-8.03a21.476,21.476,0,0,1-19.377,11.085c-13.18,0-23.13-10.125-23.13-23.3s9.95-23.392,23.13-23.392a21.548,21.548,0,0,1,19.377,11.172l8.03-8.03A33.331,33.331,0,0,0,426.957,38.68Z" fill="#55B1AB"/>
<path id="Path_60" data-name="Path 60" d="M36.1,40.076v65.463H47.625V85.166l23.052-9.945-.309-11.729L47.625,73.177V50.987H76.953V40.076ZM91.965,50.987h15.449c4.976,0,9.078,2.531,9.078,7.943,0,5.324-4.1,8.03-9.078,8.03H91.965ZM80.444,40.076v65.463H91.965V89.479l36.048,16.147V92.97l-35-15.1h14.139c11.173,0,20.861-7.157,20.861-18.94s-9.688-18.854-20.861-18.854Zm51.06,0v65.463h40.849V94.629H143.025V78.219h29.328V67.309H143.025V50.987h29.328V40.076Zm150.651,0V84.853c0,6.721-4.888,11.347-11.522,11.347s-11.521-4.626-11.521-11.347V40.076H247.59v44.6c0,13.18,10.3,22.258,23.043,22.258s23.043-9.078,23.043-22.258v-44.6Zm15.012,0v65.463h40.848V94.629H308.688V78.219h29.327V67.309H308.688V50.987h29.327V40.076Zm80.824,0V84.242l-24-44.166H341.506v65.463h11.347V61.461l24.09,44.078h12.4V40.076Zm106.923,0-9.078,24.615-9.6-24.615H453.492l27.843,65.463H493.38l-11.608-27.32,15.449-38.143ZM186.754,72.808a23.261,23.261,0,1,1,46.522,0,23.816,23.816,0,0,1-3.055,11.7L204.3,68.531V81.536l18.243,11a23.733,23.733,0,0,1-12.569,3.578,23.008,23.008,0,0,1-23.218-23.3M209.972,38.68a34.128,34.128,0,1,0,22.519,59.876l11.609,6.983V92.97l-4.626-2.793A34.838,34.838,0,0,0,244.1,72.808,33.846,33.846,0,0,0,209.972,38.68Zm216.985,0a34.128,34.128,0,1,0,27.407,54.377l-8.03-8.03a21.476,21.476,0,0,1-19.377,11.085c-13.18,0-23.13-10.125-23.13-23.3s9.95-23.392,23.13-23.392a21.548,21.548,0,0,1,19.377,11.172l8.03-8.03A33.331,33.331,0,0,0,426.957,38.68Z" {fill}/>
</clipPath>
</defs>
<g id="Group_182" data-name="Group 182" transform="translate(-36.104 -38.68)">
<path id="Path_59" data-name="Path 59" d="M36.1,40.076v65.463H47.625V85.166l23.052-9.945-.309-11.729L47.625,73.177V50.987H76.953V40.076ZM91.965,50.987h15.449c4.976,0,9.078,2.531,9.078,7.943,0,5.324-4.1,8.03-9.078,8.03H91.965ZM80.444,40.076v65.463H91.965V89.479l36.048,16.147V92.97l-35-15.1h14.139c11.173,0,20.861-7.157,20.861-18.94s-9.688-18.854-20.861-18.854Zm51.06,0v65.463h40.849V94.629H143.025V78.219h29.328V67.309H143.025V50.987h29.328V40.076Zm150.651,0V84.853c0,6.721-4.888,11.347-11.522,11.347s-11.521-4.626-11.521-11.347V40.076H247.59v44.6c0,13.18,10.3,22.258,23.043,22.258s23.043-9.078,23.043-22.258v-44.6Zm15.012,0v65.463h40.848V94.629H308.688V78.219h29.327V67.309H308.688V50.987h29.327V40.076Zm80.824,0V84.242l-24-44.166H341.506v65.463h11.347V61.461l24.09,44.078h12.4V40.076Zm106.923,0-9.078,24.615-9.6-24.615H453.492l27.843,65.463H493.38l-11.608-27.32,15.449-38.143ZM186.754,72.808a23.261,23.261,0,1,1,46.522,0,23.816,23.816,0,0,1-3.055,11.7L204.3,68.531V81.536l18.243,11a23.733,23.733,0,0,1-12.569,3.578,23.008,23.008,0,0,1-23.218-23.3M209.972,38.68a34.128,34.128,0,1,0,22.519,59.876l11.609,6.983V92.97l-4.626-2.793A34.838,34.838,0,0,0,244.1,72.808,33.846,33.846,0,0,0,209.972,38.68Zm216.985,0a34.128,34.128,0,1,0,27.407,54.377l-8.03-8.03a21.476,21.476,0,0,1-19.377,11.085c-13.18,0-23.13-10.125-23.13-23.3s9.95-23.392,23.13-23.392a21.548,21.548,0,0,1,19.377,11.172l8.03-8.03A33.331,33.331,0,0,0,426.957,38.68Z" fill="#4b64ff"/>
<g id="Group_181" data-name="Group 181" clip-path="url(#clip-path)">
<rect id="Rectangle_137" data-name="Rectangle 137" width="461.117" height="68.256" transform="translate(36.104 38.68)" fill="#55B1AB"/>
<rect id="Rectangle_137" data-name="Rectangle 137" width="461.117" height="68.256" transform="translate(36.104 38.68)" {fill}/>
</g>
</g>
</svg>
6 changes: 6 additions & 0 deletions client/src/lib/components/icons/XLogo.svelte
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<svg viewBox="0 0 300 300.251" version="1.1" xmlns="http://www.w3.org/2000/svg" class={$$restProps.class}>
<path
d="M178.57 127.15 290.27 0h-26.46l-97.03 110.38L89.34 0H0l117.13 166.93L0 300.25h26.46l102.4-116.59 81.8 116.59h89.34M36.01 19.54H76.66l187.13 262.13h-40.66"
fill="currentColor"
/>
</svg>
38 changes: 4 additions & 34 deletions client/src/lib/components/screens/FrequentlyAskedQuestions.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -5,44 +5,14 @@
</script>

<div class="flex items-center justify-center my-2 md:my-16">
<div class="card md:w-2/4 w-5/6 min-w-full mt-2 md:mt-20">
<div class="card-body items-center text-center">
<h1 id="faq">Frequently Asked Questions</h1>
<div class="md:w-2/4 w-5/6 min-w-full mt-2 md:mt-20">
<div class=" items-center text-center">
<h1 id="faq" class="title-h3 text-navy">Frequently Asked Questions</h1>
<div
class="content prose lg:prose-xl prose-headings:text-xl prose-headings:text-black prose-headings:font-bold prose-p:text-opacity-90"
class="mt-2 md:mt-8 w-full text-left prose lg:prose-xl prose-headings:text-xl prose-headings:text-black prose-headings:font-bold prose-p:text-opacity-90"
>
<SvelteMarkdown source={faq} />
</div>
</div>
</div>
</div>

<style lang="postcss">
h1 {
@apply text-black text-4xl;
font-weight: 700;
}
.content {
@apply mt-2 md:mt-8 w-full text-left;
font-size: 16px;
font-weight: 400;
& h2 {
font-size: 16px;
font-weight: 600;
}
}
.card,
.card-body {
padding: 0;
}
@media only screen and (max-width: 768px) {
.card,
.card-body {
padding: var(--padding-card, 2rem);
}
}
</style>
Binary file not shown.
Binary file not shown.
Loading

0 comments on commit 0e4dcd6

Please sign in to comment.