-
-
Notifications
You must be signed in to change notification settings - Fork 83
🚀 Add new price drop banner component #223
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
Merged
Merged
Changes from 3 commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
848f27e
🚀 Add new price drop banner component
HassanZahirnia 65546a6
Update copy
simonhamp d46de34
wip
simonhamp b8d7ae1
Remove comment
simonhamp a679def
Code style
simonhamp 56eb3cb
Fix tests
simonhamp bc115c8
omg pint
simonhamp 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
14 changes: 14 additions & 0 deletions
14
resources/views/components/icons/banner/dollar-decrease.blade.php
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,14 @@ | ||
<svg | ||
{{ $attributes }} | ||
xmlns="http://www.w3.org/2000/svg" | ||
fill="none" | ||
viewBox="0 0 14 14" | ||
> | ||
<path | ||
fill="currentColor" | ||
fill-rule="evenodd" | ||
d="M5 5.125C5 2.9849 6.7349 1.25 8.875 1.25s3.875 1.7349 3.875 3.875c0 1.68622 -1.0774 3.12241 -2.5833 3.65467 -0.32543 0.11503 -0.496 0.4721 -0.38098 0.79755 0.11503 0.32545 0.47208 0.49598 0.79758 0.381C12.573 9.25496 14 7.35743 14 5.125 14 2.29454 11.7055 0 8.875 0 6.04454 0 3.75 2.29454 3.75 5.125c0 0.84601 0.20548 1.64586 0.5698 2.35061 0.15851 0.30663 0.53558 0.42671 0.84221 0.26819 0.30663 -0.15851 0.4267 -0.53558 0.26819 -0.84221C5.15545 6.3701 5 5.76662 5 5.125Zm4.5 -2.75c0 -0.34518 -0.27982 -0.625 -0.625 -0.625s-0.625 0.27982 -0.625 0.625v0.13612c-0.75109 0.09109 -1.33301 0.73085 -1.33301 1.50652 0 0.71319 0.4966 1.33017 1.19333 1.48258l1.17848 0.25779c0.17195 0.03761 0.29487 0.19019 0.29487 0.36664 0 0.20741 -0.16819 0.37537 -0.375 0.37537h-0.32855L8.875 6.5l-0.00512 0.00002H8.542c-0.16231 0 -0.30205 -0.10345 -0.35383 -0.24995 -0.11503 -0.32545 -0.47211 -0.49602 -0.79755 -0.38099 -0.32545 0.11503 -0.49603 0.4721 -0.381 0.79755 0.19143 0.5416 0.66217 0.95235 1.24038 1.05724V7.875c0 0.34518 0.27982 0.625 0.625 0.625s0.625 -0.27982 0.625 -0.625v-0.15103c0.7586 -0.13737 1.3337 -0.80154 1.3337 -1.59932 0 -0.76343 -0.5315 -1.42453 -1.27777 -1.58776l-1.17849 -0.2578c-0.12287 -0.02688 -0.21045 -0.13568 -0.21045 -0.26145 0 -0.14781 0.11983 -0.26764 0.26764 -0.26764h0.43778l0.00259 0.00001 0.00259 -0.00001h0.33108c0.111 0 0.2101 0.04744 0.27966 0.12516 0.03267 0.03649 0.05794 0.07887 0.07417 0.12479 0.11502 0.32545 0.4721 0.49602 0.7975 0.381 0.3255 -0.11503 0.4961 -0.47211 0.381 -0.79756 -0.0715 -0.2025 -0.1817 -0.38601 -0.3213 -0.54188 -0.2353 -0.26298 -0.5566 -0.44954 -0.9197 -0.5154V2.375ZM5.64645 13.1464l1.05805 -1.058L5 10.3839l-1.05806 1.058c-0.24408 0.2441 -0.6398 0.2441 -0.88388 0L0.183058 8.56694c-0.2440774 -0.24408 -0.2440774 -0.6398 0 -0.88388 0.244078 -0.24408 0.639806 -0.24408 0.883882 0L3.5 10.1161l1.05806 -1.05804c0.24408 -0.24408 0.6398 -0.24408 0.88388 0l2.14645 2.14644 1.05806 -1.0581c0.143 -0.143 0.35805 -0.18573 0.54489 -0.1083 0.18684 0.0774 0.30866 0.2597 0.30866 0.4619v3c0 0.2761 -0.22386 0.5 -0.5 0.5H6c-0.20223 0 -0.38455 -0.1218 -0.46194 -0.3087 -0.07739 -0.1868 -0.03461 -0.4019 0.10839 -0.5449Z" | ||
clip-rule="evenodd" | ||
stroke-width="1" | ||
></path> | ||
</svg> |
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,59 @@ | ||
<a | ||
href="{{ route('pricing') }}#pricing" | ||
onclick="fathom.trackEvent('alert_click');" | ||
class="group relative z-30 flex flex-col items-center justify-center gap-x-3 gap-y-2.5 overflow-hidden bg-gradient-to-tl from-teal-100 to-gray-200/60 px-5 py-3 select-none 3xs:flex-row dark:from-sky-950/65 dark:to-gray-950/50" | ||
> | ||
{{-- Label --}} | ||
<div | ||
class="flex items-center justify-center gap-3 transition duration-200 ease-in-out will-change-transform group-hover:-translate-x-0.5" | ||
> | ||
{{-- Icon --}} | ||
<x-icons.banner.dollar-decrease | ||
class="h-5 shrink-0 dark:text-cyan-200" | ||
/> | ||
|
||
{{-- Text --}} | ||
<div> | ||
<style> | ||
.gradient-text { | ||
background-image: linear-gradient( | ||
90deg, | ||
var(--color-black) 0%, | ||
var(--color-teal-300) 35%, | ||
var(--color-black) 70% | ||
); | ||
background-size: 200% 100%; | ||
animation: shine 2s linear infinite; | ||
} | ||
.dark .gradient-text { | ||
background-image: linear-gradient( | ||
90deg, | ||
var(--color-white) 0%, | ||
var(--color-sky-300) 35%, | ||
var(--color-white) 70% | ||
); | ||
} | ||
@keyframes shine { | ||
from { | ||
background-position: 200% center; | ||
} | ||
to { | ||
background-position: 0% center; | ||
} | ||
} | ||
</style> | ||
<div | ||
class="gradient-text bg-clip-text tracking-tight text-pretty text-transparent sm:text-center" | ||
> | ||
Mobile <b>Pro</b> and <b>Max</b> licenses now up to <em>65% cheaper</em>! | ||
</div> | ||
</div> | ||
</div> | ||
|
||
{{-- Icon --}} | ||
<div | ||
class="transition duration-200 ease-in-out will-change-transform group-hover:translate-x-0.5" | ||
> | ||
<x-icons.right-arrow class="size-3 shrink-0" /> | ||
</div> | ||
</a> |
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.