From 6ac93265b9abae6e32ed5e5bfb41d8a7394583cb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20FAMIBELLE-PRONZOLA?= Date: Thu, 18 Jan 2024 20:32:01 +0400 Subject: [PATCH] Update donate page --- components/soutyen/card-method.js | 79 ++++++++++++++++++++++++++++ components/soutyen/payment-method.js | 7 ++- components/soutyen/presantasyon.js | 5 +- 3 files changed, 83 insertions(+), 8 deletions(-) create mode 100644 components/soutyen/card-method.js diff --git a/components/soutyen/card-method.js b/components/soutyen/card-method.js new file mode 100644 index 0000000..cb305c0 --- /dev/null +++ b/components/soutyen/card-method.js @@ -0,0 +1,79 @@ +import {Container, Box, Typography, Button, Link} from '@mui/material' +import {makeStyles} from '@mui/styles' + +const useStyles = makeStyles(() => ({ + styledFrame: { + border: '2px solid #4CAF50', + borderRadius: '10px', + boxShadow: '0 4px 8px rgba(0, 0, 0, 0.1)', + backgroundColor: '#f9f9f9', + padding: '20px', + textAlign: 'center', + }, + btnStyled: { + borderRadius: '5px', + boxShadow: '0 2px 2px rgba(0, 0, 0, 0.1)', + transition: 'all 0.3s ease', + margin: '8px', + '&:hover': { + transform: 'translateY(-2px)', + boxShadow: '0 4px 4px rgba(0, 0, 0, 0.2)', + }, + }, + btnSpecial: { + borderRadius: '5px', + backgroundColor: '#FFC107', + color: 'black', + border: 'none', + boxShadow: '0 2px 2px rgba(0, 0, 0, 0.2)', + transition: 'all 0.3s ease', + margin: '1em 0 2.5em', + '&:hover': { + backgroundColor: '#FFD54F', + transform: 'scale(1.05)', + boxShadow: '0 4px 4px rgba(0, 0, 0, 0.3)', + }, + }, +})) + +function CardMethod() { + const classes = useStyles() + + return ( + + + + 🔒 Vos paiements sont sécurisés et traités de manière fiable par Stripe, une plateforme de paiement en ligne reconnue mondialement. + + + + Aucune information de paiement n’est stockée sur notre site. + + + {/* Paiements Ponctuels */} + + Ponctuel + + + + + + + + + {/* Paiements Mensuels */} + + Mensuel + + + + + + + + ) +} + +export default CardMethod diff --git a/components/soutyen/payment-method.js b/components/soutyen/payment-method.js index 44e2ca6..2cf31b5 100644 --- a/components/soutyen/payment-method.js +++ b/components/soutyen/payment-method.js @@ -7,6 +7,7 @@ import Button from '@mui/material/Button' import {Paypal, Liberapay} from '@icons-pack/react-simple-icons' import Grid from '@mui/material/Unstable_Grid2' +import CardMethod from './card-method' const PAYPAL_ID = process.env.NEXT_PUBLIC_PAYPAL_DONATE_ID const LIBERAPAY_DONATE = process.env.NEXT_PUBLIC_LIBERAPAY_DONATE @@ -54,7 +55,7 @@ export default function PaymentMethod({paymentMethod, setPaymentMethod}) { - + @@ -72,9 +73,7 @@ export default function PaymentMethod({paymentMethod, setPaymentMethod}) { - + ) diff --git a/components/soutyen/presantasyon.js b/components/soutyen/presantasyon.js index 95ef9a7..7019ddd 100644 --- a/components/soutyen/presantasyon.js +++ b/components/soutyen/presantasyon.js @@ -23,9 +23,6 @@ export default function Presantasyon() { Concernant les dons, ils peuvent s'effectuer via Liberapay, PayPal. - - Vous pouvez adhérer à notre association en vous rendant sur asso.oki.re. - Veuillez prendre connaissance des setOpen(true)}>CGU et de la politique de confidentialité au chapitre 9 "Les dons". Cliquez ici pour la version pdf. @@ -59,7 +56,7 @@ export default function Presantasyon() { - Pour toute question, n’hésitez pas à nous contacter par courriel kontak@oki.re, ou via XMPP oki@xmpp.cz. + Pour toute question, n’hésitez pas à nous contacter par courriel kontak@oki.re. Merci par avance pour votre soutien 🥰