fix - style des pages, notamment index
This commit is contained in:
1 parent
04423aa6c7
commit
8224592c0e
10 files changed
+116
-122
No files matched your search
@@ -9,6 +9,7 @@ import Link from 'next/link';
|
|||||||
const Footer = () => {
|
const Footer = () => {
|
||||||
return (
|
return (
|
||||||
<footer className={`${style.footer}`}>
|
<footer className={`${style.footer}`}>
|
||||||
|
<div className={`${style['footerContent']}`}>
|
||||||
<div className="container border-bottom">
|
<div className="container border-bottom">
|
||||||
<div className="row align-items-center">
|
<div className="row align-items-center">
|
||||||
<div className="col-sm-6 col-md-3 d-flex justify-content-center">
|
<div className="col-sm-6 col-md-3 d-flex justify-content-center">
|
||||||
@@ -52,7 +53,7 @@ const Footer = () => {
|
|||||||
<div className="col-sm-6 col-md-3">
|
<div className="col-sm-6 col-md-3">
|
||||||
<ul className="nav flex-column justify-content-md-around justify-content-sm-center mx-5">
|
<ul className="nav flex-column justify-content-md-around justify-content-sm-center mx-5">
|
||||||
<li className="nav-item">
|
<li className="nav-item">
|
||||||
<Link href="/CGU" legacyBehavior >
|
<Link href="/cgu" legacyBehavior >
|
||||||
<a className='px-2'>CGU</a>
|
<a className='px-2'>CGU</a>
|
||||||
</Link>
|
</Link>
|
||||||
</li>
|
</li>
|
||||||
@@ -64,9 +65,10 @@ const Footer = () => {
|
|||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
<p className="text-center">Thé Tip Top © 2022 - projet fictif pour lequel aucun réel
|
<p className="text-center">Thé Tip Top © 2022 - projet fictif pour lequel aucun réel
|
||||||
achat ou aucune réservation ne pourrait être effectué.</p>
|
achat ou aucune réservation ne pourrait être effectué.</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</footer>
|
</footer>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,19 +1,13 @@
|
|||||||
import React, { ReactNode } from "react";
|
import React, { ReactNode } from "react";
|
||||||
import NavBar from "./NavBar";
|
import NavBar from "./NavBar";
|
||||||
import Footer from "./Footer";
|
import Footer from "./Footer";
|
||||||
import Content from "./Content";
|
|
||||||
|
|
||||||
type Props = {
|
type Props = {
|
||||||
children?: React.ReactNode;
|
children?: React.ReactNode;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
const layoutStyle = {
|
|
||||||
height: "100vh"
|
|
||||||
}
|
|
||||||
|
|
||||||
const Layout = ({ children }: Props) =>
|
const Layout = ({ children }: Props) =>
|
||||||
<div style={layoutStyle}>
|
<div className="layout-container">
|
||||||
<NavBar />
|
<NavBar />
|
||||||
{children}
|
{children}
|
||||||
<Footer />
|
<Footer />
|
||||||
|
|||||||
@@ -25,7 +25,7 @@ const NavBar = () => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
let visitor = (
|
let visitor = (
|
||||||
<nav className={`${style.customcss} container-fluid`}>
|
<nav className={`${style['navbar']}`}>
|
||||||
|
|
||||||
<div className="d-flex justify-content-center">
|
<div className="d-flex justify-content-center">
|
||||||
<Image
|
<Image
|
||||||
|
|||||||
+25
-16
@@ -23,12 +23,13 @@ import feuilleDroite from '../public/images/feuilleBasDroite.webp'
|
|||||||
import unAnDeThe from '../public/images/unandethé.webp'
|
import unAnDeThe from '../public/images/unandethé.webp'
|
||||||
import sablier from '../public/images/sablier.webp'
|
import sablier from '../public/images/sablier.webp'
|
||||||
import cadeau from '../public/images/cadeau.webp'
|
import cadeau from '../public/images/cadeau.webp'
|
||||||
import footerGrass from '../public/images/footer_image.webp'
|
|
||||||
import jeuConcours from '../public/images/jeuconcours.webp'
|
import jeuConcours from '../public/images/jeuconcours.webp'
|
||||||
import { GetServerSideProps } from "next";
|
import { GetServerSideProps } from "next";
|
||||||
|
|
||||||
import { toast } from "react-toastify";
|
import { toast } from "react-toastify";
|
||||||
|
|
||||||
|
import footerGrass from '../public/images/footer_image.webp'
|
||||||
|
|
||||||
// // doesn't do anything, supposed to add the land in <html>
|
// // doesn't do anything, supposed to add the land in <html>
|
||||||
// import "next.config.mjs";
|
// import "next.config.mjs";
|
||||||
|
|
||||||
@@ -109,8 +110,9 @@ const MainPage = () => {
|
|||||||
<link rel="preconnect" href="https://fonts.gstatic.com" crossOrigin="" />
|
<link rel="preconnect" href="https://fonts.gstatic.com" crossOrigin="" />
|
||||||
</Head>
|
</Head>
|
||||||
|
|
||||||
<div className={`${style['masthead']} d-flex justify-content-center align-items-center text-center`}>
|
<div className={`${style['masthead']} body-content`}>
|
||||||
<div className={`${style['feuilleGauche']}`}>
|
<div className="d-flex flex-wrap justify-content-center align-items-center text-center">
|
||||||
|
<div className={`${style['feuilleGauche']} ${style['imageContainer']}`}>
|
||||||
<Image
|
<Image
|
||||||
src={feuilleGauche}
|
src={feuilleGauche}
|
||||||
alt="thetiptop feuille Gauche"
|
alt="thetiptop feuille Gauche"
|
||||||
@@ -118,15 +120,7 @@ const MainPage = () => {
|
|||||||
className={`${style['rotatingSlow']}`}
|
className={`${style['rotatingSlow']}`}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div className={`${style['feuilleDroite']}`}>
|
<div className={`${style['jeuConcours']} ${style['imageContainer']}`}>
|
||||||
<Image
|
|
||||||
src={feuilleDroite}
|
|
||||||
alt="thetiptop feuille Droite"
|
|
||||||
layout="responsive"
|
|
||||||
className={`${style['rotatingSlow']}`}
|
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
<div className={`${style['jeuConcours']}`}>
|
|
||||||
<Image
|
<Image
|
||||||
src={jeuConcours}
|
src={jeuConcours}
|
||||||
alt="thetiptop jeu Concours"
|
alt="thetiptop jeu Concours"
|
||||||
@@ -134,7 +128,7 @@ const MainPage = () => {
|
|||||||
className={`${style['zoomInOutCadeau']}`}
|
className={`${style['zoomInOutCadeau']}`}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div className={`${style['cadeau']}`}>
|
<div className={`${style['cadeau']} ${style['imageContainer']}`}>
|
||||||
<Image
|
<Image
|
||||||
src={cadeau}
|
src={cadeau}
|
||||||
alt="thetiptop cadeau"
|
alt="thetiptop cadeau"
|
||||||
@@ -142,7 +136,16 @@ const MainPage = () => {
|
|||||||
className={`${style['zoomInOutJeuConcours']}`}
|
className={`${style['zoomInOutJeuConcours']}`}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div className="container align-items-center d-flex flex-column">
|
<div className={`${style['feuilleDroite']} ${style['imageContainer']}`}>
|
||||||
|
<Image
|
||||||
|
src={feuilleDroite}
|
||||||
|
alt="thetiptop feuille Droite"
|
||||||
|
layout="responsive"
|
||||||
|
className={`${style['rotatingSlow']}`}
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div className="col-12 align-items-center d-flex flex-column">
|
||||||
<div className={`${style['bloc-content']} col-12 col-lg-6`}>
|
<div className={`${style['bloc-content']} col-12 col-lg-6`}>
|
||||||
<div className={`${style['imageWrapper']}`}>
|
<div className={`${style['imageWrapper']}`}>
|
||||||
<Image
|
<Image
|
||||||
@@ -157,6 +160,8 @@ const MainPage = () => {
|
|||||||
<input type="text"
|
<input type="text"
|
||||||
id="codeInput" aria-describedby="codeHelp"
|
id="codeInput" aria-describedby="codeHelp"
|
||||||
placeholder="A293049430..."
|
placeholder="A293049430..."
|
||||||
|
minLength={10}
|
||||||
|
maxLength={10}
|
||||||
{...register('codeCadeau')}
|
{...register('codeCadeau')}
|
||||||
className={`form-control ${errors.codeCadeau ? 'is-invalid' : ''}`}
|
className={`form-control ${errors.codeCadeau ? 'is-invalid' : ''}`}
|
||||||
|
|
||||||
@@ -169,7 +174,12 @@ const MainPage = () => {
|
|||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
<div className={`${style['footerGrass']}`}>
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
<div className={`${style['footerGrass']} position-absolute`}>
|
||||||
<Image
|
<Image
|
||||||
src={footerGrass}
|
src={footerGrass}
|
||||||
alt="thetiptop feuille Gauche"
|
alt="thetiptop feuille Gauche"
|
||||||
@@ -178,7 +188,6 @@ const MainPage = () => {
|
|||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
import React from "react";
|
import React from "react";
|
||||||
import Head from "next/head";
|
import Head from "next/head";
|
||||||
|
import style from "styled-jsx/style";
|
||||||
|
|
||||||
const MentionsLegales = () => {
|
const MentionsLegales = () => {
|
||||||
|
|
||||||
@@ -16,6 +17,7 @@ const MentionsLegales = () => {
|
|||||||
<link rel="preconnect" href="https://fonts.googleapis.com" />
|
<link rel="preconnect" href="https://fonts.googleapis.com" />
|
||||||
<link rel="preconnect" href="https://fonts.gstatic.com" crossOrigin="" />
|
<link rel="preconnect" href="https://fonts.gstatic.com" crossOrigin="" />
|
||||||
</Head>
|
</Head>
|
||||||
|
<div className={`${style['navbar']}`}>
|
||||||
<div className="container py-2 py-lg-3">
|
<div className="container py-2 py-lg-3">
|
||||||
<h1 className="text-center py-2 py-lg-3">Mentions légales</h1>
|
<h1 className="text-center py-2 py-lg-3">Mentions légales</h1>
|
||||||
<h2>Définitions</h2>
|
<h2>Définitions</h2>
|
||||||
@@ -184,6 +186,7 @@ const MentionsLegales = () => {
|
|||||||
Tout litige en relation avec l’utilisation du site https://www.furiousducks.fr est soumis au droit français. En dehors des cas où la loi ne le permet pas, il est fait attribution exclusive de juridiction aux tribunaux compétents de Paris.
|
Tout litige en relation avec l’utilisation du site https://www.furiousducks.fr est soumis au droit français. En dehors des cas où la loi ne le permet pas, il est fait attribution exclusive de juridiction aux tribunaux compétents de Paris.
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -19,12 +19,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.masthead {
|
.masthead {
|
||||||
background-image: url('/images/pageprincipale.webp');
|
|
||||||
background-size: cover;
|
|
||||||
background-position: 50% 50%;
|
|
||||||
background-repeat: no-repeat;
|
|
||||||
padding-top: 5vh;
|
padding-top: 5vh;
|
||||||
height: 90vh;
|
|
||||||
position: relative;
|
position: relative;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,10 @@
|
|||||||
.footer {
|
.footer {
|
||||||
|
color: white;
|
||||||
|
margin-top:auto;
|
||||||
|
width:100%;
|
||||||
|
display: table-footer-group;
|
||||||
|
}
|
||||||
|
|
||||||
|
.footerContent{
|
||||||
background-color: #006600e6;
|
background-color: #006600e6;
|
||||||
color: white !important;
|
|
||||||
padding-top: 20px;
|
|
||||||
}
|
}
|
||||||
+55
-78
@@ -4,35 +4,9 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.masthead {
|
.masthead {
|
||||||
padding-top: 5vh;
|
|
||||||
height: 90vh;
|
|
||||||
position: relative;
|
position: relative;
|
||||||
}
|
}
|
||||||
|
|
||||||
.footerGrass {
|
|
||||||
position: absolute;
|
|
||||||
background-image: url('/image/footer_image.webp');
|
|
||||||
background-repeat: repeat-x;
|
|
||||||
background-size: contain;
|
|
||||||
width: 100vw;
|
|
||||||
/* animation: moveLeftRight 2s infinite; */
|
|
||||||
position: absolute;
|
|
||||||
bottom: -20px;
|
|
||||||
}
|
|
||||||
|
|
||||||
@keyframes moveLeftRight {
|
|
||||||
|
|
||||||
|
|
||||||
0%,
|
|
||||||
100% {
|
|
||||||
left: 10%;
|
|
||||||
}
|
|
||||||
|
|
||||||
50% {
|
|
||||||
right: 0;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
.bloc-content {
|
.bloc-content {
|
||||||
padding: 10vh;
|
padding: 10vh;
|
||||||
@@ -97,7 +71,6 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
@keyframes blinking {
|
@keyframes blinking {
|
||||||
|
|
||||||
0%,
|
0%,
|
||||||
50%,
|
50%,
|
||||||
100% {
|
100% {
|
||||||
@@ -168,81 +141,85 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.imageContainer {
|
||||||
/*mobile*/
|
z-index: 1;
|
||||||
@media only screen and (max-width: 767px) {
|
width: 20vw;
|
||||||
.feuilleGauche {
|
|
||||||
position: absolute;
|
|
||||||
top: 0px;
|
|
||||||
left: 0px;
|
|
||||||
z-index: 9000;
|
|
||||||
width: 25vw;
|
|
||||||
}
|
|
||||||
|
|
||||||
.feuilleDroite {
|
|
||||||
position: absolute;
|
|
||||||
bottom: 0px;
|
|
||||||
right: 0px;
|
|
||||||
z-index: 9000;
|
|
||||||
width: 25vw;
|
|
||||||
}
|
|
||||||
|
|
||||||
.cadeau {
|
|
||||||
position: absolute;
|
|
||||||
bottom: 0px;
|
|
||||||
left: 0px;
|
|
||||||
z-index: 9000;
|
|
||||||
}
|
|
||||||
|
|
||||||
.jeuConcours {
|
|
||||||
position: absolute;
|
|
||||||
top: 0px;
|
|
||||||
right: 0px;
|
|
||||||
z-index: 9000;
|
|
||||||
}
|
|
||||||
|
|
||||||
.footerGrass {
|
|
||||||
position: absolute;
|
|
||||||
background-image: url('/image/footer_image.webp');
|
|
||||||
background-size: contain;
|
|
||||||
width: 100vw;
|
|
||||||
bottom: -10px;
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
.feuilleGauche, .feuilleDroite, .cadeau, .jeuConcours {
|
||||||
|
position: absolute;
|
||||||
|
}
|
||||||
|
|
||||||
|
.feuilleGauche {
|
||||||
|
top: 0px;
|
||||||
|
left: 0px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.feuilleDroite {
|
||||||
|
bottom: 0px;
|
||||||
|
right: 0px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.cadeau {
|
||||||
|
bottom: 0px;
|
||||||
|
left: 0px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.jeuConcours {
|
||||||
|
top: 0px;
|
||||||
|
right: 0px;
|
||||||
|
}
|
||||||
|
|
||||||
|
@media only screen and (min-width: 768px) {
|
||||||
|
.imageContainer {
|
||||||
|
width: 10vw;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/*grand écran*/
|
/*grand écran*/
|
||||||
@media only screen and (min-width: 767px) {
|
@media only screen and (min-width: 768px) {
|
||||||
.feuilleGauche {
|
.feuilleGauche {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 1px;
|
top: 1px;
|
||||||
left: 1px;
|
left: 1px;
|
||||||
z-index: 9000;
|
|
||||||
width: 25vw;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.feuilleDroite {
|
.feuilleDroite {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
bottom: 15px;
|
bottom: 15px;
|
||||||
right: 15px;
|
right: 15px;
|
||||||
z-index: 9000;
|
|
||||||
width: 25vw;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.cadeau {
|
.cadeau {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
bottom: 0px;
|
bottom: 0px;
|
||||||
left: 0px;
|
left: 0px;
|
||||||
z-index: 9000;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.jeuConcours {
|
.jeuConcours {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 15px;
|
top: 15px;
|
||||||
right: 15px;
|
right: 15px;
|
||||||
z-index: 9000;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
.footerGrass {
|
||||||
|
bottom: -20px;
|
||||||
|
background-image: url('/image/footer_image.webp');
|
||||||
|
background-repeat: repeat-x;
|
||||||
|
background-size: contain;
|
||||||
|
width: 100vw;
|
||||||
|
/* animation: moveLeftRight 2s infinite; */
|
||||||
|
}
|
||||||
|
/* @keyframes moveLeftRight {
|
||||||
|
0%,
|
||||||
|
100% {
|
||||||
|
left: 10%;
|
||||||
|
}
|
||||||
|
50% {
|
||||||
|
right: 0;
|
||||||
|
}
|
||||||
|
} */
|
||||||
@@ -1,7 +1,5 @@
|
|||||||
.customcss {
|
.navbar{
|
||||||
background-color: transparent !important;
|
display: table-header-group;
|
||||||
z-index: 9001;
|
|
||||||
position: absolute;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.link {
|
.link {
|
||||||
@@ -88,7 +86,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* cache ou affiche un élement si mobile */
|
/* cache ou affiche un élement si mobile */
|
||||||
@media only screen and (max-width: 767px) {
|
@media only screen and (max-width: 768px) {
|
||||||
.hidden-mobile {
|
.hidden-mobile {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
@@ -98,7 +96,7 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@media only screen and (min-width: 767px) {
|
@media only screen and (min-width: 768px) {
|
||||||
.hidden-mobile {
|
.hidden-mobile {
|
||||||
display: flex;
|
display: flex;
|
||||||
}
|
}
|
||||||
|
|||||||
+16
-5
@@ -6,10 +6,25 @@ body {
|
|||||||
font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Oxygen,
|
font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Oxygen,
|
||||||
Ubuntu, Cantarell, Fira Sans, Droid Sans, Helvetica Neue, sans-serif;
|
Ubuntu, Cantarell, Fira Sans, Droid Sans, Helvetica Neue, sans-serif;
|
||||||
font-size: small;
|
font-size: small;
|
||||||
|
}
|
||||||
|
|
||||||
|
body{
|
||||||
background-image: url(/images/pageprincipale.webp);
|
background-image: url(/images/pageprincipale.webp);
|
||||||
background-size: cover;
|
background-size: cover;
|
||||||
background-position: 50% 50%;
|
/* background-position: 50% 50%; */
|
||||||
background-repeat: no-repeat;
|
background-repeat: no-repeat;
|
||||||
|
background-attachment: fixed;
|
||||||
|
}
|
||||||
|
|
||||||
|
.layout-container{
|
||||||
|
display : table;
|
||||||
|
width: 100%;
|
||||||
|
position:relative;
|
||||||
|
min-height:100vh;
|
||||||
|
}
|
||||||
|
|
||||||
|
.body-content{
|
||||||
|
display: table-row-group;
|
||||||
}
|
}
|
||||||
|
|
||||||
a,
|
a,
|
||||||
@@ -18,10 +33,6 @@ a:hover {
|
|||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
* {
|
|
||||||
box-sizing: border-box;
|
|
||||||
}
|
|
||||||
|
|
||||||
:root {
|
:root {
|
||||||
--color1: #C0D8F0;
|
--color1: #C0D8F0;
|
||||||
--color2: #76AE0D;
|
--color2: #76AE0D;
|
||||||
|
|||||||
Reference in new issue
Block a user