-
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.
- Loading branch information
Showing
15 changed files
with
501 additions
and
187 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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import { FC } from 'react'; | ||
|
||
interface PropType { | ||
className: string; | ||
bigNumber: number; | ||
text: string; | ||
} | ||
|
||
const BigNumberCard: FC<PropType> = ({ className, bigNumber, text }) => { | ||
return <div></div>; | ||
}; | ||
|
||
export default BigNumberCard; |
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,40 @@ | ||
import clsx from 'clsx'; | ||
import { FC, useEffect, useState } from 'react'; | ||
import Twemoji from 'react-twemoji'; | ||
|
||
import styles from '../../styles/Cards/FavoriteEmojis.module.scss'; | ||
|
||
interface PropType { | ||
className: string; | ||
emojis: string[]; | ||
} | ||
|
||
const FavoriteEmoji: FC<PropType> = ({ className, emojis }) => { | ||
const [current, setCurrent] = useState(emojis.length - 1); | ||
|
||
useEffect(() => { | ||
if (current !== 0) { | ||
setTimeout(() => { | ||
setCurrent((current) => current - 1); | ||
}, 250 - current * 3); | ||
} | ||
}, [current]); | ||
|
||
return ( | ||
<div className={className}> | ||
<div | ||
className={clsx(styles.emojiContainer, current === 0 && styles.moveUp)} | ||
> | ||
<Twemoji>{emojis[current]}</Twemoji> | ||
</div> | ||
<p className={clsx(styles.emojiText, current === 0 && styles.fadeIn)}> | ||
presenting to you | ||
</p> | ||
<p className={clsx(styles.emojiText, current === 0 && styles.fadeIn)}> | ||
your favorite/most used emoji | ||
</p> | ||
</div> | ||
); | ||
}; | ||
|
||
export default FavoriteEmoji; |
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,31 @@ | ||
import { FC } from 'react'; | ||
import Image from 'next/image'; | ||
import { UserV2 } from 'twitter-api-v2'; | ||
|
||
import styles from '../../styles/Cards/HelloCard.module.scss'; | ||
|
||
interface PropType { | ||
userData: UserV2; | ||
className: string; | ||
} | ||
|
||
const HelloCard: FC<PropType> = ({ userData, className }) => { | ||
return ( | ||
<div className={className + ' ' + styles.container}> | ||
<div className={styles.profileImageWrapper}> | ||
<Image | ||
src={userData.profile_image_url?.replace('_normal', '') || ''} | ||
layout='fill' | ||
quality={100} | ||
className={styles.profileImage} | ||
priority | ||
/> | ||
</div> | ||
<h3> | ||
hey <span>@{userData.username}</span> | ||
</h3> | ||
</div> | ||
); | ||
}; | ||
|
||
export default HelloCard; |
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,16 @@ | ||
import { FC } from 'react'; | ||
|
||
interface PropType { | ||
className: string; | ||
text: string; | ||
} | ||
|
||
const TextCard: FC<PropType> = ({ className, text }) => { | ||
return ( | ||
<div className={className}> | ||
<p>{text}</p> | ||
</div> | ||
); | ||
}; | ||
|
||
export default TextCard; |
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 |
---|---|---|
@@ -1,4 +1,7 @@ | ||
/** @type {import('next').NextConfig} */ | ||
module.exports = { | ||
reactStrictMode: true, | ||
} | ||
images: { | ||
domains: ['pbs.twimg.com'], | ||
}, | ||
}; |
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
Oops, something went wrong.