feat: modal

This commit is contained in:
Anoop M D
2022-01-04 02:07:46 +05:30
parent 81f9668375
commit 1f1e8a602e
5 changed files with 292 additions and 1 deletions

View File

@@ -0,0 +1,49 @@
import { createGlobalStyle } from 'styled-components';
const GlobalStyle = createGlobalStyle`
@keyframes fade-in {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
@keyframes fade-out {
from {
opacity: 1;
}
to {
opacity: 0;
}
}
@keyframes fade-and-slide-in-from-top {
from {
opacity: 0;
-webkit-transform: translateY(-30px);
transform: translateY(-30px);
}
to {
opacity: 1;
-webkit-transform: none;
transform: none;
}
}
@keyframes fade-and-slide-out-from-top {
from {
opacity: 1;
-webkit-transform: none;
transform: none;
}
to {
opacity: 2;
-webkit-transform: translateY(-30px);
transform: translateY(-30px);
}
}
`;
export default GlobalStyle;

View File

@@ -1,5 +1,6 @@
import Head from 'next/head';
import Main from 'pageComponents/Main';
import GlobalStyle from '../globalStyles';
export default function Home() {
return (
@@ -9,6 +10,8 @@ export default function Home() {
<link rel="icon" href="/favicon.ico" />
</Head>
<GlobalStyle />
<main>
<Main />
</main>