Merge branch 'master' of https://github.com/Eric-ciccotti/rest-nextjs-api-routes-auth into feature/cedric
commit
7a73849f99
@ -1,76 +0,0 @@
|
||||
import React from "react";
|
||||
|
||||
|
||||
import Image from 'next/image';
|
||||
|
||||
|
||||
import style from '../styles/Content.module.css';
|
||||
|
||||
|
||||
import Link from "next/link";
|
||||
|
||||
|
||||
import feuilleGauche from '../public/images/feuilleGauche.webp'
|
||||
import feuilleDroite from '../public/images/feuilleBasDroite.webp'
|
||||
import cadeau from '../public/images/cadeau.webp'
|
||||
import jeuConcours from '../public/images/jeuconcours.webp'
|
||||
import footerGrass from '../public/images/footer_image.webp'
|
||||
|
||||
|
||||
type Props = {
|
||||
children?: React.ReactNode;
|
||||
};
|
||||
|
||||
const Content = ({ children }: Props) => {
|
||||
return (
|
||||
<>
|
||||
<div className={`${style['masthead']} d-flex justify-content-center align-items-center text-center`}>
|
||||
<div className={`${style['feuilleGauche']}`}>
|
||||
<Image
|
||||
src={feuilleGauche}
|
||||
alt="thetiptop feuille Gauche"
|
||||
layout="responsive"
|
||||
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']}`}>
|
||||
<Image
|
||||
src={jeuConcours}
|
||||
alt="thetiptop jeu Concours"
|
||||
layout="responsive"
|
||||
className={`${style['zoomInOutCadeau']}`}
|
||||
/>
|
||||
</div>
|
||||
<div className={`${style['cadeau']}`}>
|
||||
<Image
|
||||
src={cadeau}
|
||||
alt="thetiptop cadeau"
|
||||
layout="responsive"
|
||||
className={`${style['zoomInOutJeuConcours']}`}
|
||||
/>
|
||||
</div>
|
||||
<div className="container align-items-center d-flex flex-column">
|
||||
{children}
|
||||
</div>
|
||||
<div className={`${style['footerGrass']}`}>
|
||||
<Image
|
||||
src={footerGrass}
|
||||
alt="thetiptop feuille Gauche"
|
||||
layout="responsive"
|
||||
// className={`${style['footerGrass']}`}
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
</>
|
||||
);
|
||||
};
|
||||
|
||||
export default Content;
|
||||
@ -1,6 +1,6 @@
|
||||
import type { NextApiRequest, NextApiResponse } from 'next'
|
||||
import { getSession } from 'next-auth/react';
|
||||
import prisma from '../../../lib/prisma'
|
||||
import prisma from '../../../../lib/prisma'
|
||||
|
||||
|
||||
// DELETE /api/post/:id
|
||||
@ -1,5 +1,5 @@
|
||||
import type { NextApiRequest, NextApiResponse } from 'next'
|
||||
import prisma from '../../../lib/prisma'
|
||||
import prisma from '../../../../lib/prisma'
|
||||
import { getSession } from 'next-auth/react'
|
||||
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
import type { NextApiRequest, NextApiResponse } from 'next'
|
||||
import prisma from '../../../lib/prisma'
|
||||
import prisma from '../../../../lib/prisma'
|
||||
import { getSession } from 'next-auth/react'
|
||||
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
import type { NextApiRequest, NextApiResponse } from 'next'
|
||||
import { getSession } from 'next-auth/react';
|
||||
import prisma from '../../../lib/prisma'
|
||||
import prisma from '../../../../lib/prisma'
|
||||
|
||||
// PUT /api/publish/:id
|
||||
export default async function handle(req: NextApiRequest, res: NextApiResponse) {
|
||||
@ -1,5 +1,5 @@
|
||||
import React, { useState } from "react";
|
||||
import Layout from "../components/Layout";
|
||||
import Layout from "../../components/Layout";
|
||||
import Router from "next/router";
|
||||
|
||||
const Draft = () => {
|
||||
@ -1,10 +1,10 @@
|
||||
import React, { useState } from "react";
|
||||
import { GetServerSideProps } from "next";
|
||||
import Layout from "../components/Layout";
|
||||
import Layout from "../../components/Layout";
|
||||
import { useSession, getSession } from "next-auth/react";
|
||||
import prisma from '../lib/prisma'
|
||||
import prisma from '../../lib/prisma'
|
||||
import Router from "next/router";
|
||||
import { ProfileProps } from "../types/profile";
|
||||
import { ProfileProps } from "../../types/profile";
|
||||
import { Resolver, SubmitHandler } from "react-hook-form";
|
||||
|
||||
|
||||
@ -1,252 +0,0 @@
|
||||
.masthead {
|
||||
--aButton-base-padding: 0px;
|
||||
--aButton-grow-padding: 5px;
|
||||
}
|
||||
|
||||
.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;
|
||||
}
|
||||
|
||||
.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;
|
||||
border-radius: 10px;
|
||||
background-image: url('/images/codebackground.webp');
|
||||
background-position: 50% 50%;
|
||||
background-repeat: no-repeat;
|
||||
background-size: contain;
|
||||
/* animation: zoomInOut 3s ease-in-out infinite; */
|
||||
z-index: 8888
|
||||
}
|
||||
|
||||
.zoomInOutCadeau {
|
||||
animation: zoomInOut 1s ease-in-out infinite;
|
||||
}
|
||||
|
||||
.zoomInOutJeuConcours {
|
||||
animation: zoomInOut 1.1s ease-in-out infinite;
|
||||
}
|
||||
|
||||
|
||||
.rotatingImage {
|
||||
animation: 1s ease-in-out infinite alternate rotation;
|
||||
}
|
||||
|
||||
.rotatingSlow {
|
||||
animation: 4s ease-in-out infinite alternate rotation;
|
||||
}
|
||||
|
||||
.blinking {
|
||||
animation: blinking 1s infinite;
|
||||
}
|
||||
|
||||
@keyframes zoomInOut {
|
||||
0% {
|
||||
transform: scale(1, 1);
|
||||
}
|
||||
|
||||
50% {
|
||||
transform: scale(1.05, 1.05);
|
||||
}
|
||||
|
||||
to {
|
||||
transform: scale(1, 1);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
@keyframes rotation {
|
||||
0% {
|
||||
transform: rotate(2deg);
|
||||
}
|
||||
|
||||
50% {
|
||||
transform: rotate(-2deg);
|
||||
}
|
||||
|
||||
to {
|
||||
transform: rotate(2deg);
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes blinking {
|
||||
|
||||
0%,
|
||||
50%,
|
||||
100% {
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
25%,
|
||||
75% {
|
||||
opacity: 0;
|
||||
}
|
||||
}
|
||||
|
||||
.zoom-in-out-box {
|
||||
animation: zoom-in-zoom-out 1s ease infinite;
|
||||
}
|
||||
|
||||
.imageWrapper {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.masthead .aButton {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.masthead .aButton:after {
|
||||
content: "";
|
||||
position: absolute;
|
||||
|
||||
/* border:1px solid black; */
|
||||
border-radius: 0.375rem;
|
||||
display: none;
|
||||
|
||||
left: var(--aButton-base-padding);
|
||||
top: var(--aButton-base-padding);
|
||||
width: calc(100% + var(--aButton-base-padding));
|
||||
height: calc(100% + var(--aButton-base-padding));
|
||||
}
|
||||
|
||||
.masthead .aButton:hover:after {
|
||||
display: block;
|
||||
animation: 0.7s linear infinite alternate expand;
|
||||
}
|
||||
|
||||
@keyframes expand {
|
||||
to {
|
||||
left: calc(var(--aButton-base-padding) - var(--aButton-grow-padding));
|
||||
top: calc(var(--aButton-base-padding) - var(--aButton-grow-padding));
|
||||
width: calc(100% + var(--aButton-base-padding) + 2 * var(--aButton-grow-padding));
|
||||
height: calc(100% + var(--aButton-base-padding) + 2 * var(--aButton-grow-padding));
|
||||
border: 3px solid var(--color3);
|
||||
}
|
||||
}
|
||||
|
||||
.productToGain {
|
||||
background-color: var(--color1);
|
||||
width: 20vw;
|
||||
height: 20vw;
|
||||
border-radius: 50%;
|
||||
padding: 10px;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
|
||||
@media (min-width: 992px) {
|
||||
.productToGain {
|
||||
width: 13vw;
|
||||
height: 13vw;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/*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;
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
/*grand écran*/
|
||||
@media only screen and (min-width: 767px) {
|
||||
.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;
|
||||
}
|
||||
}
|
||||
Loading…
Reference in new issue