mirror of
https://github.com/modelec/modelec.club.git
synced 2026-01-18 16:37:30 +01:00
Add test
This commit is contained in:
@@ -1,8 +1,15 @@
|
|||||||
import { defineConfig } from 'cypress';
|
import { defineConfig } from "cypress";
|
||||||
|
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
e2e: {
|
e2e: {
|
||||||
specPattern: 'cypress/e2e/**/*.cy.{js,jsx,ts,tsx}',
|
specPattern: "cypress/e2e/**/*.cy.{js,jsx,ts,tsx}",
|
||||||
supportFile: false,
|
supportFile: false,
|
||||||
},
|
},
|
||||||
|
|
||||||
|
component: {
|
||||||
|
devServer: {
|
||||||
|
framework: "react",
|
||||||
|
bundler: "vite",
|
||||||
|
},
|
||||||
|
},
|
||||||
});
|
});
|
||||||
|
|||||||
20
cypress/e2e/homeRedirections.cy.ts
Normal file
20
cypress/e2e/homeRedirections.cy.ts
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
describe('Home Page Redirections', () => {
|
||||||
|
beforeEach(() => {
|
||||||
|
cy.visit('/');
|
||||||
|
});
|
||||||
|
|
||||||
|
it('should redirect to Projets page', () => {
|
||||||
|
cy.get('a[href="/projets/"]').click();
|
||||||
|
cy.url().should('include', '/projets/');
|
||||||
|
});
|
||||||
|
|
||||||
|
it('should redirect to Partenaires page', () => {
|
||||||
|
cy.get('a[href="/partenaires/"]').click();
|
||||||
|
cy.url().should('include', '/partenaires/');
|
||||||
|
});
|
||||||
|
|
||||||
|
it('should redirect to Contact page', () => {
|
||||||
|
cy.get('a[href="/contact/"]').click();
|
||||||
|
cy.url().should('include', '/contact/');
|
||||||
|
});
|
||||||
|
});
|
||||||
5
cypress/fixtures/example.json
Normal file
5
cypress/fixtures/example.json
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
{
|
||||||
|
"name": "Using fixtures to represent data",
|
||||||
|
"email": "hello@cypress.io",
|
||||||
|
"body": "Fixtures are a great way to mock data for responses to routes"
|
||||||
|
}
|
||||||
Binary file not shown.
|
After Width: | Height: | Size: 28 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 57 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 57 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 30 KiB |
37
cypress/support/commands.ts
Normal file
37
cypress/support/commands.ts
Normal file
@@ -0,0 +1,37 @@
|
|||||||
|
/// <reference types="cypress" />
|
||||||
|
// ***********************************************
|
||||||
|
// This example commands.ts shows you how to
|
||||||
|
// create various custom commands and overwrite
|
||||||
|
// existing commands.
|
||||||
|
//
|
||||||
|
// For more comprehensive examples of custom
|
||||||
|
// commands please read more here:
|
||||||
|
// https://on.cypress.io/custom-commands
|
||||||
|
// ***********************************************
|
||||||
|
//
|
||||||
|
//
|
||||||
|
// -- This is a parent command --
|
||||||
|
// Cypress.Commands.add('login', (email, password) => { ... })
|
||||||
|
//
|
||||||
|
//
|
||||||
|
// -- This is a child command --
|
||||||
|
// Cypress.Commands.add('drag', { prevSubject: 'element'}, (subject, options) => { ... })
|
||||||
|
//
|
||||||
|
//
|
||||||
|
// -- This is a dual command --
|
||||||
|
// Cypress.Commands.add('dismiss', { prevSubject: 'optional'}, (subject, options) => { ... })
|
||||||
|
//
|
||||||
|
//
|
||||||
|
// -- This will overwrite an existing command --
|
||||||
|
// Cypress.Commands.overwrite('visit', (originalFn, url, options) => { ... })
|
||||||
|
//
|
||||||
|
// declare global {
|
||||||
|
// namespace Cypress {
|
||||||
|
// interface Chainable {
|
||||||
|
// login(email: string, password: string): Chainable<void>
|
||||||
|
// drag(subject: string, options?: Partial<TypeOptions>): Chainable<Element>
|
||||||
|
// dismiss(subject: string, options?: Partial<TypeOptions>): Chainable<Element>
|
||||||
|
// visit(originalFn: CommandOriginalFn, url: string, options: Partial<VisitOptions>): Chainable<Element>
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
// }
|
||||||
12
cypress/support/component-index.html
Normal file
12
cypress/support/component-index.html
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta charset="utf-8">
|
||||||
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||||
|
<meta name="viewport" content="width=device-width,initial-scale=1.0">
|
||||||
|
<title>Components App</title>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<div data-cy-root></div>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
39
cypress/support/component.ts
Normal file
39
cypress/support/component.ts
Normal file
@@ -0,0 +1,39 @@
|
|||||||
|
// ***********************************************************
|
||||||
|
// This example support/component.ts is processed and
|
||||||
|
// loaded automatically before your test files.
|
||||||
|
//
|
||||||
|
// This is a great place to put global configuration and
|
||||||
|
// behavior that modifies Cypress.
|
||||||
|
//
|
||||||
|
// You can change the location of this file or turn off
|
||||||
|
// automatically serving support files with the
|
||||||
|
// 'supportFile' configuration option.
|
||||||
|
//
|
||||||
|
// You can read more here:
|
||||||
|
// https://on.cypress.io/configuration
|
||||||
|
// ***********************************************************
|
||||||
|
|
||||||
|
// Import commands.js using ES2015 syntax:
|
||||||
|
import './commands'
|
||||||
|
|
||||||
|
// Alternatively you can use CommonJS syntax:
|
||||||
|
// require('./commands')
|
||||||
|
|
||||||
|
import { mount } from 'cypress/react18'
|
||||||
|
|
||||||
|
// Augment the Cypress namespace to include type definitions for
|
||||||
|
// your custom command.
|
||||||
|
// Alternatively, can be defined in cypress/support/component.d.ts
|
||||||
|
// with a <reference path="./component" /> at the top of your spec.
|
||||||
|
declare global {
|
||||||
|
namespace Cypress {
|
||||||
|
interface Chainable {
|
||||||
|
mount: typeof mount
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
Cypress.Commands.add('mount', mount)
|
||||||
|
|
||||||
|
// Example use:
|
||||||
|
// cy.mount(<MyComponent />)
|
||||||
9
package-lock.json
generated
9
package-lock.json
generated
@@ -16,6 +16,7 @@
|
|||||||
"iconoir-react": "^7.9.0",
|
"iconoir-react": "^7.9.0",
|
||||||
"react": "^18.3.1",
|
"react": "^18.3.1",
|
||||||
"react-dom": "^18.3.1",
|
"react-dom": "^18.3.1",
|
||||||
|
"react-icons": "^5.3.0",
|
||||||
"react-router-dom": "^6.27.0"
|
"react-router-dom": "^6.27.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
@@ -6485,6 +6486,14 @@
|
|||||||
"react": "^18.3.1"
|
"react": "^18.3.1"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"node_modules/react-icons": {
|
||||||
|
"version": "5.3.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/react-icons/-/react-icons-5.3.0.tgz",
|
||||||
|
"integrity": "sha512-DnUk8aFbTyQPSkCfF8dbX6kQjXA9DktMeJqfjrg6cK9vwQVMxmcA3BfP4QoiztVmEHtwlTgLFsPuH2NskKT6eg==",
|
||||||
|
"peerDependencies": {
|
||||||
|
"react": "*"
|
||||||
|
}
|
||||||
|
},
|
||||||
"node_modules/react-is": {
|
"node_modules/react-is": {
|
||||||
"version": "18.3.1",
|
"version": "18.3.1",
|
||||||
"resolved": "https://registry.npmjs.org/react-is/-/react-is-18.3.1.tgz",
|
"resolved": "https://registry.npmjs.org/react-is/-/react-is-18.3.1.tgz",
|
||||||
|
|||||||
@@ -10,7 +10,7 @@
|
|||||||
"preview": "vite preview",
|
"preview": "vite preview",
|
||||||
"cypress:open": "cypress open",
|
"cypress:open": "cypress open",
|
||||||
"cypress:run": "cypress run",
|
"cypress:run": "cypress run",
|
||||||
"test": "browserslist && cypress run"
|
"test": "browserslist && cypress run --component && cypress run"
|
||||||
},
|
},
|
||||||
"browserslist": {
|
"browserslist": {
|
||||||
"production": [
|
"production": [
|
||||||
@@ -33,6 +33,7 @@
|
|||||||
"iconoir-react": "^7.9.0",
|
"iconoir-react": "^7.9.0",
|
||||||
"react": "^18.3.1",
|
"react": "^18.3.1",
|
||||||
"react-dom": "^18.3.1",
|
"react-dom": "^18.3.1",
|
||||||
|
"react-icons": "^5.3.0",
|
||||||
"react-router-dom": "^6.27.0"
|
"react-router-dom": "^6.27.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
|||||||
50
src/components/banner/bannerBanner.cy.tsx
Normal file
50
src/components/banner/bannerBanner.cy.tsx
Normal file
@@ -0,0 +1,50 @@
|
|||||||
|
import './banner.css';
|
||||||
|
import '../../App.css';
|
||||||
|
import React from 'react';
|
||||||
|
import { Banner } from './banner';
|
||||||
|
|
||||||
|
describe('<Banner />', () => {
|
||||||
|
it('renders the first Banner component correctly', () => {
|
||||||
|
const image = {
|
||||||
|
src: 'https://r2.modelec.club/coupe-2024.png',
|
||||||
|
alt: 'Modelec Photo',
|
||||||
|
};
|
||||||
|
const header = 'Qui sommes-nous ?';
|
||||||
|
const children =
|
||||||
|
"Nous sommes Modelec, une association étudiante de l'ISEN qui a pour but de promouvoir la robotique, l'éléctronique et le modélisme auprès des étudiants de notre campus grâce à l'organisation d'ateliers et d'événements. Nous participons également à la coupe de France de robotique où en 2024, nous avons fini 14e sur 82 pour notre première participation.";
|
||||||
|
|
||||||
|
cy.mount(
|
||||||
|
<Banner image={image} header={header}>
|
||||||
|
{children}
|
||||||
|
</Banner>
|
||||||
|
);
|
||||||
|
cy.get('img').should('have.attr', 'src', image.src);
|
||||||
|
cy.get('h3').should('contain.text', header);
|
||||||
|
cy.get('p.banner-text', { timeout: 10000 }).should(
|
||||||
|
'contain.html',
|
||||||
|
children
|
||||||
|
);
|
||||||
|
});
|
||||||
|
|
||||||
|
it('renders the second Banner component correctly', () => {
|
||||||
|
const image = {
|
||||||
|
src: 'https://r2.modelec.club/isen_group_photo.png',
|
||||||
|
alt: "Photo de groupe à l'ISEN",
|
||||||
|
};
|
||||||
|
const header = 'Une question ?';
|
||||||
|
const children =
|
||||||
|
"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.";
|
||||||
|
|
||||||
|
cy.mount(
|
||||||
|
<Banner image={image} header={header}>
|
||||||
|
{children}
|
||||||
|
</Banner>
|
||||||
|
);
|
||||||
|
cy.get('img').should('have.attr', 'src', image.src);
|
||||||
|
cy.get('h3').should('contain.text', header);
|
||||||
|
cy.get('p.banner-text', { timeout: 10000 }).should(
|
||||||
|
'contain.html',
|
||||||
|
children
|
||||||
|
);
|
||||||
|
});
|
||||||
|
});
|
||||||
47
src/components/box/boxBox.cy.tsx
Normal file
47
src/components/box/boxBox.cy.tsx
Normal file
@@ -0,0 +1,47 @@
|
|||||||
|
import React from 'react';
|
||||||
|
import { Box } from './box';
|
||||||
|
import './box.css';
|
||||||
|
|
||||||
|
describe('<Box />', () => {
|
||||||
|
it('renders the first box', () => {
|
||||||
|
const elements = [
|
||||||
|
{
|
||||||
|
type: 'image',
|
||||||
|
src: 'https://r2.modelec.club/serge-pixel.png',
|
||||||
|
alt: 'Serge Pixel',
|
||||||
|
},
|
||||||
|
{ type: 'data', data: '14e', subtext: '/82 équipes' },
|
||||||
|
];
|
||||||
|
|
||||||
|
cy.mount(
|
||||||
|
<Box
|
||||||
|
title={'Coupe de France de robotique'}
|
||||||
|
subtext={'Première participation'}
|
||||||
|
label={'Édition 2024'}
|
||||||
|
elements={elements}
|
||||||
|
/>
|
||||||
|
);
|
||||||
|
|
||||||
|
cy.get('.box-title').should('contain.text', 'Coupe de France de robotique');
|
||||||
|
cy.get('.box-subtext').should('contain.text', 'Première participation');
|
||||||
|
cy.get('.box-label').should('contain.text', 'Édition 2024');
|
||||||
|
cy.get('img').should('have.attr', 'src', elements[0].src);
|
||||||
|
cy.get('img').should('have.attr', 'alt', elements[0].alt);
|
||||||
|
cy.get('.box-data').should('contain.text', elements[1].data);
|
||||||
|
cy.get('.box-data-subtext').should('contain.text', elements[1].subtext);
|
||||||
|
});
|
||||||
|
|
||||||
|
it('renders the second box', () => {
|
||||||
|
const elements = [
|
||||||
|
"Parce que les technologies du numérique sont partout, l’ISEN forme des ingénieurs aptes à répondre aux besoins des entreprises dans tous les secteurs d’activités. Sur un parc de 10 hectares, le campus est doté d'un restaurant. Depuis la rentrée 2021 les étudiants sont accueillis dans le nouveau bâtiment ISEN construit avec le soutien de la Région Pays de la Loire.",
|
||||||
|
];
|
||||||
|
|
||||||
|
cy.mount(
|
||||||
|
<Box title={'ISEN Nantes'} subtext={'Notre école'} elements={elements} />
|
||||||
|
);
|
||||||
|
|
||||||
|
cy.get('.box-title').should('contain.text', 'ISEN Nantes');
|
||||||
|
cy.get('.box-subtext').should('contain.text', 'Notre école');
|
||||||
|
cy.get('.box-paragraph').should('contain.text', elements[0]);
|
||||||
|
});
|
||||||
|
});
|
||||||
37
src/components/carousel/carouselCarousel.cy.tsx
Normal file
37
src/components/carousel/carouselCarousel.cy.tsx
Normal file
@@ -0,0 +1,37 @@
|
|||||||
|
import React from 'react';
|
||||||
|
import { Carousel } from './carousel';
|
||||||
|
import './carousel.css';
|
||||||
|
|
||||||
|
describe('<Carousel />', () => {
|
||||||
|
it('renders the carousel with images and text', () => {
|
||||||
|
const carouselItems = [
|
||||||
|
{
|
||||||
|
image:
|
||||||
|
'https://r2.modelec.club/Selection%20site/IMG_20231027_221105.jpg',
|
||||||
|
title: 'Lorem Ipsum',
|
||||||
|
text: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla nec purus feugiat, vestibulum neque et, vehicula justo.',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
image:
|
||||||
|
'https://r2.modelec.club/Selection%20site/IMG_20231116_192517.jpg',
|
||||||
|
title: 'Fusce et sem',
|
||||||
|
text: 'Fusce et sem nec nunc luctus tincidunt. Nullam sit amet neque sed elit fermentum efficitur.',
|
||||||
|
},
|
||||||
|
];
|
||||||
|
|
||||||
|
cy.mount(<Carousel carousel={carouselItems} />);
|
||||||
|
|
||||||
|
cy.get('.slide').should('have.length', carouselItems.length * 2);
|
||||||
|
carouselItems.forEach((item, index) => {
|
||||||
|
cy.get(`.slide:eq(${index}) img`).should('have.attr', 'src', item.image);
|
||||||
|
cy.get(`.slide:eq(${index}) .slide-title`).should(
|
||||||
|
'contain.text',
|
||||||
|
item.title
|
||||||
|
);
|
||||||
|
cy.get(`.slide:eq(${index}) .slide-text`).should(
|
||||||
|
'contain.text',
|
||||||
|
item.text
|
||||||
|
);
|
||||||
|
});
|
||||||
|
});
|
||||||
|
});
|
||||||
33
src/components/contact/contactContactList.cy.tsx
Normal file
33
src/components/contact/contactContactList.cy.tsx
Normal file
@@ -0,0 +1,33 @@
|
|||||||
|
import React from 'react';
|
||||||
|
import { ContactList } from './contact';
|
||||||
|
import { Handbag } from 'iconoir-react';
|
||||||
|
import './contact.css';
|
||||||
|
|
||||||
|
describe('<ContactList />', () => {
|
||||||
|
it('renders the ContactList component correctly', () => {
|
||||||
|
cy.mount(
|
||||||
|
<ContactList
|
||||||
|
contacts={[
|
||||||
|
{
|
||||||
|
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',
|
||||||
|
},
|
||||||
|
},
|
||||||
|
]}
|
||||||
|
/>
|
||||||
|
);
|
||||||
|
|
||||||
|
// Add your assertions here
|
||||||
|
cy.get('.contact-title').should('contain.text', 'Devenir partenaire');
|
||||||
|
cy.get('.contact-description').should(
|
||||||
|
'contain.text',
|
||||||
|
'Devenez vous aussi partenaire de Modelec et soutenez notre projet.'
|
||||||
|
);
|
||||||
|
cy.get('.contact-link').should('contain.text', 'partenariat@modelec.club');
|
||||||
|
});
|
||||||
|
});
|
||||||
126
src/components/partner/partnerPartner.cy.tsx
Normal file
126
src/components/partner/partnerPartner.cy.tsx
Normal file
@@ -0,0 +1,126 @@
|
|||||||
|
import React from 'react';
|
||||||
|
import { Partner } from './partner';
|
||||||
|
import './partner.css';
|
||||||
|
|
||||||
|
describe('<Partner />', () => {
|
||||||
|
it('renders ISEN partenaire', () => {
|
||||||
|
cy.mount(
|
||||||
|
<Partner
|
||||||
|
name={'ISEN Nantes'}
|
||||||
|
logo={'https://r2.modelec.club/isen.png'}
|
||||||
|
texts={[
|
||||||
|
<>
|
||||||
|
L'ISEN Nantes est une école d'ingénieurs généraliste en 5 ans. Elle
|
||||||
|
forme des ingénieurs dans les domaines de l'électronique, de
|
||||||
|
l'informatique et des télécommunications. Ils nous mettent à
|
||||||
|
disposition un local pour travailler sur nos projets.
|
||||||
|
</>,
|
||||||
|
]}
|
||||||
|
photos={['https://r2.modelec.club/ISEN-2.jpg']}
|
||||||
|
link={'https://isen-nantes.fr'}
|
||||||
|
/>
|
||||||
|
);
|
||||||
|
|
||||||
|
// Add your assertions here
|
||||||
|
cy.get('.partner-name').should('contain.text', 'ISEN Nantes');
|
||||||
|
cy.get('.partner-logo').should(
|
||||||
|
'have.attr',
|
||||||
|
'src',
|
||||||
|
'https://r2.modelec.club/isen.png'
|
||||||
|
);
|
||||||
|
cy.get('.partner-text').should(
|
||||||
|
'contain.text',
|
||||||
|
"L'ISEN Nantes est une école d'ingénieurs généraliste en 5 ans."
|
||||||
|
);
|
||||||
|
cy.get('.partner-photos img').should(
|
||||||
|
'have.attr',
|
||||||
|
'src',
|
||||||
|
'https://r2.modelec.club/ISEN-2.jpg'
|
||||||
|
);
|
||||||
|
cy.get('.partner-link').should(
|
||||||
|
'have.attr',
|
||||||
|
'href',
|
||||||
|
'https://isen-nantes.fr'
|
||||||
|
);
|
||||||
|
});
|
||||||
|
|
||||||
|
it('renders MercuryCloud partenaire', () => {
|
||||||
|
cy.mount(
|
||||||
|
<Partner
|
||||||
|
name={'MercuryCloud'}
|
||||||
|
logo={'https://r2.modelec.club/mercurycloud.png'}
|
||||||
|
texts={[
|
||||||
|
<>
|
||||||
|
MercuryCloud est un hébergeur web, de vps ainsi que de serveur de
|
||||||
|
jeu. Ils nous mettent à disposition un vps pour de la compilation et
|
||||||
|
pour héberger certains service dont ce site web.
|
||||||
|
</>,
|
||||||
|
]}
|
||||||
|
photos={['https://r2.modelec.club/MercuryCloud.jpg']}
|
||||||
|
link={'https://mercurycloud.fr/aff.php?aff=14'}
|
||||||
|
/>
|
||||||
|
);
|
||||||
|
|
||||||
|
// Add your assertions here
|
||||||
|
cy.get('.partner-name').should('contain.text', 'MercuryCloud');
|
||||||
|
cy.get('.partner-logo').should(
|
||||||
|
'have.attr',
|
||||||
|
'src',
|
||||||
|
'https://r2.modelec.club/mercurycloud.png'
|
||||||
|
);
|
||||||
|
cy.get('.partner-text').should(
|
||||||
|
'contain.text',
|
||||||
|
'MercuryCloud est un hébergeur web, de vps ainsi que de serveur de jeu.'
|
||||||
|
);
|
||||||
|
cy.get('.partner-photos img').should(
|
||||||
|
'have.attr',
|
||||||
|
'src',
|
||||||
|
'https://r2.modelec.club/MercuryCloud.jpg'
|
||||||
|
);
|
||||||
|
cy.get('.partner-link').should(
|
||||||
|
'have.attr',
|
||||||
|
'href',
|
||||||
|
'https://mercurycloud.fr/aff.php?aff=14'
|
||||||
|
);
|
||||||
|
});
|
||||||
|
|
||||||
|
it('renders BDE partenaire', () => {
|
||||||
|
cy.mount(
|
||||||
|
<Partner
|
||||||
|
name={'Odyssey BDE'}
|
||||||
|
logo={'https://r2.modelec.club/bde.png'}
|
||||||
|
texts={[
|
||||||
|
<>
|
||||||
|
Le BDE de l'ISEN Nantes, Odyssey, est un partenaire de longue date.
|
||||||
|
Ils nous aident dans l'organisation de nos évènements et nous
|
||||||
|
soutiennent dans nos projets.
|
||||||
|
</>,
|
||||||
|
]}
|
||||||
|
photos={['https://r2.modelec.club/Odyseey.JPEG']}
|
||||||
|
link={'https://instagram.com/odyssey_bde'}
|
||||||
|
/>
|
||||||
|
);
|
||||||
|
|
||||||
|
// Add your assertions here
|
||||||
|
cy.get('.partner-name').should('contain.text', 'Odyssey BDE');
|
||||||
|
cy.get('.partner-logo').should(
|
||||||
|
'have.attr',
|
||||||
|
'src',
|
||||||
|
'https://r2.modelec.club/bde.png'
|
||||||
|
);
|
||||||
|
cy.get('.partner-text').should(
|
||||||
|
'contain.text',
|
||||||
|
"Le BDE de l'ISEN Nantes, Odyssey, est un partenaire de longue date. Ils nous aident dans l'organisation de nos évènements et nous soutiennent dans nos projets."
|
||||||
|
);
|
||||||
|
cy.get('.partner-photos img').should(
|
||||||
|
'have.attr',
|
||||||
|
'src',
|
||||||
|
'https://r2.modelec.club/Odyseey.JPEG'
|
||||||
|
);
|
||||||
|
cy.get('.partner-link').should(
|
||||||
|
'have.attr',
|
||||||
|
'href',
|
||||||
|
'https://instagram.com/odyssey_bde'
|
||||||
|
);
|
||||||
|
});
|
||||||
|
});
|
||||||
@@ -0,0 +1,30 @@
|
|||||||
|
import React from 'react';
|
||||||
|
import { SocialNetworkList } from './socialnetwork';
|
||||||
|
import './socialnetwork.css';
|
||||||
|
import { FaInstagram, FaYoutube, FaGithub } from 'react-icons/fa';
|
||||||
|
|
||||||
|
describe('<SocialNetworkList />', () => {
|
||||||
|
it('renders', () => {
|
||||||
|
const networks = [
|
||||||
|
{
|
||||||
|
Icon: FaInstagram,
|
||||||
|
name: 'modelec_isen',
|
||||||
|
link: 'https://www.instagram.com/modelec_isen',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
Icon: FaYoutube,
|
||||||
|
name: 'modelec',
|
||||||
|
link: 'https://www.youtube.com/@modelec2165',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
Icon: FaGithub,
|
||||||
|
name: 'modelec',
|
||||||
|
link: 'https://www.github.com/modelec',
|
||||||
|
},
|
||||||
|
];
|
||||||
|
|
||||||
|
cy.mount(<SocialNetworkList networks={networks} />);
|
||||||
|
cy.get('.media-container').should('exist');
|
||||||
|
cy.get('.media-link').should('have.length', networks.length);
|
||||||
|
});
|
||||||
|
});
|
||||||
80
src/components/team/teamTeam.cy.tsx
Normal file
80
src/components/team/teamTeam.cy.tsx
Normal file
@@ -0,0 +1,80 @@
|
|||||||
|
import React from 'react';
|
||||||
|
import { Team } from './team';
|
||||||
|
import './team.css';
|
||||||
|
|
||||||
|
describe('<Team />', () => {
|
||||||
|
it('renders the team with groups and members', () => {
|
||||||
|
const groups = [
|
||||||
|
{
|
||||||
|
title: 'Bureau',
|
||||||
|
members: [
|
||||||
|
{
|
||||||
|
name: 'Maxime Chauveau',
|
||||||
|
role: 'Président',
|
||||||
|
image: 'https://r2.modelec.club/maxime.png',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: 'Vincent Rocher',
|
||||||
|
role: 'Vice-Président',
|
||||||
|
image: 'https://r2.modelec.club/vincent.jpg',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: 'Felix Marquet',
|
||||||
|
role: 'Secrétaire',
|
||||||
|
image: 'https://r2.modelec.club/felix.png',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: 'Florent Butery',
|
||||||
|
role: 'Trésorier',
|
||||||
|
image: 'https://r2.modelec.club/flo.jpg',
|
||||||
|
},
|
||||||
|
],
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: 'Responsables',
|
||||||
|
members: [
|
||||||
|
{
|
||||||
|
name: 'Cléo Sionville',
|
||||||
|
role: 'Communication',
|
||||||
|
image: 'https://r2.modelec.club/cleo.jpg',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: 'Arthur Grossmann-Le Mauguen',
|
||||||
|
role: 'Evenementiel',
|
||||||
|
image: 'https://r2.modelec.club/arthur.png',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: 'Allan Cueff',
|
||||||
|
role: 'Partenariat',
|
||||||
|
image: 'https://r2.modelec.club/allan.png',
|
||||||
|
},
|
||||||
|
],
|
||||||
|
},
|
||||||
|
];
|
||||||
|
|
||||||
|
cy.mount(<Team groups={groups} />);
|
||||||
|
|
||||||
|
cy.get('.team-group').should('have.length', groups.length);
|
||||||
|
groups.forEach((group, groupIndex) => {
|
||||||
|
cy.get(`.team-group:eq(${groupIndex}) .team-group-title`).should(
|
||||||
|
'contain.text',
|
||||||
|
group.title
|
||||||
|
);
|
||||||
|
cy.get(`.team-group:eq(${groupIndex}) .team-member`).should(
|
||||||
|
'have.length',
|
||||||
|
group.members.length
|
||||||
|
);
|
||||||
|
group.members.forEach((member, memberIndex) => {
|
||||||
|
cy.get(
|
||||||
|
`.team-group:eq(${groupIndex}) .team-member:eq(${memberIndex}) .team-member-name`
|
||||||
|
).should('contain.text', member.name);
|
||||||
|
cy.get(
|
||||||
|
`.team-group:eq(${groupIndex}) .team-member:eq(${memberIndex}) .team-member-role`
|
||||||
|
).should('contain.text', member.role);
|
||||||
|
cy.get(
|
||||||
|
`.team-group:eq(${groupIndex}) .team-member:eq(${memberIndex}) img`
|
||||||
|
).should('have.attr', 'src', member.image);
|
||||||
|
});
|
||||||
|
});
|
||||||
|
});
|
||||||
|
});
|
||||||
229
src/components/timeline/timelineTimeline.cy.tsx
Normal file
229
src/components/timeline/timelineTimeline.cy.tsx
Normal file
@@ -0,0 +1,229 @@
|
|||||||
|
import React from 'react';
|
||||||
|
import { Timeline } from './timeline';
|
||||||
|
import './timeline.css';
|
||||||
|
|
||||||
|
describe('<Timeline />', () => {
|
||||||
|
it('renders the Timeline component correctly', () => {
|
||||||
|
cy.mount(
|
||||||
|
<Timeline
|
||||||
|
projects={[
|
||||||
|
{
|
||||||
|
title: 'Digitalisation du bureau',
|
||||||
|
date: '2024',
|
||||||
|
paragraphs: [
|
||||||
|
<>
|
||||||
|
Afin de faciliter la gestion du club, nous avons décidé de{' '}
|
||||||
|
<b>digitaliser</b> le <b>bureau</b>.
|
||||||
|
</>,
|
||||||
|
],
|
||||||
|
cards: [
|
||||||
|
{
|
||||||
|
type: 'image',
|
||||||
|
src: 'https://r2.modelec.club/Bureau/IMG_3881.PNG',
|
||||||
|
alt: 'Table de jeu pour la Coupe de France de Robotique',
|
||||||
|
fit: 'cover',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
type: 'image',
|
||||||
|
src: 'https://r2.modelec.club/Bureau/IMG_3882.PNG',
|
||||||
|
alt: 'Table de jeu pour la Coupe de France de Robotique',
|
||||||
|
fit: 'cover',
|
||||||
|
},
|
||||||
|
],
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: 'Serge : Notre robot',
|
||||||
|
date: '2024',
|
||||||
|
banner: 'https://r2.modelec.club/serge.png',
|
||||||
|
paragraphs: [
|
||||||
|
<>
|
||||||
|
Voici Serge, notre robot pour la{' '}
|
||||||
|
<u>coupe de France de Robotique</u> 2024 !
|
||||||
|
</>,
|
||||||
|
<>
|
||||||
|
Il est équipé de <b>2 roues motrices</b>,{' '}
|
||||||
|
<b>2 roues codeuses</b>, <b>3 pinces</b> et{' '}
|
||||||
|
<b>2 bras d'orientation</b> pour les panneaux solaires. Il est
|
||||||
|
également équipé d'<b>une caméra</b> pour la vision et d'
|
||||||
|
<b>un LiDAR</b> pour la détection d'adversaire et la
|
||||||
|
triangulation.
|
||||||
|
</>,
|
||||||
|
<>
|
||||||
|
Coté <u>Hardware</u>, il est géré par un <b>Raspberry Pi 5</b>{' '}
|
||||||
|
et un <b>Arduino Mega</b>.
|
||||||
|
</>,
|
||||||
|
<>
|
||||||
|
Côté <u>Software</u>, il est géré par des programmes <b>C++</b>{' '}
|
||||||
|
faits sur mesure dont le code est disponible sur notre Github.
|
||||||
|
</>,
|
||||||
|
<>
|
||||||
|
Serge n'est pas seul, il est accompagné de <u>2 Pixels</u>, ses{' '}
|
||||||
|
<b>Partie Autonome Mobile Intelligente</b> ou <u>PAMI</u> qui
|
||||||
|
sont des robots autonomes gérés par des <b>Arduino Uno</b> qui
|
||||||
|
peuvent se déplacer et se repérer dans l'espace.
|
||||||
|
</>,
|
||||||
|
],
|
||||||
|
cards: [
|
||||||
|
{ type: 'stat', data: '3000', label: 'Heures de travail' },
|
||||||
|
{ type: 'stat', data: '10', label: 'Étudiants' },
|
||||||
|
{ type: 'stat', data: '2024', label: 'Première participation' },
|
||||||
|
{ type: 'stat', data: '14', label: '/82 équipes' },
|
||||||
|
{
|
||||||
|
type: 'image',
|
||||||
|
src: 'https://r2.modelec.club/cdf.png',
|
||||||
|
alt: 'Logo Coupe de France de Robotique',
|
||||||
|
fit: 'contain',
|
||||||
|
},
|
||||||
|
],
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: 'PAMI v1',
|
||||||
|
date: '2024',
|
||||||
|
paragraphs: [
|
||||||
|
<>
|
||||||
|
Les <b>PAMI v1</b> sont des <b>robots autonomes</b> qui peuvent
|
||||||
|
se déplacer et se repérer dans l'espace.
|
||||||
|
</>,
|
||||||
|
<>
|
||||||
|
Ils sont gérés par des <b>Arduino Uno</b>.
|
||||||
|
</>,
|
||||||
|
],
|
||||||
|
cards: [
|
||||||
|
{
|
||||||
|
type: 'image',
|
||||||
|
src: 'https://r2.modelec.club/PAMI-V1.png',
|
||||||
|
alt: 'PAMI v1',
|
||||||
|
fit: 'cover',
|
||||||
|
},
|
||||||
|
],
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: 'Construction de la table de jeu',
|
||||||
|
date: '2023',
|
||||||
|
paragraphs: [
|
||||||
|
<>
|
||||||
|
Afin de pouvoir tester notre robot, nous avons construit une{' '}
|
||||||
|
<b>table de jeu</b> pour la <u>coupe de France de Robotique</u>.
|
||||||
|
</>,
|
||||||
|
<>
|
||||||
|
Elle est faite en <b>bois</b> et en <b>vinyle</b>.
|
||||||
|
</>,
|
||||||
|
],
|
||||||
|
cards: [
|
||||||
|
{
|
||||||
|
type: 'image',
|
||||||
|
src: 'https://r2.modelec.club/table2024.jpg',
|
||||||
|
alt: 'Table de jeu pour la Coupe de France de Robotique',
|
||||||
|
fit: 'cover',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
type: 'image',
|
||||||
|
src: 'https://r2.modelec.club/Table/20231102_163959.jpg',
|
||||||
|
alt: 'Table de jeu pour la Coupe de France de Robotique',
|
||||||
|
fit: 'cover',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
type: 'image',
|
||||||
|
src: 'https://r2.modelec.club/Table/20231102_164300.jpg',
|
||||||
|
alt: 'Table de jeu pour la Coupe de France de Robotique',
|
||||||
|
fit: 'cover',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
type: 'image',
|
||||||
|
src: 'https://r2.modelec.club/Table/IMG_20231202_160702.jpg',
|
||||||
|
alt: 'Table de jeu pour la Coupe de France de Robotique',
|
||||||
|
fit: 'cover',
|
||||||
|
},
|
||||||
|
],
|
||||||
|
},
|
||||||
|
]}
|
||||||
|
/>
|
||||||
|
);
|
||||||
|
|
||||||
|
// Add your assertions here
|
||||||
|
cy.get('.timeline-project-title').should(
|
||||||
|
'contain.text',
|
||||||
|
'Digitalisation du bureau'
|
||||||
|
);
|
||||||
|
cy.get('.timeline-project-date').should('contain.text', '2024');
|
||||||
|
cy.get('.timeline-project-paragraph').should(
|
||||||
|
'contain.text',
|
||||||
|
'Afin de faciliter la gestion du club, nous avons décidé de digitaliser le bureau.'
|
||||||
|
);
|
||||||
|
cy.get('.timeline-project-card-image')
|
||||||
|
.eq(0)
|
||||||
|
.should(
|
||||||
|
'have.attr',
|
||||||
|
'src',
|
||||||
|
'https://r2.modelec.club/Bureau/IMG_3881.PNG'
|
||||||
|
);
|
||||||
|
cy.get('.timeline-project-card-image')
|
||||||
|
.eq(1)
|
||||||
|
.should(
|
||||||
|
'have.attr',
|
||||||
|
'src',
|
||||||
|
'https://r2.modelec.club/Bureau/IMG_3882.PNG'
|
||||||
|
);
|
||||||
|
cy.get('.timeline-project-title').should(
|
||||||
|
'contain.text',
|
||||||
|
'Serge : Notre robot'
|
||||||
|
);
|
||||||
|
cy.get('.timeline-project-banner').should(
|
||||||
|
'have.attr',
|
||||||
|
'src',
|
||||||
|
'https://r2.modelec.club/serge.png'
|
||||||
|
);
|
||||||
|
cy.get('.timeline-project-paragraph').should(
|
||||||
|
'contain.text',
|
||||||
|
'Voici Serge, notre robot pour la coupe de France de Robotique 2024 !'
|
||||||
|
);
|
||||||
|
cy.get('.timeline-project-card-number').should('contain.text', '3000');
|
||||||
|
cy.get('.timeline-project-card-subtext').should(
|
||||||
|
'contain.text',
|
||||||
|
'Heures de travail'
|
||||||
|
);
|
||||||
|
cy.get('.timeline-project-card-image')
|
||||||
|
.eq(2)
|
||||||
|
.should('have.attr', 'src', 'https://r2.modelec.club/cdf.png');
|
||||||
|
cy.get('.timeline-project-title').should('contain.text', 'PAMI v1');
|
||||||
|
cy.get('.timeline-project-paragraph').should(
|
||||||
|
'contain.text',
|
||||||
|
"Les PAMI v1 sont des robots autonomes qui peuvent se déplacer et se repérer dans l'espace."
|
||||||
|
);
|
||||||
|
cy.get('.timeline-project-card-image')
|
||||||
|
.eq(3)
|
||||||
|
.should('have.attr', 'src', 'https://r2.modelec.club/PAMI-V1.png');
|
||||||
|
cy.get('.timeline-project-title').should(
|
||||||
|
'contain.text',
|
||||||
|
'Construction de la table de jeu'
|
||||||
|
);
|
||||||
|
cy.get('.timeline-project-paragraph').should(
|
||||||
|
'contain.text',
|
||||||
|
'Afin de pouvoir tester notre robot, nous avons construit une table de jeu pour la coupe de France de Robotique.'
|
||||||
|
);
|
||||||
|
cy.get('.timeline-project-card-image')
|
||||||
|
.eq(4)
|
||||||
|
.should('have.attr', 'src', 'https://r2.modelec.club/table2024.jpg');
|
||||||
|
cy.get('.timeline-project-card-image')
|
||||||
|
.eq(5)
|
||||||
|
.should(
|
||||||
|
'have.attr',
|
||||||
|
'src',
|
||||||
|
'https://r2.modelec.club/Table/20231102_163959.jpg'
|
||||||
|
);
|
||||||
|
cy.get('.timeline-project-card-image')
|
||||||
|
.eq(6)
|
||||||
|
.should(
|
||||||
|
'have.attr',
|
||||||
|
'src',
|
||||||
|
'https://r2.modelec.club/Table/20231102_164300.jpg'
|
||||||
|
);
|
||||||
|
cy.get('.timeline-project-card-image')
|
||||||
|
.eq(7)
|
||||||
|
.should(
|
||||||
|
'have.attr',
|
||||||
|
'src',
|
||||||
|
'https://r2.modelec.club/Table/IMG_20231202_160702.jpg'
|
||||||
|
);
|
||||||
|
});
|
||||||
|
});
|
||||||
32
src/components/timeline/timelineTimelineProject.cy.tsx
Normal file
32
src/components/timeline/timelineTimelineProject.cy.tsx
Normal file
@@ -0,0 +1,32 @@
|
|||||||
|
import React from 'react';
|
||||||
|
import { TimelineProject } from './timeline';
|
||||||
|
import './timeline.css';
|
||||||
|
|
||||||
|
describe('<TimelineProject />', () => {
|
||||||
|
it('renders the TimelineProject component correctly', () => {
|
||||||
|
cy.mount(
|
||||||
|
<TimelineProject
|
||||||
|
title={'La Coupe de France de Robotique 2025'}
|
||||||
|
date={'À venir'}
|
||||||
|
paragraphs={[
|
||||||
|
<>
|
||||||
|
Cette année encore, nous participons à la{' '}
|
||||||
|
<u>Coupe de France de Robotique</u> pour notre{' '}
|
||||||
|
<b>deuxième participation</b> !
|
||||||
|
</>,
|
||||||
|
]}
|
||||||
|
/>
|
||||||
|
);
|
||||||
|
|
||||||
|
// Add your assertions here
|
||||||
|
cy.get('.timeline-project-title').should(
|
||||||
|
'contain.text',
|
||||||
|
'La Coupe de France de Robotique 2025'
|
||||||
|
);
|
||||||
|
cy.get('.timeline-project-date').should('contain.text', 'À venir');
|
||||||
|
cy.get('.timeline-project-paragraph').should(
|
||||||
|
'contain.text',
|
||||||
|
'Cette année encore, nous participons à la Coupe de France de Robotique pour notre deuxième participation !'
|
||||||
|
);
|
||||||
|
});
|
||||||
|
});
|
||||||
40
src/layouts/navbar/navbarNavbar.cy.tsx
Normal file
40
src/layouts/navbar/navbarNavbar.cy.tsx
Normal file
@@ -0,0 +1,40 @@
|
|||||||
|
import React from 'react';
|
||||||
|
import { Navbar } from './navbar';
|
||||||
|
import { BrowserRouter as Router } from 'react-router-dom';
|
||||||
|
import '../../App.css';
|
||||||
|
import './navbar.css';
|
||||||
|
|
||||||
|
describe('<Navbar />', () => {
|
||||||
|
it('renders the Navbar component correctly', () => {
|
||||||
|
cy.mount(
|
||||||
|
<Router>
|
||||||
|
<Navbar />
|
||||||
|
</Router>
|
||||||
|
);
|
||||||
|
|
||||||
|
// Add your assertions here
|
||||||
|
cy.get('.navbar').should('exist');
|
||||||
|
cy.get('.navbar-logo').should('exist');
|
||||||
|
cy.get('.navbar-links').should('exist');
|
||||||
|
cy.get('.navbar-link').should('have.length', 4); // Adjust the number based on the actual number of links
|
||||||
|
cy.get('.navbar-open').should('exist');
|
||||||
|
});
|
||||||
|
|
||||||
|
it('opens and closes the mobile menu correctly', () => {
|
||||||
|
cy.mount(
|
||||||
|
<Router>
|
||||||
|
<Navbar />
|
||||||
|
</Router>
|
||||||
|
);
|
||||||
|
|
||||||
|
// Open the mobile menu
|
||||||
|
cy.get('.navbar-open').click();
|
||||||
|
cy.get('.mobileNavbar').should('exist');
|
||||||
|
cy.get('.mobileNavbar-links').should('exist');
|
||||||
|
cy.get('.mobileNavbar-link').should('have.length', 4); // Adjust the number based on the actual number of links
|
||||||
|
|
||||||
|
// Close the mobile menu
|
||||||
|
cy.get('.mobileNavbar-overlay').click();
|
||||||
|
cy.get('.mobileNavbar').should('not.exist');
|
||||||
|
});
|
||||||
|
});
|
||||||
@@ -4,58 +4,68 @@ import { ContactList } from '../../components/contact/contact';
|
|||||||
import { Handbag } from 'iconoir-react';
|
import { Handbag } from 'iconoir-react';
|
||||||
|
|
||||||
const Partenaires: React.FC = () => {
|
const Partenaires: React.FC = () => {
|
||||||
return (<>
|
return (
|
||||||
<h1 className={'page-title'}>Nos Partenaires</h1>
|
<>
|
||||||
<div className={'partner-list'}>
|
<h1 className={'page-title'}>Nos Partenaires</h1>
|
||||||
<Partner
|
<div className={'partner-list'}>
|
||||||
name={'ISEN Nantes'}
|
<Partner
|
||||||
logo={'https://r2.modelec.club/isen.png'}
|
name={'ISEN Nantes'}
|
||||||
texts={[
|
logo={'https://r2.modelec.club/isen.png'}
|
||||||
<>L'ISEN Nantes est une école d'ingénieurs généraliste en 5 ans. Elle forme des ingénieurs dans les domaines de l'électronique, de l'informatique et des télécommunications. Ils nous mettent à disposition un local pour travailler sur nos projets.</>
|
texts={[
|
||||||
|
<>
|
||||||
|
L'ISEN Nantes est une école d'ingénieurs généraliste en 5 ans.
|
||||||
|
Elle forme des ingénieurs dans les domaines de l'électronique, de
|
||||||
|
l'informatique et des télécommunications. Ils nous mettent à
|
||||||
|
disposition un local pour travailler sur nos projets.
|
||||||
|
</>,
|
||||||
|
]}
|
||||||
|
photos={['https://r2.modelec.club/ISEN-2.jpg']}
|
||||||
|
link={'https://isen-nantes.fr'}
|
||||||
|
/>
|
||||||
|
<Partner
|
||||||
|
name={'MercuryCloud'}
|
||||||
|
logo={'https://r2.modelec.club/mercurycloud.png'}
|
||||||
|
texts={[
|
||||||
|
<>
|
||||||
|
MercuryCloud est un hébergeur web, de vps ainsi que de serveur de
|
||||||
|
jeu. Ils nous mettent à disposition un vps pour de la compilation
|
||||||
|
et pour héberger certains service dont ce site web.
|
||||||
|
</>,
|
||||||
|
]}
|
||||||
|
photos={['https://r2.modelec.club/MercuryCloud.jpg']}
|
||||||
|
link={'https://mercurycloud.fr/aff.php?aff=14'}
|
||||||
|
/>
|
||||||
|
<Partner
|
||||||
|
name={'Odyssey BDE'}
|
||||||
|
logo={'https://r2.modelec.club/bde.png'}
|
||||||
|
texts={[
|
||||||
|
<>
|
||||||
|
Le BDE de l'ISEN Nantes, Odyssey, est un partenaire de longue
|
||||||
|
date. Ils nous aident dans l'organisation de nos évènements et
|
||||||
|
nous soutiennent dans nos projets.
|
||||||
|
</>,
|
||||||
|
]}
|
||||||
|
photos={['https://r2.modelec.club/Odyseey.JPEG']}
|
||||||
|
link={'https://instagram.com/odyssey_bde'}
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
<h1 className={'page-title'}>Nous aider</h1>
|
||||||
|
<ContactList
|
||||||
|
contacts={[
|
||||||
|
{
|
||||||
|
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',
|
||||||
|
},
|
||||||
|
},
|
||||||
]}
|
]}
|
||||||
photos={[
|
|
||||||
'https://r2.modelec.club/ISEN.jpg',
|
|
||||||
'https://r2.modelec.club/ISEN-2.jpg'
|
|
||||||
]}
|
|
||||||
link={'https://isen-nantes.fr'}
|
|
||||||
/>
|
/>
|
||||||
<Partner
|
</>
|
||||||
name={'MercuryCloud'}
|
);
|
||||||
logo={'https://r2.modelec.club/mercurycloud.png'}
|
|
||||||
texts={[
|
|
||||||
<>MercuryCloud est un hébergeur web, de vps ainsi que de serveur de jeu. Ils nous mettent à disposition un vps pour de la compilation et pour héberger certains service dont ce site web.</>
|
|
||||||
]}
|
|
||||||
photos={[
|
|
||||||
'https://r2.modelec.club/MercuryCloud.jpg',
|
|
||||||
'https://r2.modelec.club/MercuryCloud-2.jpg'
|
|
||||||
]}
|
|
||||||
link={'https://mercurycloud.fr/aff.php?aff=14'}
|
|
||||||
/>
|
|
||||||
<Partner
|
|
||||||
name={'Odyssey BDE'}
|
|
||||||
logo={'https://r2.modelec.club/bde.png'}
|
|
||||||
texts={[
|
|
||||||
<>Le BDE de l'ISEN Nantes, Odyssey, est un partenaire de longue date. Ils nous aident dans l'organisation de nos évènements et nous soutiennent dans nos projets.</>
|
|
||||||
]}
|
|
||||||
photos={[
|
|
||||||
'https://r2.modelec.club/Odyseey.JPEG',
|
|
||||||
'https://r2.modelec.club/Odyssey-1.JPEG',
|
|
||||||
]}
|
|
||||||
link={'https://instagram.com/odyssey_bde'}
|
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
<h1 className={'page-title'}>Nous aider</h1>
|
|
||||||
<ContactList
|
|
||||||
contacts={[
|
|
||||||
{
|
|
||||||
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' }
|
|
||||||
}
|
|
||||||
]}
|
|
||||||
/>
|
|
||||||
</>);
|
|
||||||
};
|
};
|
||||||
|
|
||||||
export default Partenaires;
|
export default Partenaires;
|
||||||
|
|||||||
Reference in New Issue
Block a user