diff --git a/apps/website/components/card-blog/card-blog.module.scss b/apps/website/components/card-blog/card-blog.module.scss index 45c2aa4..5a23236 100644 --- a/apps/website/components/card-blog/card-blog.module.scss +++ b/apps/website/components/card-blog/card-blog.module.scss @@ -5,3 +5,6 @@ * .container { * } */ +.card-blog-container { + margin-bottom: 10px; +} diff --git a/apps/website/components/card-blog/card-blog.tsx b/apps/website/components/card-blog/card-blog.tsx index d3aa0a9..088a009 100644 --- a/apps/website/components/card-blog/card-blog.tsx +++ b/apps/website/components/card-blog/card-blog.tsx @@ -11,7 +11,7 @@ export interface CardBlogProps { export function CardBlog({item}: CardBlogProps) { return ( -
+
+ className="bg-white fixed border-gray-200 dark:bg-gray-800 w-full z-10 border-b-gray-50 dark:border-b-gray-700">
{ + it('should render successfully', () => { + const { baseElement } = render(); + expect(baseElement).toBeTruthy(); + }); +}); diff --git a/apps/website/components/home-section-blog/home-section-blog.tsx b/apps/website/components/home-section-blog/home-section-blog.tsx new file mode 100644 index 0000000..0b19c29 --- /dev/null +++ b/apps/website/components/home-section-blog/home-section-blog.tsx @@ -0,0 +1,17 @@ +import styles from './home-section-blog.module.scss'; + +/* eslint-disable-next-line */ +export interface HomeSectionBlogProps {} + +export function HomeSectionBlog(props: HomeSectionBlogProps) { + return ( + <> +
+
a
+
b
+
+ + ); +} + +export default HomeSectionBlog; diff --git a/apps/website/components/home-section-cards-header/home-section-cards-header.module.scss b/apps/website/components/home-section-cards-header/home-section-cards-header.module.scss new file mode 100644 index 0000000..45c2aa4 --- /dev/null +++ b/apps/website/components/home-section-cards-header/home-section-cards-header.module.scss @@ -0,0 +1,7 @@ +/* + * Replace this with your own classes + * + * e.g. + * .container { + * } +*/ diff --git a/apps/website/components/home-section-cards-header/home-section-cards-header.spec.tsx b/apps/website/components/home-section-cards-header/home-section-cards-header.spec.tsx new file mode 100644 index 0000000..658f944 --- /dev/null +++ b/apps/website/components/home-section-cards-header/home-section-cards-header.spec.tsx @@ -0,0 +1,10 @@ +import { render } from '@testing-library/react'; + +import HomeSectionCardsHeader from './home-section-cards-header'; + +describe('HomeSectionCardsHeader', () => { + it('should render successfully', () => { + const { baseElement } = render(); + expect(baseElement).toBeTruthy(); + }); +}); diff --git a/apps/website/components/home-section-cards-header/home-section-cards-header.tsx b/apps/website/components/home-section-cards-header/home-section-cards-header.tsx new file mode 100644 index 0000000..b13c9a1 --- /dev/null +++ b/apps/website/components/home-section-cards-header/home-section-cards-header.tsx @@ -0,0 +1,82 @@ +import styles from './home-section-cards-header.module.scss'; +import {FontAwesomeIcon} from "@fortawesome/react-fontawesome"; +import { + faChalkboardUser, + faGraduationCap, faGuitar, + faLinesLeaning, faScrewdriverWrench, + faTabletScreenButton +} from "@fortawesome/free-solid-svg-icons"; + +/* eslint-disable-next-line */ +export interface HomeSectionCardsHeaderProps {} + +export function HomeSectionCardsHeader(props: HomeSectionCardsHeaderProps) { + return ( + <> +
+
+
a +
+
b +
+
c +
+
+ +
+

MeCP fournit tout les outils nécessaire pour un apprentissage de qualité

+ +
+
+ + Des formats adaptés +
+
+ + Une organisation pédagogique +
+
+ + Un espace dédié à l'apprentissage +
+
+ + Des contenus adaptés et motivants +
+
+ + Une méthode révolutionnaire +
+
+ + Des outils interactifs +
+
+
+
+ + ); +} + +export default HomeSectionCardsHeader; diff --git a/apps/website/components/home-section-comments/home-section-comments.module.scss b/apps/website/components/home-section-comments/home-section-comments.module.scss new file mode 100644 index 0000000..45c2aa4 --- /dev/null +++ b/apps/website/components/home-section-comments/home-section-comments.module.scss @@ -0,0 +1,7 @@ +/* + * Replace this with your own classes + * + * e.g. + * .container { + * } +*/ diff --git a/apps/website/components/home-section-comments/home-section-comments.spec.tsx b/apps/website/components/home-section-comments/home-section-comments.spec.tsx new file mode 100644 index 0000000..2f87956 --- /dev/null +++ b/apps/website/components/home-section-comments/home-section-comments.spec.tsx @@ -0,0 +1,10 @@ +import { render } from '@testing-library/react'; + +import HomeSectionComments from './home-section-comments'; + +describe('HomeSectionComments', () => { + it('should render successfully', () => { + const { baseElement } = render(); + expect(baseElement).toBeTruthy(); + }); +}); diff --git a/apps/website/components/home-section-comments/home-section-comments.tsx b/apps/website/components/home-section-comments/home-section-comments.tsx new file mode 100644 index 0000000..e663880 --- /dev/null +++ b/apps/website/components/home-section-comments/home-section-comments.tsx @@ -0,0 +1,178 @@ +/* eslint-disable-next-line */ +export interface HomeSectionCommentsProps { +} + +export function HomeSectionComments(props: HomeSectionCommentsProps) { + return ( + <> +
+
+

+ Ce que nos étudiants en pense +

+ +
+
+
+
+ + + + + +
+
+
+

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer nec sodales nisi. Donec pretium varius purus quis porttitor. In et tempus massa, accumsan egestas orci. Aenean eros purus, consequat eget.

+
+
+
+ avatar +

Par Alex John

+
+
+
+
+
+ + + + + +
+
+
+

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer nec sodales nisi. Donec pretium varius purus quis porttitor. In et tempus massa, accumsan egestas orci. Aenean eros purus, consequat eget.

+
+
+
+ avatar +

Par Alex John

+
+
+
+
+
+ + + + + +
+
+
+

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer nec sodales nisi. Donec pretium varius purus quis porttitor. In et tempus massa, accumsan egestas orci. Aenean eros purus, consequat eget.

+
+
+
+ avatar +

Par Alex John

+
+
+
+
+
+ + ); +} + +export default HomeSectionComments; diff --git a/apps/website/components/home-section-grid/home-section-grid.module.scss b/apps/website/components/home-section-grid/home-section-grid.module.scss new file mode 100644 index 0000000..45c2aa4 --- /dev/null +++ b/apps/website/components/home-section-grid/home-section-grid.module.scss @@ -0,0 +1,7 @@ +/* + * Replace this with your own classes + * + * e.g. + * .container { + * } +*/ diff --git a/apps/website/components/home-section-grid/home-section-grid.spec.tsx b/apps/website/components/home-section-grid/home-section-grid.spec.tsx new file mode 100644 index 0000000..f8a226f --- /dev/null +++ b/apps/website/components/home-section-grid/home-section-grid.spec.tsx @@ -0,0 +1,10 @@ +import { render } from '@testing-library/react'; + +import HomeSectionGrid from './home-section-grid'; + +describe('HomeSectionGrid', () => { + it('should render successfully', () => { + const { baseElement } = render(); + expect(baseElement).toBeTruthy(); + }); +}); diff --git a/apps/website/components/home-section-grid/home-section-grid.tsx b/apps/website/components/home-section-grid/home-section-grid.tsx new file mode 100644 index 0000000..9137fc0 --- /dev/null +++ b/apps/website/components/home-section-grid/home-section-grid.tsx @@ -0,0 +1,28 @@ +/* eslint-disable-next-line */ +export interface HomeSectionGridProps { +} + +export function HomeSectionGrid(props: HomeSectionGridProps) { + return ( + <> +
+
+
+

+ Méthode révolutionnaire pour apprendre à jouer +

+

+ Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed feugiat nulla lorem, at consectetur ligula pulvinar nec. Fusce dictum aliquet tellus id aliquam. Praesent feugiat tincidunt ante. Aliquam non lectus est. Suspendisse porta, dolor vel aliquet pharetra, ipsum diam laoreet ante, a feugiat nisi justo eu est.

+

Suspendisse in eros nisl. Vivamus eu convallis massa. Phasellus sit amet felis ut velit semper sagittis eget vitae arcu. Nunc leo est, vulputate sed libero non, efficitur lobortis odio. Proin fermentum massa non metus bibendum imperdiet.

+
+
+
+
+
+
+
+ + ); +} + +export default HomeSectionGrid; diff --git a/apps/website/components/home-section-video/home-section-video.module.scss b/apps/website/components/home-section-video/home-section-video.module.scss new file mode 100644 index 0000000..45c2aa4 --- /dev/null +++ b/apps/website/components/home-section-video/home-section-video.module.scss @@ -0,0 +1,7 @@ +/* + * Replace this with your own classes + * + * e.g. + * .container { + * } +*/ diff --git a/apps/website/components/home-section-video/home-section-video.spec.tsx b/apps/website/components/home-section-video/home-section-video.spec.tsx new file mode 100644 index 0000000..e258de8 --- /dev/null +++ b/apps/website/components/home-section-video/home-section-video.spec.tsx @@ -0,0 +1,10 @@ +import { render } from '@testing-library/react'; + +import HomeSectionVideo from './home-section-video'; + +describe('HomeSectionVideo', () => { + it('should render successfully', () => { + const { baseElement } = render(); + expect(baseElement).toBeTruthy(); + }); +}); diff --git a/apps/website/components/home-section-video/home-section-video.tsx b/apps/website/components/home-section-video/home-section-video.tsx new file mode 100644 index 0000000..3aae091 --- /dev/null +++ b/apps/website/components/home-section-video/home-section-video.tsx @@ -0,0 +1,27 @@ +import styles from './home-section-video.module.scss'; + +/* eslint-disable-next-line */ +export interface HomeSectionVideoProps {} + +export function HomeSectionVideo(props: HomeSectionVideoProps) { + return ( + <> +
+

+ Démonstration en vidéo +

+

Rien ne vaut une démonstration pour convaincre !

+ + + +
+ + ); +} + +export default HomeSectionVideo; diff --git a/apps/website/components/home/home.module.scss b/apps/website/components/home/home.module.scss new file mode 100644 index 0000000..45c2aa4 --- /dev/null +++ b/apps/website/components/home/home.module.scss @@ -0,0 +1,7 @@ +/* + * Replace this with your own classes + * + * e.g. + * .container { + * } +*/ diff --git a/apps/website/components/home/home.spec.tsx b/apps/website/components/home/home.spec.tsx new file mode 100644 index 0000000..d72bc5d --- /dev/null +++ b/apps/website/components/home/home.spec.tsx @@ -0,0 +1,10 @@ +import { render } from '@testing-library/react'; + +import Home from './home'; + +describe('Home', () => { + it('should render successfully', () => { + const { baseElement } = render(); + expect(baseElement).toBeTruthy(); + }); +}); diff --git a/apps/website/components/home/home.tsx b/apps/website/components/home/home.tsx new file mode 100644 index 0000000..d2173a6 --- /dev/null +++ b/apps/website/components/home/home.tsx @@ -0,0 +1,25 @@ +import styles from './home.module.scss'; +import HomeSectionGrid from "../home-section-grid/home-section-grid"; +import HomeSectionCardsHeader from "../home-section-cards-header/home-section-cards-header"; +import HomeSectionVideo from "../home-section-video/home-section-video"; +import HomeSectionComments from "../home-section-comments/home-section-comments"; +import HomeSectionBlog from "../home-section-blog/home-section-blog"; + +/* eslint-disable-next-line */ +export interface HomeProps { +} + +export function HomeContent(props: HomeProps) { + return ( +
+
+ + + + + +
+ ); +} + +export default HomeContent; diff --git a/apps/website/components/layout/layout.module.scss b/apps/website/components/layout/layout.module.scss index 76fd24c..04a2115 100644 --- a/apps/website/components/layout/layout.module.scss +++ b/apps/website/components/layout/layout.module.scss @@ -64,7 +64,7 @@ @media (min-width: 1024px) { .app-container:not(.without-footer) { .app-content { - padding-top: 135px; + padding-top: 131px; min-height: calc(100vh - 181px); } } diff --git a/apps/website/components/seo-config/seo-config.tsx b/apps/website/components/seo-config/seo-config.tsx index 7a90880..b259a9e 100644 --- a/apps/website/components/seo-config/seo-config.tsx +++ b/apps/website/components/seo-config/seo-config.tsx @@ -53,6 +53,7 @@ export const SeoConfig = ({metaDescription = null, lang = null, meta = [], metaT return ( {title} + @@ -32,6 +41,10 @@ export function Blog({menuHeader, menuFooter, seo, categories, lastPublished}) { {lastPublished.map((post, index: number) => ( )) } + + {lastPublished.length > 0 && (
+ +
)}