forked from dscnitrourkela/project-raisin
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from dscnitrourkela/main
Feat: add custom fields for Nitr students (dscnitrourkela#227)
- Loading branch information
Showing
13 changed files
with
192 additions
and
140 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,6 @@ | ||
'use client'; | ||
import { Container, Message } from '@/components/Loading/loading.styles'; | ||
import { motion, AnimatePresence } from 'framer-motion'; | ||
import Loader from '@/components/Loading/Loader'; | ||
|
||
export default function Loading() { | ||
return ( | ||
<AnimatePresence> | ||
<Container> | ||
<motion.span | ||
className='loader' | ||
initial={{ opacity: 0, scale: 0.5 }} | ||
animate={{ opacity: 1, scale: 1 }} | ||
exit={{ opacity: 0, scale: 0.5 }} | ||
transition={{ duration: 0.5 }} | ||
/> | ||
<Message | ||
as={motion.div} | ||
initial={{ opacity: 0 }} | ||
animate={{ opacity: 1 }} | ||
exit={{ opacity: 0 }} | ||
transition={{ duration: 0.5, delay: 0.2 }} | ||
> | ||
Loading... | ||
</Message> | ||
</Container> | ||
</AnimatePresence> | ||
); | ||
return <Loader className={'bg-gray-900'} />; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
'use client'; | ||
import { AnimatePresence, motion } from 'framer-motion'; | ||
|
||
import { Container, Message } from '@/components/Loading/loading.styles'; | ||
|
||
function Loader({ className }) { | ||
return ( | ||
<AnimatePresence mode='wait'> | ||
<Container className={className}> | ||
<motion.span | ||
key='loader' | ||
className='loader' | ||
initial={{ opacity: 0, scale: 0.5 }} | ||
animate={{ opacity: 1, scale: 1 }} | ||
exit={{ opacity: 0, scale: 0.5 }} | ||
transition={{ duration: 0.5 }} | ||
/> | ||
<Message | ||
as={motion.div} | ||
initial={{ opacity: 0 }} | ||
animate={{ opacity: 1 }} | ||
exit={{ opacity: 0 }} | ||
transition={{ duration: 0.5, delay: 0.2 }} | ||
> | ||
Loading... | ||
</Message> | ||
</Container> | ||
</AnimatePresence> | ||
); | ||
} | ||
|
||
export default Loader; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.