-
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(#176): add general ending card for rewind
resolves #176
- Loading branch information
Showing
11 changed files
with
121 additions
and
40 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
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
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,77 @@ | ||
import { RewindStory } from '@/types' | ||
import { | ||
FilmIcon, | ||
MusicalNoteIcon, | ||
PlayCircleIcon, | ||
} from '@heroicons/react/24/outline' | ||
import RewindStat from '../RewindStat' | ||
import StoryWrapper from '../StoryWrapper' | ||
|
||
export default function StoryGoodbye({ | ||
userRewind, | ||
isPaused, | ||
pause, | ||
resume, | ||
}: RewindStory) { | ||
return ( | ||
<StoryWrapper isPaused={isPaused} pause={pause} resume={resume}> | ||
<RewindStat scaleDelay={2} isPaused={isPaused}> | ||
<p> | ||
Thanks for tuning into your{' '} | ||
<span className='whitespace-nowrap'> | ||
<span className='gradient-plex'>Plex Rewind</span>, | ||
</span>{' '} | ||
<span className='whitespace-nowrap'> | ||
<span className='rewind-cat'>{userRewind.user.name}!</span> | ||
</span> | ||
</p> | ||
</RewindStat> | ||
<RewindStat renderDelay={2} scaleDelay={4} isPaused={isPaused}> | ||
<p> | ||
From your favorite{' '} | ||
{userRewind.movies.duration && ( | ||
<span className='rewind-cat'> | ||
Movies | ||
<FilmIcon /> | ||
</span> | ||
)}{' '} | ||
to the most entertaining{' '} | ||
{userRewind.shows.duration && ( | ||
<span className='rewind-cat'> | ||
Shows | ||
<PlayCircleIcon /> | ||
</span> | ||
)} | ||
{userRewind.audio.duration && ( | ||
<> | ||
{' '} | ||
and memorable{' '} | ||
<span className='rewind-cat'> | ||
Tracks | ||
<MusicalNoteIcon /> | ||
</span> | ||
</> | ||
)} | ||
, it's been a year to remember. | ||
</p> | ||
</RewindStat> | ||
<RewindStat | ||
renderDelay={6} | ||
scaleDelay={3} | ||
loaderDelay={2} | ||
isPaused={isPaused} | ||
> | ||
<p> | ||
We'll be back next year with even more{' '} | ||
<span className='rewind-cat'>insights and stats.</span> | ||
</p> | ||
</RewindStat> | ||
<RewindStat renderDelay={9} loaderDelay={6} isPaused={isPaused} noScale> | ||
<p> | ||
Until then, keep exploring and enjoying all that{' '} | ||
<span className='gradient-plex'>Plex</span> has to offer. | ||
</p> | ||
</RewindStat> | ||
</StoryWrapper> | ||
) | ||
} |
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
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 |
---|---|---|
@@ -1,15 +1,31 @@ | ||
/** @type {import('tailwindcss').Config} */ | ||
import plugin from 'tailwindcss/plugin' | ||
|
||
/** https://tailwindcss.com/docs/configuration */ | ||
module.exports = { | ||
content: [ | ||
'./src/components/**/*.{js,ts,jsx,tsx,mdx}', | ||
'./src/app/**/*.{js,ts,jsx,tsx,mdx}', | ||
], | ||
theme: { | ||
container: { | ||
center: true, | ||
padding: '1rem', | ||
}, | ||
export const content = [ | ||
'./src/components/**/*.{js,ts,jsx,tsx,mdx}', | ||
'./src/app/**/*.{js,ts,jsx,tsx,mdx}', | ||
] | ||
export const theme = { | ||
container: { | ||
center: true, | ||
padding: '1rem', | ||
}, | ||
plugins: [require('@tailwindcss/forms')], | ||
} | ||
export const plugins = [ | ||
require('@tailwindcss/forms'), | ||
plugin(({ matchUtilities, theme }) => { | ||
matchUtilities( | ||
{ | ||
'animation-delay': (value) => { | ||
return { | ||
'animation-delay': value, | ||
} | ||
}, | ||
}, | ||
{ | ||
values: theme('transitionDelay'), | ||
}, | ||
) | ||
}), | ||
] |