From 059f67324893d1fce522bbca92878aa89ca46baf Mon Sep 17 00:00:00 2001 From: neharika-garg-20 Date: Sun, 27 Oct 2024 23:06:07 +0530 Subject: [PATCH 1/5] ribbon responsiveness added --- components/ribbons.js | 35 ++++++++++++++++++++++------------- pages/index.js | 31 +++++++++++++++++++++++++++++-- styles/globals.scss | 11 +++++++++++ 3 files changed, 62 insertions(+), 15 deletions(-) diff --git a/components/ribbons.js b/components/ribbons.js index 59609a8..2382800 100644 --- a/components/ribbons.js +++ b/components/ribbons.js @@ -6,27 +6,27 @@ const Ribbon = () => { const frames = [ { imageSrc: "https://s3.ap-south-1.amazonaws.com/townscript-production/images/ST1722320782225STENDf3691766-15cd-4630-a786-0edfbeba48cd.jpg", - text: "20th TO 22nd SEPT 2024" + }, { imageSrc: "https://s3.ap-south-1.amazonaws.com/townscript-production/images/ST1722320782225STENDf3691766-15cd-4630-a786-0edfbeba48cd.jpg", - text: "20th TO 22nd SEPT 2024" + }, { imageSrc: "https://s3.ap-south-1.amazonaws.com/townscript-production/images/ST1722320782225STENDf3691766-15cd-4630-a786-0edfbeba48cd.jpg", - text: "20th TO 22nd SEPT 2024" + }, { imageSrc: "https://s3.ap-south-1.amazonaws.com/townscript-production/images/ST1722320782225STENDf3691766-15cd-4630-a786-0edfbeba48cd.jpg", - text: "20th TO 22nd SEPT 2024" + }, { imageSrc: "https://s3.ap-south-1.amazonaws.com/townscript-production/images/ST1722320782225STENDf3691766-15cd-4630-a786-0edfbeba48cd.jpg", - text: "20th TO 22nd SEPT 2024" + }, { imageSrc: "https://s3.ap-south-1.amazonaws.com/townscript-production/images/ST1722320782225STENDf3691766-15cd-4630-a786-0edfbeba48cd.jpg", - text: "20th TO 22nd SEPT 2024" + } ]; @@ -34,7 +34,7 @@ const Ribbon = () => { const repeatedFrames = [...frames, ...frames]; return ( -
+
{repeatedFrames.map((frame, index) => (
-
+
Event - +
+ +
20th
+
TO
+
22nd
+
SEPT
+
2024
+
))} @@ -87,3 +95,4 @@ const Ribbon = () => { }; export default Ribbon; + diff --git a/pages/index.js b/pages/index.js index e4514fe..3a9fa89 100644 --- a/pages/index.js +++ b/pages/index.js @@ -10,7 +10,9 @@ import "../styles/globals.scss"; import React from "react"; import Summit from "../public/summit.png"; import Ribbon from "../components/ribbons" + export default function Home() { + return ( <> @@ -48,10 +50,21 @@ export default function Home() { cardType: "summary_large_image", }} /> + +