From 305f9f8f615fbb3888de65522155ff8ba5f83d1f Mon Sep 17 00:00:00 2001
From: Vaishnavi-Zope <122734855+Vaishnavi-Zope@users.noreply.github.com>
Date: Sun, 24 Nov 2024 10:46:15 +0530
Subject: [PATCH 1/2] Tshirt listing page
---
Product Page/Tshirt listing | 164 ++++++++++++++++++++++++++++++++++++
1 file changed, 164 insertions(+)
create mode 100644 Product Page/Tshirt listing
diff --git a/Product Page/Tshirt listing b/Product Page/Tshirt listing
new file mode 100644
index 0000000..929414b
--- /dev/null
+++ b/Product Page/Tshirt listing
@@ -0,0 +1,164 @@
+import React, { useState } from 'react';
+
+const tshirtData = [
+ {
+ id: 1,
+ image: 'https://via.placeholder.com/800x400',
+ description: 'This is a cool t-shirt with a graphic design.',
+ color: 'Red',
+ size: 'M, L, XL',
+ price: '$20',
+ },
+ {
+ id: 2,
+ image: 'https://via.placeholder.com/800x400',
+ description: 'A comfortable t-shirt made from organic cotton.',
+ color: 'Blue',
+ size: 'S, M, L',
+ price: '$25',
+ },
+ {
+ id: 3,
+ image: 'https://via.placeholder.com/800x400',
+ description: 'A trendy t-shirt perfect for casual wear.',
+ color: 'Black',
+ size: 'M, L, XXL',
+ price: '$22',
+ },
+];
+
+const LandingPage = () => {
+ const [currentSlide, setCurrentSlide] = useState(0);
+
+ const handleNextSlide = () => {
+ setCurrentSlide((currentSlide + 1) % tshirtData.length);
+ };
+
+ const handlePrevSlide = () => {
+ setCurrentSlide((currentSlide - 1 + tshirtData.length) % tshirtData.length);
+ };
+
+ return (
+
+ {/* Heading */}
+
Introduction to Trending T-Shirts
+
+ {/* Slider with Arrow Buttons */}
+
+ {/* Image */}
+

+
+ {/* Left Arrow */}
+
+
+ {/* Right Arrow */}
+
+
+
+ {/* Description */}
+
+ {tshirtData[currentSlide].description}
+
+
+ {/* Table */}
+
+
+
+ | Color |
+ {tshirtData[currentSlide].color} |
+
+
+ | Size |
+ {tshirtData[currentSlide].size} |
+
+
+ | Price |
+ {tshirtData[currentSlide].price} |
+
+
+
+
+ );
+};
+
+// Styling for table cells
+const tableHeaderStyle = {
+ padding: '10px',
+ backgroundColor: '#333',
+ color: '#fff',
+ fontWeight: 'bold',
+ textAlign: 'left',
+ width: '40%',
+};
+
+const tableCellStyle = {
+ padding: '10px',
+ textAlign: 'left',
+ border: '1px solid #ddd',
+ width: '60%',
+};
+
+export default LandingPage;
From 62335faeab9df70625406c6cd4c43a472ebe5d31 Mon Sep 17 00:00:00 2001
From: Vaishnavi-Zope <122734855+Vaishnavi-Zope@users.noreply.github.com>
Date: Sun, 24 Nov 2024 12:15:28 +0530
Subject: [PATCH 2/2] Delete Product Page directory
---
Product Page/Tshirt listing | 164 ------------------------------------
1 file changed, 164 deletions(-)
delete mode 100644 Product Page/Tshirt listing
diff --git a/Product Page/Tshirt listing b/Product Page/Tshirt listing
deleted file mode 100644
index 929414b..0000000
--- a/Product Page/Tshirt listing
+++ /dev/null
@@ -1,164 +0,0 @@
-import React, { useState } from 'react';
-
-const tshirtData = [
- {
- id: 1,
- image: 'https://via.placeholder.com/800x400',
- description: 'This is a cool t-shirt with a graphic design.',
- color: 'Red',
- size: 'M, L, XL',
- price: '$20',
- },
- {
- id: 2,
- image: 'https://via.placeholder.com/800x400',
- description: 'A comfortable t-shirt made from organic cotton.',
- color: 'Blue',
- size: 'S, M, L',
- price: '$25',
- },
- {
- id: 3,
- image: 'https://via.placeholder.com/800x400',
- description: 'A trendy t-shirt perfect for casual wear.',
- color: 'Black',
- size: 'M, L, XXL',
- price: '$22',
- },
-];
-
-const LandingPage = () => {
- const [currentSlide, setCurrentSlide] = useState(0);
-
- const handleNextSlide = () => {
- setCurrentSlide((currentSlide + 1) % tshirtData.length);
- };
-
- const handlePrevSlide = () => {
- setCurrentSlide((currentSlide - 1 + tshirtData.length) % tshirtData.length);
- };
-
- return (
-
- {/* Heading */}
-
Introduction to Trending T-Shirts
-
- {/* Slider with Arrow Buttons */}
-
- {/* Image */}
-

-
- {/* Left Arrow */}
-
-
- {/* Right Arrow */}
-
-
-
- {/* Description */}
-
- {tshirtData[currentSlide].description}
-
-
- {/* Table */}
-
-
-
- | Color |
- {tshirtData[currentSlide].color} |
-
-
- | Size |
- {tshirtData[currentSlide].size} |
-
-
- | Price |
- {tshirtData[currentSlide].price} |
-
-
-
-
- );
-};
-
-// Styling for table cells
-const tableHeaderStyle = {
- padding: '10px',
- backgroundColor: '#333',
- color: '#fff',
- fontWeight: 'bold',
- textAlign: 'left',
- width: '40%',
-};
-
-const tableCellStyle = {
- padding: '10px',
- textAlign: 'left',
- border: '1px solid #ddd',
- width: '60%',
-};
-
-export default LandingPage;