diff --git a/.github/workflows/codeQL.yml b/.github/workflows/codeQL.yml
index 0842eac..cd7a8d7 100644
--- a/.github/workflows/codeQL.yml
+++ b/.github/workflows/codeQL.yml
@@ -1,4 +1,4 @@
-name: CodeQL Analysis
+name: "CodeQL"
on:
push:
@@ -6,9 +6,9 @@ on:
- '**'
pull_request:
branches:
- - '**'
+ - '**'
schedule:
- - cron: '0 0 * * *'
+ - cron: '0 0 * * 0'
jobs:
analyze:
@@ -27,7 +27,7 @@ jobs:
steps:
- name: Checkout repository
- uses: actions/checkout@v4
+ uses: actions/checkout@v3
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
diff --git a/.github/workflows/deploy-test.yml b/.github/workflows/deploy-test.yml
index 5e878a6..fbd7de1 100644
--- a/.github/workflows/deploy-test.yml
+++ b/.github/workflows/deploy-test.yml
@@ -36,4 +36,3 @@ jobs:
uploads: |
./dist => /var/www/modelec.club
dry-run: true
- delete: true
diff --git a/src/App.tsx b/src/App.tsx
index 6b501c0..5370f65 100644
--- a/src/App.tsx
+++ b/src/App.tsx
@@ -1,4 +1,5 @@
import { BrowserRouter as Router, Route, Routes } from 'react-router-dom';
+import { ScrollToTop } from './hooks/scrollToTop';
import React from 'react';
import './App.css';
@@ -13,22 +14,24 @@ import Projets from './pages/projets/Projets';
import Contact from './pages/contact/Contact';
const App: React.FC = () => {
-
- return (<>
-
-
-
+ return (
+ <>
+
+
+
+
} />
} />
} />
} />
} />
-
-
-
- >);
+
+
+
+ >
+ );
};
export default App;
diff --git a/src/hooks/scrollToTop.tsx b/src/hooks/scrollToTop.tsx
new file mode 100644
index 0000000..4b224ef
--- /dev/null
+++ b/src/hooks/scrollToTop.tsx
@@ -0,0 +1,12 @@
+import { useEffect } from 'react';
+import { useLocation } from 'react-router-dom';
+
+export const ScrollToTop = () => {
+ const { pathname } = useLocation();
+
+ useEffect(() => {
+ window.scrollTo(0, 0);
+ }, [pathname]);
+
+ return null;
+};
diff --git a/src/pages/contact/Contact.tsx b/src/pages/contact/Contact.tsx
index a3c2dad..598558f 100644
--- a/src/pages/contact/Contact.tsx
+++ b/src/pages/contact/Contact.tsx
@@ -1,10 +1,17 @@
import React from 'react';
-import { Github, Youtube, Instagram, Handbag, MapPin, ChatBubbleEmpty } from 'iconoir-react';
-import { SocialNetworkList } from '../../components/socialnetwork/socialnetwork.tsx';
+import {
+ Github,
+ Youtube,
+ Instagram,
+ Handbag,
+ MapPin,
+ ChatBubbleEmpty,
+} from 'iconoir-react';
+import { SocialNetworkList } from '../../components/socialnetwork/socialnetwork';
-import { ContactList } from '../../components/contact/contact.tsx';
-import { Banner } from '../../components/banner/banner.tsx';
+import { ContactList } from '../../components/contact/contact';
+import { Banner } from '../../components/banner/banner';
import isen_group_photo from '../../assets/isen_group_photo.png';
@@ -17,35 +24,61 @@ const Contact: React.FC = () => {
{
Icon: Handbag,
title: 'Devenir partenaire',
- description: 'Devenez vous aussi partenaire de Modelec et soutenez notre projet.',
- link: { location: 'mailto:partenariat@modelec.club', text: 'partenariat@modelec.club' }
+ description:
+ 'Devenez vous aussi partenaire de Modelec et soutenez notre projet.',
+ link: {
+ location: 'mailto:partenariat@modelec.club',
+ text: 'partenariat@modelec.club',
+ },
},
{
Icon: MapPin,
title: 'Nous rendre visite',
- description: '33 QUATER Avenue du Champ de Manoeuvre, 44470 Carquefou.',
- link: { location: 'https://maps.app.goo.gl/UVK3KFS8Zrpx7x9e6', text: 'Voir sur Google Maps' }
+ description:
+ '33 QUATER Avenue du Champ de Manoeuvre, 44470 Carquefou.',
+ link: {
+ location: 'https://maps.app.goo.gl/UVK3KFS8Zrpx7x9e6',
+ text: 'Voir sur Google Maps',
+ },
},
{
Icon: ChatBubbleEmpty,
title: 'Nous contacter',
- description: 'Pour toute question ou demande, n\'hésitez pas à nous contacter.',
- link: { location: 'mailto:contact@modelec.club', text: 'contact@modelec.club' }
- }
+ description:
+ "Pour toute question ou demande, n'hésitez pas à nous contacter.",
+ link: {
+ location: 'mailto:contact@modelec.club',
+ text: 'contact@modelec.club',
+ },
+ },
]}
/>
- Vous avez une question vis-à-vis de notre club ou de l'un de nos projets ? N'hésitez pas à nous contacter via l'une des méthode ci-dessus, nous serons ravis de vous répondre.
+ Vous avez une question vis-à-vis de notre club ou de l'un
+ de nos projets ? N'hésitez pas à nous contacter via l'une
+ des méthode ci-dessus, nous serons ravis de vous répondre.
Nos Réseaux
>
diff --git a/src/pages/projets/Projets.tsx b/src/pages/projets/Projets.tsx
index 1443d7a..d628eb0 100644
--- a/src/pages/projets/Projets.tsx
+++ b/src/pages/projets/Projets.tsx
@@ -1,6 +1,9 @@
import React from 'react';
import { ProjetsHeader } from '../../components/projetheader/projetheader';
-import { ProjectBigCard, ProjectSmallCard, } from '../../components/projectcard/projectcard.tsx';
+import {
+ ProjectBigCard,
+ ProjectSmallCard,
+} from '../../components/projectcard/projectcard';
import './Projets.css';
diff --git a/tsconfig.app.tsbuildinfo b/tsconfig.app.tsbuildinfo
index 0956a8d..a8a9772 100644
--- a/tsconfig.app.tsbuildinfo
+++ b/tsconfig.app.tsbuildinfo
@@ -1 +1,2 @@
+{"root":["./src/app.tsx","./src/main.tsx","./src/vite-env.d.ts","./src/components/banner/banner.tsx","./src/components/box/box.tsx","./src/components/carousel/carousel.tsx","./src/components/contact/contact.tsx","./src/components/partner/partner.tsx","./src/components/projectcard/projectcard.tsx","./src/components/projetheader/projectheadercard.tsx","./src/components/projetheader/projetheader.tsx","./src/components/socialnetwork/socialnetwork.tsx","./src/components/team/team.tsx","./src/hooks/scrolltotop.tsx","./src/hooks/usewindowssize.tsx","./src/layouts/footer/footer.tsx","./src/layouts/navbar/navbar.tsx","./src/pages/404/404.tsx","./src/pages/contact/contact.tsx","./src/pages/home/home.tsx","./src/pages/partenaires/partenaires.tsx","./src/pages/projets/projets.tsx"],"version":"5.6.3"}
{"root":["./src/app.tsx","./src/main.tsx","./src/vite-env.d.ts","./src/components/carousel/carousel.tsx","./src/components/footer/footer.tsx","./src/components/middletext/middletext.tsx","./src/components/navbar/navbar.tsx","./src/components/navbarlink/navbarlink.tsx","./src/components/sidecard/fromleftcard.tsx","./src/components/sidecard/fromrightcard.tsx","./src/components/socialnetwork/socialnetwork.tsx","./src/components/team/team.tsx","./src/pages/404.tsx","./src/pages/home.tsx"],"version":"5.6.2"}
\ No newline at end of file