Compare commits
7 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| b2355576b1 | |||
| f23c2ed68d | |||
| 77c9052d1b | |||
| 0db4837fe1 | |||
| 2799c80f56 | |||
| 8af519ac9a | |||
| 3350d33c82 |
Generated
+653
-495
File diff suppressed because it is too large
Load Diff
+2
-1
@@ -72,7 +72,7 @@
|
|||||||
"fast-deep-equal": "^3.1.3",
|
"fast-deep-equal": "^3.1.3",
|
||||||
"js-cookie": "^3.0.1",
|
"js-cookie": "^3.0.1",
|
||||||
"lodash": "^4.17.21",
|
"lodash": "^4.17.21",
|
||||||
"next": "^13.1.6",
|
"next": "^13.4.19",
|
||||||
"normalize.css": "^8.0.1",
|
"normalize.css": "^8.0.1",
|
||||||
"react": "^18.2.0",
|
"react": "^18.2.0",
|
||||||
"react-csv": "^2.2.2",
|
"react-csv": "^2.2.2",
|
||||||
@@ -88,6 +88,7 @@
|
|||||||
"rehype-sanitize": "^5.0.1",
|
"rehype-sanitize": "^5.0.1",
|
||||||
"sharp": "^0.30.3",
|
"sharp": "^0.30.3",
|
||||||
"shortid": "^2.2.16",
|
"shortid": "^2.2.16",
|
||||||
|
"stripe": "^13.6.0",
|
||||||
"styled-components": "^5.3.5",
|
"styled-components": "^5.3.5",
|
||||||
"swr": "^1.2.2"
|
"swr": "^1.2.2"
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -14,6 +14,7 @@ export const renderNavigationItems = (mobile = false): JSX.Element => (
|
|||||||
<NavbarChildLink to="/kilta/kunnianosoitukset">Kunnianosoitukset</NavbarChildLink>
|
<NavbarChildLink to="/kilta/kunnianosoitukset">Kunnianosoitukset</NavbarChildLink>
|
||||||
<NavbarChildLink to="https://static.sahkoinsinoorikilta.fi">Dokumenttiarkisto</NavbarChildLink>
|
<NavbarChildLink to="https://static.sahkoinsinoorikilta.fi">Dokumenttiarkisto</NavbarChildLink>
|
||||||
<NavbarChildLink to="https://sik.kuvat.fi">Kuvagalleria</NavbarChildLink>
|
<NavbarChildLink to="https://sik.kuvat.fi">Kuvagalleria</NavbarChildLink>
|
||||||
|
<NavbarChildLink to="/kilta/liity">Jäseneksi</NavbarChildLink>
|
||||||
</NavbarDropdownLink>
|
</NavbarDropdownLink>
|
||||||
<NavbarDropdownLink to="/opinnot_ja_ura" text="Opinnot ja ura" exploded={mobile} />
|
<NavbarDropdownLink to="/opinnot_ja_ura" text="Opinnot ja ura" exploded={mobile} />
|
||||||
<NavbarDropdownLink to="/yritysyhteistyo" text="Yritysyhteistyö" exploded={mobile} />
|
<NavbarDropdownLink to="/yritysyhteistyo" text="Yritysyhteistyö" exploded={mobile} />
|
||||||
|
|||||||
@@ -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;
|
||||||
@@ -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;
|
||||||
Reference in New Issue
Block a user