Skip to content

Commit

Permalink
fix: promo banner
Browse files Browse the repository at this point in the history
  • Loading branch information
ayushsharma82 committed Nov 28, 2024
1 parent 8e40e36 commit 54c2668
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions pages/_document.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { Head, Html, Main, NextScript } from "next/document";

const promo_banner = [
"Black Friday 2024 Sale is Live!",
"Flat 33% off on Advantage Bundle",
"Upgrade Now at Lowest Price Ever!"
"Black Friday Deals Are Live!",
"Enjoy Up to 33% Off!",
"Limited Time Offer Only."
];

export default function Document() {
Expand All @@ -16,7 +16,7 @@ export default function Document() {
<div className="relative flex overflow-x-hidden text-zinc-200 font-semibold text-sm uppercase bg-indigo-600">
<div className="py-2 animate-marquee whitespace-nowrap">
{
[1,2,3].map((_, i) => (
[1,2].map((_, i) => (
<span key={'pb-'+i} className='mx-6'>
{
promo_banner.map((item, i) => (
Expand All @@ -30,7 +30,7 @@ export default function Document() {

<div className="absolute top-0 py-2 animate-marquee2 whitespace-nowrap">
{
[1, 2, 3].map((_, i) => (
[1, 2].map((_, i) => (
<span key={'pba-' + i} className='mx-6'>
{
promo_banner.map((item, i) => (
Expand Down

0 comments on commit 54c2668

Please sign in to comment.