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 = () => {
|
||||
return (
|
||||
<footer className={`${style.footer}`}>
|
||||
<div className={`${style['footerContent']}`}>
|
||||
<div className="container border-bottom">
|
||||
<div className="row align-items-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">
|
||||
<ul className="nav flex-column justify-content-md-around justify-content-sm-center mx-5">
|
||||
<li className="nav-item">
|
||||
<Link href="/CGU" legacyBehavior >
|
||||
<Link href="/cgu" legacyBehavior >
|
||||
<a className='px-2'>CGU</a>
|
||||
</Link>
|
||||
</li>
|
||||
@@ -64,9 +65,10 @@ const Footer = () => {
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<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>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -1,19 +1,13 @@
|
||||
import React, { ReactNode } from "react";
|
||||
import NavBar from "./NavBar";
|
||||
import Footer from "./Footer";
|
||||
import Content from "./Content";
|
||||
|
||||
type Props = {
|
||||
children?: React.ReactNode;
|
||||
};
|
||||
|
||||
|
||||
const layoutStyle = {
|
||||
height: "100vh"
|
||||
}
|
||||
|
||||
const Layout = ({ children }: Props) =>
|
||||
<div style={layoutStyle}>
|
||||
<div className="layout-container">
|
||||
<NavBar />
|
||||
{children}
|
||||
<Footer />
|
||||
|
||||
@@ -25,7 +25,7 @@ const NavBar = () => {
|
||||
}
|
||||
|
||||
let visitor = (
|
||||
<nav className={`${style.customcss} container-fluid`}>
|
||||
<nav className={`${style['navbar']}`}>
|
||||
|
||||
<div className="d-flex justify-content-center">
|
||||
<Image
|
||||
|
||||
+25
-16
@@ -23,12 +23,13 @@ import feuilleDroite from '../public/images/feuilleBasDroite.webp'
|
||||
import unAnDeThe from '../public/images/unandethé.webp'
|
||||
import sablier from '../public/images/sablier.webp'
|
||||
import cadeau from '../public/images/cadeau.webp'
|
||||
import footerGrass from '../public/images/footer_image.webp'
|
||||
import jeuConcours from '../public/images/jeuconcours.webp'
|
||||
import { GetServerSideProps } from "next";
|
||||
|
||||
import { toast } from "react-toastify";
|
||||
|
||||
import footerGrass from '../public/images/footer_image.webp'
|
||||
|
||||
// // doesn't do anything, supposed to add the land in <html>
|
||||
// import "next.config.mjs";
|
||||
|
||||
@@ -109,8 +110,9 @@ const MainPage = () => {
|
||||
<link rel="preconnect" href="https://fonts.gstatic.com" crossOrigin="" />
|
||||
</Head>
|
||||
|
||||
<div className={`${style['masthead']} d-flex justify-content-center align-items-center text-center`}>
|
||||
<div className={`${style['feuilleGauche']}`}>
|
||||
<div className={`${style['masthead']} body-content`}>
|
||||
<div className="d-flex flex-wrap justify-content-center align-items-center text-center">
|
||||
<div className={`${style['feuilleGauche']} ${style['imageContainer']}`}>
|
||||
<Image
|
||||
src={feuilleGauche}
|
||||
alt="thetiptop feuille Gauche"
|
||||
@@ -118,15 +120,7 @@ const MainPage = () => {
|
||||
className={`${style['rotatingSlow']}`}
|
||||
/>
|
||||
</div>
|
||||
<div className={`${style['feuilleDroite']}`}>
|
||||
<Image
|
||||
src={feuilleDroite}
|
||||
alt="thetiptop feuille Droite"
|
||||
layout="responsive"
|
||||
className={`${style['rotatingSlow']}`}
|
||||
/>
|
||||
</div>
|
||||
<div className={`${style['jeuConcours']}`}>
|
||||
<div className={`${style['jeuConcours']} ${style['imageContainer']}`}>
|
||||
<Image
|
||||
src={jeuConcours}
|
||||
alt="thetiptop jeu Concours"
|
||||
@@ -134,7 +128,7 @@ const MainPage = () => {
|
||||
className={`${style['zoomInOutCadeau']}`}
|
||||
/>
|
||||
</div>
|
||||
<div className={`${style['cadeau']}`}>
|
||||
<div className={`${style['cadeau']} ${style['imageContainer']}`}>
|
||||
<Image
|
||||
src={cadeau}
|
||||
alt="thetiptop cadeau"
|
||||
@@ -142,7 +136,16 @@ const MainPage = () => {
|
||||
className={`${style['zoomInOutJeuConcours']}`}
|
||||
/>
|
||||
</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['imageWrapper']}`}>
|
||||
<Image
|
||||
@@ -157,6 +160,8 @@ const MainPage = () => {
|
||||
<input type="text"
|
||||
id="codeInput" aria-describedby="codeHelp"
|
||||
placeholder="A293049430..."
|
||||
minLength={10}
|
||||
maxLength={10}
|
||||
{...register('codeCadeau')}
|
||||
className={`form-control ${errors.codeCadeau ? 'is-invalid' : ''}`}
|
||||
|
||||
@@ -169,7 +174,12 @@ const MainPage = () => {
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<div className={`${style['footerGrass']}`}>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
<div className={`${style['footerGrass']} position-absolute`}>
|
||||
<Image
|
||||
src={footerGrass}
|
||||
alt="thetiptop feuille Gauche"
|
||||
@@ -178,7 +188,6 @@ const MainPage = () => {
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</>
|
||||
);
|
||||
};
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
import React from "react";
|
||||
import Head from "next/head";
|
||||
import style from "styled-jsx/style";
|
||||
|
||||
const MentionsLegales = () => {
|
||||
|
||||
@@ -16,6 +17,7 @@ const MentionsLegales = () => {
|
||||
<link rel="preconnect" href="https://fonts.googleapis.com" />
|
||||
<link rel="preconnect" href="https://fonts.gstatic.com" crossOrigin="" />
|
||||
</Head>
|
||||
<div className={`${style['navbar']}`}>
|
||||
<div className="container py-2 py-lg-3">
|
||||
<h1 className="text-center py-2 py-lg-3">Mentions légales</h1>
|
||||
<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.
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</>
|
||||
);
|
||||
};
|
||||
|
||||
@@ -19,12 +19,7 @@
|
||||
}
|
||||
|
||||
.masthead {
|
||||
background-image: url('/images/pageprincipale.webp');
|
||||
background-size: cover;
|
||||
background-position: 50% 50%;
|
||||
background-repeat: no-repeat;
|
||||
padding-top: 5vh;
|
||||
height: 90vh;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
|
||||
@@ -1,5 +1,10 @@
|
||||
.footer {
|
||||
color: white;
|
||||
margin-top:auto;
|
||||
width:100%;
|
||||
display: table-footer-group;
|
||||
}
|
||||
|
||||
.footerContent{
|
||||
background-color: #006600e6;
|
||||
color: white !important;
|
||||
padding-top: 20px;
|
||||
}
|
||||
+55
-78
@@ -4,35 +4,9 @@
|
||||
}
|
||||
|
||||
.masthead {
|
||||
padding-top: 5vh;
|
||||
height: 90vh;
|
||||
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 {
|
||||
padding: 10vh;
|
||||
@@ -97,7 +71,6 @@
|
||||
}
|
||||
|
||||
@keyframes blinking {
|
||||
|
||||
0%,
|
||||
50%,
|
||||
100% {
|
||||
@@ -168,81 +141,85 @@
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/*mobile*/
|
||||
@media only screen and (max-width: 767px) {
|
||||
.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;
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
.imageContainer {
|
||||
z-index: 1;
|
||||
width: 20vw;
|
||||
}
|
||||
|
||||
|
||||
.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*/
|
||||
@media only screen and (min-width: 767px) {
|
||||
@media only screen and (min-width: 768px) {
|
||||
.feuilleGauche {
|
||||
position: absolute;
|
||||
top: 1px;
|
||||
left: 1px;
|
||||
z-index: 9000;
|
||||
width: 25vw;
|
||||
}
|
||||
|
||||
.feuilleDroite {
|
||||
position: absolute;
|
||||
bottom: 15px;
|
||||
right: 15px;
|
||||
z-index: 9000;
|
||||
width: 25vw;
|
||||
}
|
||||
|
||||
.cadeau {
|
||||
position: absolute;
|
||||
bottom: 0px;
|
||||
left: 0px;
|
||||
z-index: 9000;
|
||||
}
|
||||
|
||||
.jeuConcours {
|
||||
position: absolute;
|
||||
top: 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 {
|
||||
background-color: transparent !important;
|
||||
z-index: 9001;
|
||||
position: absolute;
|
||||
.navbar{
|
||||
display: table-header-group;
|
||||
}
|
||||
|
||||
.link {
|
||||
@@ -88,7 +86,7 @@
|
||||
}
|
||||
|
||||
/* cache ou affiche un élement si mobile */
|
||||
@media only screen and (max-width: 767px) {
|
||||
@media only screen and (max-width: 768px) {
|
||||
.hidden-mobile {
|
||||
display: none;
|
||||
}
|
||||
@@ -98,7 +96,7 @@
|
||||
}
|
||||
}
|
||||
|
||||
@media only screen and (min-width: 767px) {
|
||||
@media only screen and (min-width: 768px) {
|
||||
.hidden-mobile {
|
||||
display: flex;
|
||||
}
|
||||
|
||||
+16
-5
@@ -6,10 +6,25 @@ body {
|
||||
font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Oxygen,
|
||||
Ubuntu, Cantarell, Fira Sans, Droid Sans, Helvetica Neue, sans-serif;
|
||||
font-size: small;
|
||||
}
|
||||
|
||||
body{
|
||||
background-image: url(/images/pageprincipale.webp);
|
||||
background-size: cover;
|
||||
background-position: 50% 50%;
|
||||
/* background-position: 50% 50%; */
|
||||
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,
|
||||
@@ -18,10 +33,6 @@ a:hover {
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
* {
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
:root {
|
||||
--color1: #C0D8F0;
|
||||
--color2: #76AE0D;
|
||||
|
||||
Reference in new issue
Block a user