aboutsummaryrefslogtreecommitdiffstats
path: root/src/routes
diff options
context:
space:
mode:
Diffstat (limited to 'src/routes')
-rw-r--r--src/routes/+page.svelte447
1 files changed, 368 insertions, 79 deletions
diff --git a/src/routes/+page.svelte b/src/routes/+page.svelte
index 3331b69b..6fcf7657 100644
--- a/src/routes/+page.svelte
+++ b/src/routes/+page.svelte
@@ -1,102 +1,391 @@
<script>
- import {
- LandingHeader,
- LandingHero,
- LandingInfoCard,
- HowItWorksCard,
- FaqCard,
- Image,
- About,
- Footer
- } from '$comp';
+ import { scroll } from '$lib/utils';
+ let faq;
- import { t } from '$lib/translations';
- import { close } from '$lib/socket';
- import { onMount } from 'svelte';
+
+</script>
+
+<svelte:head>
+ <link
+ href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css"
+ rel="stylesheet"
+ integrity="sha384-rbsA2VBKQhggwzxH7pPCaAqO46MgnOM80zW1RWuH61DGLwZJEdK2Kadq2F9CUG65"
+ crossorigin="anonymous"
+ />
+ <link href="responsive.css" rel="stylesheet" />
+ <link href="style.css" rel="stylesheet" />
- export let data;
- let { locations, user } = data;
- let update = (data) => ({ locations, user } = data);
- $: update(data);
+ <!-- Bootstrap JS -->
+ <script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" integrity="sha384-kenU1KFdBIe4zVF0s0G1M5b4hcpxyD9F7jL+jjXkk+Q2h455rYXK/7HAuoJl+0I4" crossorigin="anonymous"></script>
+</svelte:head>
- let howItWorks;
- let faq;
- let about;
+<!-- aleart -->
+<div
+ class="top_alert position-relative alert bg_purple mb-0 alert-dismissible fade show border_radius_0"
+ role="alert"
+>
+ <p class="text-center mb-0 text-white fw-semibold">
+ It's important not to forget your <span class="txt_yellow">username</span> and
+ <span class="txt_yellow">password</span> since we don't have access to those details.
+ </p>
+ <button
+ type="button"
+ class="bg-transparent border-0 shadow-none"
+ data-bs-dismiss="alert"
+ aria-label="Close"><img src="images/cross-icon.png" alt="" /></button
+ >
+</div>
- let log = console.log;
+<!-- nav -->
+<nav class="navbar navbar-expand-lg bg-transparent py-3">
+ <div class="container-xxl px-lg-5 px-sm-4 px-3">
+ <a class="navbar-brand site_logo" href="#"><img src="images/logo.png" alt="" /></a>
+ <button
+ class="navbar-toggler border-0 shadow-none"
+ type="button"
+ data-bs-toggle="offcanvas"
+ data-bs-target="#offcanvas"
+ >
+ <span class="navbar-toggler-icon" />
+ </button>
+ <div class="offcanvas offcanvas-start flex-lg-row flex-column" id="offcanvas">
+ <div class="py-4 pb-5 px-3 d-lg-none d-flex justify-content-end w-100">
+ <button type="button" class="btn-close" data-bs-dismiss="offcanvas" aria-label="Close" />
+ </div>
+ <ul class="navbar-nav text-lg-start text-center mx-auto mb-2 mb-lg-0">
+ <li class="nav-item me-lg-5 mb-lg-0 mb-4">
+ <a class="nav-link active" href="#">How it works</a>
+ </li>
+ <li class="nav-item me-lg-5 mb-lg-0 mb-4">
+ <a class="nav-link" href="" on:click={() => scroll(faq)}>F.A.Q.</a>
+ </li>
+ <li class="nav-item">
+ <a class="nav-link" href="#">About</a>
+ </li>
+ </ul>
+ <div
+ class="d-flex justify-content-lg-end justify-content-center nav_btn pt-lg-0 pt-5"
+ role="search"
+ >
+ <a href="/register" class="btn_black"><span>get started</span></a>
+ <a href="/login" class="btn_white"><span>sign in</span></a>
+ </div>
+ </div>
+ </div>
+</nav>
- const howItWorksSteps = [
- { image: 'hand', stepID: 'step1' },
- { image: 'bolt', stepID: 'step2' },
- { image: 'smile', stepID: 'step3' }
- ];
+<!-- hero -->
+<div class="site_hero pt-md-5 pt-4">
+ <div class="container-lg px-sm-4 px-3 pt-md-5 text-center">
+ <h1
+ class="text-center text-black f_bebas_neue text-uppercase fw-bold letter_space_2 display-3 lh-1"
+ >
+ The easiest way to get <br />
+ started with bitcoin.
+ </h1>
+ <p class="text-center txt_slate_blue mb-4">
+ A simple but powerful web wallet for everyone. *No software or hardware required.*
+ </p>
+ <a href="/register" class="btn_purple"><span class="px-5">Start in Seconds</span></a>
+ </div>
+ <div class="container-xxl px-lg-5 px-sm-4 px-3">
+ <div class="w-100">
+ <img class="w-100" src="images/hero_bg.png" alt="" />
+ </div>
+ </div>
+</div>
- const faqIDs = ['cost', 'compatibility', 'safety'];
+<!-- first grid -->
+<section class="py-4">
+ <div class="container-lg px-sm-4 px-3">
+ <div class="row justify-content-center">
+ <div class="col-lg-4 col-md-6 mb-lg-0 mb-4">
+ <div class="swapee_3_grids h-100 text-center col-md-10 mx-auto">
+ <img src="images/swapee-grid-1-3.png" alt="" />
+ <h5 class="f_bebas_neue fw-bold letter_space_1">Create your account</h5>
+ <p class="txt_slate_blue lh-base">
+ A username and password is all you need to get started. <a
+ href="#"
+ class="swapee_grid_link">Don’t forget it!</a
+ >
+ </p>
+ </div>
+ </div>
+ <div class="col-lg-4 col-md-6 mb-lg-0 mb-4">
+ <div class="swapee_3_grids h-100 text-center col-md-10 mx-auto">
+ <img src="images/swapee-grid-2-3.png" alt="" />
+ <h5 class="f_bebas_neue fw-bold letter_space_1">Ask for payments</h5>
+ <p class="txt_slate_blue lh-base">
+ It’s the same as you normally would traditionally, but with bitcoin.
+ </p>
+ </div>
+ </div>
+ <div class="col-lg-4 col-md-6">
+ <div class="swapee_3_grids h-100 text-center col-md-10 mx-auto">
+ <img src="images/swapee-grid-3-3.png" alt="" />
+ <h5 class="f_bebas_neue fw-bold letter_space_1">That's all!</h5>
+ <p class="txt_slate_blue lh-base">
+ Spend your coins immediately or save it and watch it grow, the choice is yours.
+ </p>
+ </div>
+ </div>
+ </div>
+ </div>
+</section>
- onMount(async () => {
- close();
+<!-- lightning network -->
+<section class="pt-md-5">
+ <div class="container-lg px-sm-4 px-3">
+ <div class="row align-items-center justify-content-center flex-md-row flex-column-reverse">
+ <div class="col-md-7 mb-md-0 mb-4">
+ <div>
+ <h6 class="f_bebas_neue txt_purple">Say Goodbye to Waiting</h6>
+ <h2 class="h1 letter_space_2 f_bebas_neue fw-bold text-black br_md_none mb-3 lh-1">
+ Lightning Network <br />
+ Brings Instant Payments
+ </h2>
+ <p class="txt_slate_blue">
+ Say goodbye to the headaches of waiting for bank settlements and dealing with
+ chargebacks with our payment solution. With instant settlement and no 3% credit card
+ processing fees, merchants can enjoy hassle-free retail payments.
+ </p>
- try {
- ({ locations } = await fetch('/locations').then((r) => r.json()));
- } catch (e) {
- console.log(e);
- }
- });
-</script>
+ <div class="mt-4 sec_btn">
+ <a href="#" class="btn_white f_bebas_neue"><span>Learn More</span></a>
+ <a href="#" class="btn_black f_bebas_neue"><span>Get Started</span></a>
+ </div>
+ </div>
+ </div>
-<svelte:head>
- <script src="https://stamen-maps.a.ssl.fastly.net/js/tile.stamen.js"></script>
-</svelte:head>
+ <div class="col-md-5 mb-md-0 mb-5 scale_img_right">
+ <div>
+ <img src="images/swapee-sec-calculator.png" class="w-100" alt="" />
+ </div>
+ </div>
+ </div>
+ </div>
+</section>
-<LandingHeader {howItWorks} {faq} {about} {user} />
+<section class="pt-5 bg_light">
+ <div class="container-lg px-sm-4 px-3">
+ <div class="row align-items-center justify-content-center">
+ <div class="col-md-5 scale_img_left">
+ <div>
+ <img src="images/swapee-sec-2-img.png" class="w-100" alt="" />
+ </div>
+ </div>
-<main class="space-y-40 py-20 md:py-32 lg:py-36 xl:py-40 px-5 md:px-0">
- <LandingHero {user} />
- <LandingInfoCard
- image="lightning-qr"
- title={$t('landing.info1.title')}
- description={$t('landing.info1.description')}
- />
+ <div class="col-md-7 mb-md-0 mb-4">
+ <div>
+ <h6 class="f_bebas_neue txt_purple">Quick and painless</h6>
+ <h2 class="h1 f_bebas_neue fw-bold text-black br_md_none mb-3 letter_space_2 lh-1">
+ Simple to use
+ </h2>
+ <p class="txt_slate_blue mb-4">
+ Just enter an amount in your local currency, share the QR code and you’re done. We do
+ all the heavy lifting so you can focus on your business. You always have the option of
+ taking custody of your funds by withdrawing instantly at any time.
+ </p>
+
+ <div class="mt-4 sec_btn">
+ <a href="#" class="btn_white f_bebas_neue"><span>Learn More</span></a>
+ <a href="/register" class="btn_purple f_bebas_neue"><span>Get Started</span></a>
+ </div>
+ </div>
+ </div>
+ </div>
+ </div>
+</section>
+
+<section class="sec_3 position-relative">
+ <div class="col-md-5 d-xxl-none d-md-block d-none position-absolute img_position">
+ <div>
+ <img src="images/swapee-sec-3-img.png" class="w-100" alt="" />
+ </div>
+ </div>
- <LandingInfoCard image="phone-checkout" title={$t('landing.info2.title')} order="reverse">
- {$t('landing.info2.description1')}
- <br /><br />
- {$t('landing.info2.description2')}
- <br /><br />
- {@html $t('landing.info2.description3')}
- </LandingInfoCard>
+ <div class="container-lg px-sm-4 px-3">
+ <div class="row align-items-center justify-content-center flex-md-row flex-column-reverse">
+ <div class="col-md-6 mb-md-0 mb-4">
+ <div>
+ <h6 class="f_bebas_neue txt_purple">Customized & Personalized</h6>
+ <h2 class="h1 letter_space_2 f_bebas_neue fw-bold text-black br_md_none mb-3 lh-1">
+ Brand it your way!
+ </h2>
+ <p class="txt_slate_blue">
+ You have complete control over your profile page's aesthetic. Customize it with your
+ preferred color scheme, avatar, and banner to reflect your brand, personality and
+ interests.
+ </p>
- <div>
- <LandingInfoCard
- image="customize"
- title={$t('landing.info3.title')}
- description={$t('landing.info3.description')}
- />
- <div bind:this={howItWorks} />
- <div id="about" />
+ <div class="mt-4 sec_btn">
+ <a href="#" class="btn_white f_bebas_neue mb-3"><span>Learn More</span></a>
+ <a href="#" class="btn_black f_bebas_neue mb-3"><span>Get Started</span></a>
+ </div>
+ </div>
+ </div>
+
+ <div class="col-md-6 mb-md-0 mb-4 sec_3_img">
+ <div class="d-xxl-block d-md-none d-block">
+ <img src="images/swapee-sec-3-img.png" class="w-100" alt="" />
+ </div>
+ </div>
+ </div>
</div>
+</section>
+
+<section class="py-5 bg_light">
+ <div class="container-lg px-sm-4 px-3" bind:this={faq}>
+ <div class="row align-items-center justify-content-center">
+ <div class="col-12 text-center">
+ <h6 class="f_bebas_neue txt_purple">This might help</h6>
+ <h2 class="h1 letter_space_2 f_bebas_neue fw-bold text-black br_md_none mb-5 lh-1">
+ Frequently asked <br /> questions
+ </h2>
+ </div>
+
+ <div class="accordion" id="accordionExample">
+ <div class="accordion-item swapee_accordion">
+ <h2 class="" id="headingOne">
+ <button
+ class="accordion-button shadow-none"
+ type="button"
+ >
+ <span class="line"> What does it cost? </span>
+ </button>
+ </h2>
+ <div
+ id="collapseOne"
+ >
+ <div class="accordion-body">
+ <p class="txt_slate_blue">
+ It's free to register an account and receive payments. We charge a 0.1% conversion
+ fee if you withdraw regular bitcoin to lightning or vice versa.
+ </p>
+ </div>
+ </div>
+ </div>
- <div>
- <h3 class="text-5xl font-medium mb-10 text-center">{$t('howItWorks.header')}</h3>
- <div class="grid lg:grid-cols-3 space-y-10 lg:space-y-0 text-center">
- {#each howItWorksSteps as step}
- <HowItWorksCard image={step.image} stepID={step.stepID} />
- {/each}
+ <div class="accordion-item swapee_accordion">
+ <h2 class="accordion-header" id="headingTwo">
+ <button
+ class="accordion-button shadow-none"
+ type="button"
+ >
+ <span class="line"> Do I need any special device or software? </span>
+ </button>
+ </h2>
+ <div
+ id="collapseTwo"
+ >
+ <div class="accordion-body">
+ <p class="txt_slate_blue">
+ It's free to register an account and receive payments. We charge a 0.1% conversion
+ fee if you withdraw regular bitcoin to lightning or vice versa.
+ </p>
+ </div>
+ </div>
+ </div>
+
+ <div class="accordion-item swapee_accordion">
+ <h2 class="accordion-header" id="headingThree">
+ <button
+ class="accordion-button shadow-none "
+ type="button"
+ >
+ <span class="line"> When do my funds settle? </span>
+ </button>
+ </h2>
+ <div
+ id="collapseThree"
+ aria-labelledby="headingThree"
+ data-bs-parent="#accordionExample"
+ >
+ <div class="accordion-body">
+ <p class="txt_slate_blue">
+ It's free to register an account and receive payments. We charge a 0.1% conversion
+ fee if you withdraw regular bitcoin to lightning or vice versa.
+ </p>
+ </div>
+ </div>
+ </div>
+ </div>
</div>
- <div bind:this={faq} />
</div>
+</section>
- <div>
- <div class="space-y-10">
- <h3 class="text-5xl font-medium text-center">{$t('faq.header')}</h3>
- {#each faqIDs as faqID}
- <FaqCard questionID={faqID} />
- {/each}
+<!-- bitcoin_location -->
+<div class="bitcoin_location">
+ <div class="container-lg px-sm-4 px-3">
+ <h2 class="h3 text-center text-black f_bebas_neue fw-bold letter_space_2">
+ Real-World Bitcoin Locations
+ </h2>
+ <p class="text-center opacity-75 mb-md-5 mb-4">
+ Join the <span class="fs_18 fw-bold">Growing businesses</span> that accept
+ <span class="fs_18 fw-bold">Bitcoin</span>
+ with <span class="fs_18 fw-bold">Swapee!</span>
+ </p>
+ <div class="d-flex justify-content-center align-items-start flex-wrap">
+ <a href="#" class="btn_line me-sm-3 me-2 mb-4">Business Listings</a>
+ <a href="#" class="btn_black"><span class="px-sm-5">Get Listed</span></a>
</div>
- <div bind:this={about} />
</div>
+</div>
- <About {locations} />
-</main>
+<!-- footer -->
+<footer class="site_footer">
+ <div class="container-lg px-4">
+ <!-- footer_top -->
+ <div class="footer_top pb-4">
+ <div class="row align-items-center justify-content-between">
+ <div class="col-md-5 mb-md-0 mb-5">
+ <a href="#" class="footer_logo"><img src="images/footer-logo.png" alt="" /></a>
+ <p class="text-white-50 mt-5 mb-4">
+ Copyright © 2023. Swapee.me is a Registered Cryptoasset firm and is registered with the
+ UK Financial Conduct Authority.
+ <br />
+ <br />
+ All rights reserved.
+ </p>
+ <a class="btn_language" href="#">English</a>
+ </div>
+ <div
+ class="ps-md-4 footer_top_right col-md-6 d-flex align-items-center justify-content-end justify-content-sm-center justify-content-between"
+ >
+ <div class="row justify-content-md-end">
+ <div class="col-xl-6 col-md-10 col-sm-6 mb-xl-0 mb-4 pe-xl-5 pe-md-0 pe-sm-5">
+ <h6 class="text-white opacity-75 mb-0">Business enquiries</h6>
+ <a href="mailto:[email protected]">[email protected]</a>
+ </div>
+ <div class="col-xl-6 col-md-10 col-sm-6 pe-xl-5 pe-md-0 pe-sm-5">
+ <h6 class="text-white opacity-75 mb-0">Job enquiries</h6>
+ <a href="mailto:[email protected]">[email protected]</a>
+ </div>
+ </div>
+ <div class="social_links d-flex">
+ <a href="#" class="me-3"><img src="images/twitter.svg" alt="" /></a>
+ <a href="#"><img src="images/telegram.svg" alt="" /></a>
+ </div>
+ </div>
+ </div>
+ </div>
-<Footer />
+ <!-- footer_bottom -->
+ <div class="footer_bottom pt-4 pb-2">
+ <ul class="list-unstyled mb-0 ps-0">
+ <li class="pb-3">
+ <a href="#">Documentation</a>
+ </li>
+ <li class="pb-3">
+ <a href="#">Privacy Policy</a>
+ </li>
+ <li class="pb-3">
+ <a href="#">Terms of Use</a>
+ </li>
+ <li class="pb-3">
+ <a href="#">Contributor License Agreement</a>
+ </li>
+ </ul>
+ </div>
+ </div>
+</footer>