Skip to content
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

[196] Add infinite sliding left discount banner #241

Closed
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Apply spacing and font styling
rodrigo-capyba committed May 20, 2023
commit 025b6867c21cfec215e12ccee36e264db96c7500
2 changes: 1 addition & 1 deletion .frsh/tailwind.css

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions sections/DiscountBanner/DiscountBanner.capyvarias.tsx
Original file line number Diff line number Diff line change
@@ -9,11 +9,11 @@ export default function DiscountBanner(
return (
<div class="bg-primary w-full">
<div
class="flex gap-4 w-max animate-[slideleft_10s_linear_infinite]"
class="flex gap-10 w-max text-sm animate-[slideleft_10s_linear_infinite]"
style={`animation-duration: ${slideTimeInSeconds}s;`}
>
{messages.map((message, index) => (
<div class="pt-1 pb-1 md:pt-2 md:pb-2 flex gap-4 items-center text-primary-content group">
<div class="pt-2 pb-2 lg:pt-4 lg:pb-4 flex gap-10 items-center text-primary-content group">
<p>{message}</p>
<span class="bg-primary-content h-1 w-1 rounded group-last:hidden">
</span>