Compare commits

...

7 Commits

Author SHA1 Message Date
Elmo Kankkunen b2355576b1 payment intent test 2023-09-20 23:49:09 +03:00
Elmo Kankkunen f23c2ed68d payment intent test 2023-09-20 23:47:58 +03:00
Elmo Kankkunen 77c9052d1b payment intent test 2023-09-20 23:45:25 +03:00
Elmo Kankkunen 0db4837fe1 payment intent test 2023-09-20 23:40:29 +03:00
Elmo Kankkunen 2799c80f56 Added stripe and a payment intent test 2023-09-20 23:35:41 +03:00
Johannes 8af519ac9a create demopage for joining 2023-09-20 19:37:27 +03:00
Tommi S 3350d33c82 create index 2023-07-13 19:41:33 +03:00
5 changed files with 706 additions and 496 deletions
+653 -495
View File
File diff suppressed because it is too large Load Diff
+2 -1
View File
@@ -72,7 +72,7 @@
"fast-deep-equal": "^3.1.3",
"js-cookie": "^3.0.1",
"lodash": "^4.17.21",
"next": "^13.1.6",
"next": "^13.4.19",
"normalize.css": "^8.0.1",
"react": "^18.2.0",
"react-csv": "^2.2.2",
@@ -88,6 +88,7 @@
"rehype-sanitize": "^5.0.1",
"sharp": "^0.30.3",
"shortid": "^2.2.16",
"stripe": "^13.6.0",
"styled-components": "^5.3.5",
"swr": "^1.2.2"
},
+1
View File
@@ -14,6 +14,7 @@ export const renderNavigationItems = (mobile = false): JSX.Element => (
<NavbarChildLink to="/kilta/kunnianosoitukset">Kunnianosoitukset</NavbarChildLink>
<NavbarChildLink to="https://static.sahkoinsinoorikilta.fi">Dokumenttiarkisto</NavbarChildLink>
<NavbarChildLink to="https://sik.kuvat.fi">Kuvagalleria</NavbarChildLink>
<NavbarChildLink to="/kilta/liity">Jäseneksi</NavbarChildLink>
</NavbarDropdownLink>
<NavbarDropdownLink to="/opinnot_ja_ura" text="Opinnot ja ura" exploded={mobile} />
<NavbarDropdownLink to="/yritysyhteistyo" text="Yritysyhteistyö" exploded={mobile} />
+18
View File
@@ -0,0 +1,18 @@
import React from "react";
import { NextPage } from "next";
import Head from "next/head";
import JoinPageView from "@views/JoinPage/JoinPageView";
import PageWrapper from "@views/common/PageWrapper";
const JoinPage: NextPage = () => (
<>
<Head>
<link rel="canonical" href={`${process.env.NEXT_PUBLIC_SITE_URL}/kilta/liity`} />
</Head>
<PageWrapper>
<JoinPageView />
</PageWrapper>
</>
);
export default JoinPage;
+32
View File
@@ -0,0 +1,32 @@
import React from "react";
import { TextSection, Link } from "@components/index";
import Button from "@components/Button";
import Stripe from "stripe";
const stripe = new Stripe(
"", // <--- API AVAIN
{ apiVersion: "2023-08-16" },
);
const paymentIntentTest = async () => {
const intent = await stripe.paymentIntents.create({
amount: 8,
currency: "eur",
});
return intent;
};
const JoinPageView: React.FC = () => (
<TextSection>
<h1>Liity jäseneksi ja maksa jäsenmaksu</h1>
<p>
Killan jäsenhakemuksen voi täyttää <Link to="https://api.sahkoinsinoorikilta.fi/members/application">täältä.</Link> Muistakaa
myös maksaa jäsenmaksu!
<Button onClick={paymentIntentTest} buttonStyle="hero">
Payment intent testi
</Button>
</p>
</TextSection>
);
export default JoinPageView;