Skip to content

Commit

Permalink
Footer and links to promotional site.
Browse files Browse the repository at this point in the history
  • Loading branch information
amanzag committed Oct 31, 2024
1 parent 2dfef36 commit 22a902f
Show file tree
Hide file tree
Showing 5 changed files with 47 additions and 8 deletions.
3 changes: 2 additions & 1 deletion swap-frontend/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import { Toaster } from 'solid-toast';
import { History } from './History.js';
import { SwapForm } from './SwapForm.js';
import { Header } from './Header.js';
import { Footer } from './Footer.js';

const Layout: Component<RouteSectionProps> = (props) => {
return <>
Expand All @@ -19,7 +20,7 @@ const Layout: Component<RouteSectionProps> = (props) => {
</header>
{props.children}
</div>
<footer>TBD</footer>
<Footer />
<Toaster toastOptions={{
duration: 5000,
position: 'bottom-right',
Expand Down
17 changes: 17 additions & 0 deletions swap-frontend/src/Footer.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import { Component } from 'solid-js';
import brandUrl from '/assets/brand.svg';
import elSalvadorUrl from '/assets/gobierno-de-el-salvador.png';

export const Footer: Component = () => <>
<footer>
<div class="d-flex flex-column gap-3">
<div><img src={brandUrl} /></div>
<div><strong>40 ACRES, S.A. DE C.V.</strong><br />Company Registration No. 2024113630 - El Salvador</div>
<div>Copyright © 2024 40Swap.com</div>
</div>
<div class="d-flex flex-column gap-3">
<div><img src={elSalvadorUrl} /></div>
<div><strong>BTC License</strong><br /> Codigo de registro: 664bd64379e50005ac479693</div>
</div>
</footer>
</>;
4 changes: 2 additions & 2 deletions swap-frontend/src/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const NavLinks: Component = () => <>
<Nav.Link link href="/faq">FAQ</Nav.Link>
</Nav.Item>
<Nav.Item>
<Nav.Link link href="/contact">Contact</Nav.Link>
<Nav.Link href="https://www.40swap.com/#contact-form">Contact</Nav.Link>
</Nav.Item>
</>;

Expand All @@ -26,7 +26,7 @@ export const Header: Component = () => {
return <>
<Navbar class="mb-4 pt-4" expand="md" collapseOnSelect>
<Container>
<Navbar.Brand class="fs-2" href="/">
<Navbar.Brand class="fs-2" href="https://www.40swap.com">
<img src={logo} style="height: 3rem"/>
</Navbar.Brand>
<Navbar.Toggle class="d-sm-block d-md-none" onClick={() => setShowOffCanvas(true)} />
Expand Down
31 changes: 26 additions & 5 deletions swap-frontend/src/app.scss
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,7 @@ $small-font-size: .80em;
@import "../../node_modules/bootstrap/scss/bootstrap";

#main {
background-image: url("assets/swap-background.jpeg");
background-size: cover;
background-position: center;
background-repeat: no-repeat;
background: linear-gradient(rgba(231, 235, 247, 1), rgba(241, 241, 241, 1)) !important;
min-height: 100vh;
padding-bottom: 60px;
}
Expand All @@ -62,10 +59,34 @@ $small-font-size: .80em;
}

footer {
display: flex;
flex-direction: row;
justify-content: center;
align-items: start;
font-family: "Degular", sans-serif !important;
color: rgba(52, 46, 81, 1) !important;
min-height: 200px !important;
background: linear-gradient(rgba(231, 235, 247, 1), rgba(255, 255, 255, 1)) !important;
background: linear-gradient(rgba(231, 235, 247, 1), rgba(241, 241, 241, 1)) !important;
padding: 75px 108px;
@extend .gap-4;

> div {
max-width: 392px;
}

@include media-breakpoint-down(sm) {
flex-direction: column;
padding: 20px;
align-items: center;
text-align: center;

> div {
max-width: none;
align-items: center;
padding-top: 20px;
padding-bottom: 40px;
}
}
}

h3 {
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 22a902f

Please sign in to comment.