Skip to content

Commit

Permalink
feat(explore): implemented header container
Browse files Browse the repository at this point in the history
  • Loading branch information
senthil-athiban committed Aug 8, 2023
1 parent af8e646 commit 02e7889
Show file tree
Hide file tree
Showing 11 changed files with 73 additions and 113 deletions.
Binary file added src/assets/image/art.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/image/designingart.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/image/explorecommunity.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/image/ff3d.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/image/minus.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 10 additions & 0 deletions src/assets/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,17 @@ import started from "../assets/image/started.png";
import setting from "../assets/image/setting.png";
import email from "../assets/image/email.png";
import tshirt from "../assets/image/tshirt.gif";
import explorecommunity from "../assets/image/explorecommunity.png";
import minus from "../assets/image/minus.png";
import art from "../assets/image/art.png";
import ff3d from "../assets/image/ff3d.png";
import designingart from "../assets/image/designingart.png";
export {
designingart,
art,
ff3d,
minus,
explorecommunity,
tshirt,
email,
tutorial,
Expand Down
7 changes: 7 additions & 0 deletions src/components/ExploreCommunity/index.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import React from "react";

const ExploreCommunity = () => {
return <div>index</div>;
};

export default ExploreCommunity;
7 changes: 7 additions & 0 deletions src/components/ExploreCustomized/index.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import React from "react";

const ExploreCustomized = () => {
return <div>index</div>;
};

export default ExploreCustomized;
7 changes: 7 additions & 0 deletions src/components/ExploreWork/index.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import React from "react";

const ExploreWork = () => {
return <div>index</div>;
};

export default ExploreWork;
12 changes: 12 additions & 0 deletions src/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,18 @@
background-repeat: no-repeat;
animation: bg-spin 3s linear infinite;
}
.art {
--border-size: 3px;
--border-angle: 0turn;
background-image: conic-gradient(from var(--border-angle), #213, #112 50%, #213),
conic-gradient(from var(--border-angle), transparent 20%, #08f, #f03);
background-size: calc(100% - (var(--border-size) * 2))
calc(100% - (var(--border-size) * 2)),
cover;
background-position: center center;
background-repeat: no-repeat;
animation: bg-spin 3s linear infinite;
}
.helpbox {
background-color: white;
box-shadow: 0px 0px 10px rgba(179, 0, 255, 0.5);
Expand Down
143 changes: 30 additions & 113 deletions src/pages/Explore/Explore.jsx
Original file line number Diff line number Diff line change
@@ -1,123 +1,40 @@
import React from "react";
import { tshirt } from "../../assets";

const Explore = () => {
const featuredDesigns = [
{
id: 1,
imageSrc: "designs/design1.jpg",
title: "Design 1",
description:
"Check out this amazing design with vibrant colors and eye-catching graphics.",
},
// Add more featured designs as needed...
];

// Sample data for trending designs
const trendingDesigns = [
{
id: 1,
imageSrc: "designs/trending1.jpg",
title: "Trending Design 1",
},
// Add more trending designs as needed...
];

// Sample data for user-submitted designs
const userDesigns = [
{
id: 1,
imageSrc: "designs/userdesign1.jpg",
title: "Design 1",
submittedBy: "JohnDoe",
},
// Add more user-submitted designs as needed...
];

return (
<div className="bg-black">
<section className="container mx-auto py-8">
{/* Section to showcase featured designs */}
<div className="mb-8">
<h2 className="text-2xl font-bold mb-4">Featured Designs</h2>
{/* Display a grid of featured t-shirt designs */}
<div className="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4">
{/* Map through the featured designs and display each design card */}
{featuredDesigns.map((design) => (
<div key={design.id} className="bg-white p-4 rounded shadow">
{/* Display the t-shirt design image */}
<img
src={design.imageSrc}
alt={design.title}
className="w-full h-40 object-cover mb-2 rounded"
/>
{/* Show the name or title of the design */}
<h3 className="text-lg font-semibold mb-1">{design.title}</h3>
{/* Provide a brief description of the design */}
<p className="text-sm text-gray-600">{design.description}</p>
{/* Add a link to view more details about the design */}
<a
href={`/designs/${design.id}`}
className="text-blue-500 hover:underline block mt-2"
>
View Details
</a>
</div>
))}
</div>
</div>

{/* Section to display trending designs */}
<div className="mb-8">
<h2 className="text-2xl font-bold mb-4">Trending Designs</h2>
{/* Display a carousel or slideshow of trending t-shirt designs */}
<div className="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4">
{/* Map through the trending designs and display each design slide */}
{trendingDesigns.map((design) => (
<div key={design.id} className="bg-white p-4 rounded shadow">
{/* Display the t-shirt design image */}
<img
src={design.imageSrc}
alt={design.title}
className="w-full h-40 object-cover mb-2 rounded"
/>
{/* Show the name or title of the design */}
<h3 className="text-lg font-semibold mb-1">{design.title}</h3>
</div>
))}
<div className="w-full h-[100vh]">
<div className="bg-[url(/explorebg.jpg)] w-[100%] h-[80%] mt-6">
<div className="flex">
<div className="ml-20 mt-10 w-1/2">
<h1 className="mt-5 text-heading font-semibold min-[600px]:text-5xl max-[600px]:text-4xl min-[600px]:leading-normal max-[600px]:leading-tight max-[600px]:text-center ">
<span className="font-semibold text-7xl ss:text-[72px] leading-[100px] text-transparent bg-clip-text text-[#D8BFD8] bg-gradient-to-r from-violet-600 to-pink-600">
Explore Our
</span>{" "}
<br className="sm:block hidden" />
<h1 className="font-semibold text-7xl ss:text-[72px] leading-[100px] ss:leading-[100.8px] text-indigo-500 mb-5 mt-5 ">
High Quality
</h1>
<span className="font-semibold text-7xl ss:text-[72px] leading-[75px] text-transparent bg-clip-text text-[#D8BFD8] bg-gradient-to-r from-violet-600 to-pink-600">
Collections
</span>
</h1>
<button className="rounded-full border-2 w-48 p-3 bg-gradient-to-r from-pink-500 to-violet-500 mt-10">
Explore {" > "}
</button>
<h1 className="mt-10 text-gray-400">Over 400+ members</h1>
</div>
</div>

{/* Section for user-submitted designs */}
<div>
<h2 className="text-2xl font-bold mb-4">User-Submitted Designs</h2>
{/* Display a grid of user-submitted t-shirt designs */}
<div className="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4">
{/* Map through the user-submitted designs and display each design card */}
{userDesigns.map((design) => (
<div key={design.id} className="bg-white p-4 rounded shadow">
{/* Display the t-shirt design image */}
<img
src={design.imageSrc}
alt={design.title}
className="w-full h-40 object-cover mb-2 rounded"
/>
{/* Show the name or title of the design and the name of the user who submitted it */}
<h3 className="text-lg font-semibold mb-1">{design.title}</h3>
<p className="text-sm text-gray-600">
Submitted by: {design.submittedBy}
</p>
{/* Add a link to view more details about the design */}
<a
href={`/designs/${design.id}`}
className="text-blue-500 hover:underline block mt-2"
>
View Details
</a>
</div>
))}
<div className="w-1/2">
<div className="">
<img
src={tshirt}
alt=""
className="w-[60%] h-[80%] mt-5 border-2 border-skyblue-300 p-5"
/>
</div>
</div>
</div>
</section>
</div>
</div>
);
};
Expand Down

0 comments on commit 02e7889

Please sign in to comment.