-
-
Notifications
You must be signed in to change notification settings - Fork 498
feat: add noodle for national gif day #3067
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
MatteoGabriele
wants to merge
12
commits into
npmx-dev:main
Choose a base branch
from
MatteoGabriele:feat/noodle-gif-day
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
f0e28d0
feat(noodle): add gif day noodle
MatteoGabriele 5933b38
refactor(noodle): use urls
MatteoGabriele 2657c51
feat: add gif repositioning
MatteoGabriele 35d9477
test: add a11y tests
MatteoGabriele e21c5de
refactor: componen name
MatteoGabriele 7fc7383
refactor: use cat gif
MatteoGabriele ba875b2
feat: add motion safe
MatteoGabriele 6fa28e5
fix: reduce with to center tagline
MatteoGabriele 67ee5d1
fix: size between home and noodles page
MatteoGabriele b33f8b9
refactor: add actual noodle day
MatteoGabriele 5930acf
fix: remove height
MatteoGabriele ce87c27
feat: add select-none
MatteoGabriele File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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,30 @@ | ||
| <script setup lang="ts"> | ||
| const props = defineProps<{ | ||
| text: string | ||
| backgroundUrl: string | ||
| title?: string | ||
| backgroundPosition?: string | ||
| backgroundSize?: string | ||
| }>() | ||
|
|
||
| const cssUrl = computed<string>(() => `url(${props.backgroundUrl})`) | ||
| </script> | ||
|
|
||
| <template> | ||
| <span | ||
| :title | ||
| :class="[ | ||
| 'gif-text-image', | ||
| 'font-noodle select-none leading-none bg-cover bg-center motion-safe:text-transparent bg-clip-text text-[4rem] @xl:text-[14rem] font-extrabold', | ||
| ]" | ||
| :style="{ backgroundPosition, backgroundSize }" | ||
| > | ||
| {{ text }} | ||
| </span> | ||
| </template> | ||
|
|
||
| <style scoped> | ||
| .gif-text-image { | ||
| background-image: v-bind(cssUrl); | ||
| } | ||
| </style> |
This file contains hidden or 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,58 @@ | ||
| <script setup lang="ts"> | ||
| type GifText = { | ||
| text: string | ||
| url: string | ||
| title: string | ||
| backgroundPosition?: string | ||
| backgroundSize?: string | ||
| } | ||
| const textArray: GifText[] = [ | ||
| { | ||
| text: './', | ||
| url: 'https://media1.tenor.com/m/_ETKRybU9WEAAAAd/orange-cat-stare.gif', | ||
| backgroundSize: '130%', | ||
| backgroundPosition: '50% 64%', | ||
| title: 'Obviously a cat', | ||
| }, | ||
| { | ||
| text: 'n', | ||
| url: 'https://media1.tenor.com/m/VFDevE2qwdcAAAAC/good-morning.gif', | ||
| backgroundSize: '170%', | ||
| title: 'Nicolas Cage', | ||
| }, | ||
| { | ||
| text: 'p', | ||
| url: 'https://media1.tenor.com/m/8QP4JDPp85UAAAAC/kido.gif', | ||
| backgroundSize: '180%', | ||
| backgroundPosition: '70% 60%', | ||
| title: 'Party', | ||
| }, | ||
| { | ||
| text: 'm', | ||
| url: 'https://media1.tenor.com/m/aN_HGmP-ZgAAAAAC/m.gif', | ||
| backgroundPosition: '39% 120%', | ||
| backgroundSize: '180%', | ||
| title: 'Minions', | ||
| }, | ||
| { | ||
| text: 'x', | ||
| url: 'https://media1.tenor.com/m/tslbzvMV878AAAAC/xmen-97-cyclops.gif', | ||
| backgroundSize: '180%', | ||
| title: 'X-Men', | ||
| }, | ||
| ] | ||
| </script> | ||
|
|
||
| <template> | ||
| <div class="flex @container justify-center w-full md:w-[720px]" aria-hidden="true"> | ||
| <NoodleGifDayGifText | ||
| v-for="item in textArray" | ||
| :key="item.text" | ||
| :text="item.text" | ||
| :title="item.title" | ||
| :background-url="item.url" | ||
| :background-position="item.backgroundPosition" | ||
| :background-size="item.backgroundSize" | ||
| /> | ||
| </div> | ||
| </template> | ||
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.