Skip to content

Commit 15466ab

Browse files
Added the page Financing (#279)
* Added the page Financing * Removed console log --------- Co-authored-by: Loris Olivier <53363974+loris-maru@users.noreply.github.com>
1 parent 2c3ea1f commit 15466ab

File tree

7 files changed

+37
-10
lines changed

7 files changed

+37
-10
lines changed

src/components/LandingPage/LandingPage.module.css

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,22 @@
100100
font-size: var(--font-size-M);
101101
}
102102

103+
.landingPage h4 {
104+
font-size: 22px;
105+
text-transform: uppercase;
106+
letter-spacing: 0.02em;
107+
margin-top: 20px;
108+
109+
&::after {
110+
content: '';
111+
display: block;
112+
width: 32px;
113+
height: 1px;
114+
background: var(--Colors-Gray-4, #bfbfbf);
115+
margin: 20px 0;
116+
}
117+
}
118+
103119
.landingPage h1,
104120
.landingPage h2,
105121
.landingPage h3 {

src/components/LandingPage/LandingPage.tsx

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,21 @@
22

33
import { useEffect, useState } from 'react';
44

5+
import { getSection } from './utils';
6+
7+
import PaddedBlock from './components/PaddedBlock';
8+
import VerticalSpace from './components/VerticalSpace';
59
import FooterPanel from './layout/FooterPanel';
10+
import Hero from './layout/Hero';
611
import Menu from './layout/Menu';
712
import SectionContact from './sections/SectionContact';
8-
import { EnumSection } from './sections/sections';
9-
import { getSection } from './utils';
10-
import Hero from './layout/Hero';
1113
import SectionGeneric from './sections/SectionGeneric';
12-
import PaddedBlock from './components/PaddedBlock';
1314
import SectionNews from './sections/SectionNews';
14-
import VerticalSpace from './components/VerticalSpace';
15-
import { classNames } from '@/util/utils';
15+
import { EnumSection } from './sections/sections';
16+
1617
import AcceptInviteErrorDialog from '@/components/Invites/AcceptInviteErrorDialog';
1718
import { logError } from '@/util/logger';
19+
import { classNames } from '@/util/utils';
1820

1921
import styles from './LandingPage.module.css';
2022
import './global.css';
@@ -58,6 +60,7 @@ function renderSection(section: EnumSection): React.ReactNode {
5860
case EnumSection.Team:
5961
case EnumSection.Resources:
6062
case EnumSection.TermsAndConditions:
63+
case EnumSection.Financing:
6164
case EnumSection.PrivacyPolicy:
6265
case EnumSection.ComingSoon:
6366
case EnumSection.Story:

src/components/LandingPage/constants.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,11 @@ export const SECTIONS: Readonly<Section[]> = [
2727
caption: 'Terms',
2828
slug: '/terms',
2929
},
30+
{
31+
index: EnumSection.Financing,
32+
caption: 'Financing',
33+
slug: '/financing',
34+
},
3035
{ index: EnumSection.ComingSoon, caption: 'Coming Soon', slug: '/releasing-soon' },
3136
{
3237
index: EnumSection.Story,

src/components/LandingPage/layout/FooterPanel/FooterPanel.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
1-
import React from 'react';
2-
3-
import { EnumSection } from '../../sections/sections';
1+
import SocialMediaLinks from '../../components/social-media-links';
42
import { MENU_ITEMS } from '../../constants';
3+
import { EnumSection } from '../../sections/sections';
54
import { gotoSection } from '../../utils';
6-
import SocialMediaLinks from '../../components/social-media-links';
75
import NewsLetterSubscription from './NewsLetterSubscription';
6+
87
import { classNames } from '@/util/utils';
98

109
import styles from './FooterPanel.module.css';
@@ -27,6 +26,7 @@ export default function FooterPanel({ className }: FooterPanelProps) {
2726
</Section>
2827
))}
2928
<Section section={EnumSection.TermsAndConditions}>Terms and conditions</Section>
29+
<Section section={EnumSection.Financing}>Financing</Section>
3030
<Section section={EnumSection.PrivacyPolicy}>Privacy policy</Section>
3131
<div className={styles.socialmedia}>
3232
<SocialMediaLinks />

src/components/LandingPage/sections/sections.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
export enum EnumSection {
22
ComingSoon = -9,
3+
Financing = -8,
34
PrivacyPolicy = -3,
45
TermsAndConditions = -2,
56
Home = -1,

src/components/LandingPage/styles.module.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ a.roundedButton {
6868

6969
grid-column: 1/-1;
7070
padding: 0;
71+
padding-top: 60px;
7172
margin: 0;
7273
display: grid;
7374
grid-template-columns:

src/middleware.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ const FREE_ACCESS_PAGES = [
1515
'/contact',
1616
'/terms',
1717
'/privacy',
18+
'/financing',
1819
'/coming-soon',
1920
'/the-real-digital-brain-story',
2021

0 commit comments

Comments
 (0)