Skip to content

Commit

Permalink
handicraft page ui complete
Browse files Browse the repository at this point in the history
  • Loading branch information
Suv05 committed Oct 3, 2024
1 parent 2565918 commit f23cfae
Show file tree
Hide file tree
Showing 2 changed files with 226 additions and 0 deletions.
107 changes: 107 additions & 0 deletions src/app/handicrafts/page.module.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,107 @@
.card-container{
width: 95%;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}

.page-header {
background-color: #f5f5f5;
padding: 2rem 0;
}

.hero-section {
display: flex;
justify-content: space-between;
align-items: center;
max-width: 1200px;
margin: 0 auto;
padding: 0 2rem;
}

.text-container {
flex: 1;
}

.text-container h1 {
font-size: 3rem;
color: #333;
margin-bottom: 0.5rem;
}

.text-container p {
font-size: 1.2rem;
color: #666;
}

.img-container {
flex: 1;
display: flex;
justify-content: flex-end;
}

.img-container img {
border-radius: 10px;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.featured-crafts {
max-width: 1200px;
margin: 2rem auto;
padding: 0 2rem;
}

.featured-crafts h2 {
font-size: 2rem;
color: #333;
margin-bottom: 1rem;
text-align: center;
}

.craft-icons {
display: flex;
justify-content: space-around;
flex-wrap: wrap;
}

.craft-item {
display: flex;
flex-direction: column;
align-items: center;
margin: 1rem;
}

.craft-item img {
margin-bottom: 0.5rem;
}

.craft-item span {
font-size: 1rem;
color: #666;
}

/* .card-container {
max-width: 1200px;
margin: 2rem auto;
padding: 0 2rem;
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 2rem;
} */

@media (max-width: 768px) {
.hero-section {
flex-direction: column;
text-align: center;
}

.img-container {
justify-content: center;
margin-top: 2rem;
}

.craft-icons {
justify-content: center;
}
}
119 changes: 119 additions & 0 deletions src/app/handicrafts/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,119 @@
import styles from "./page.module.css";
import Image from "next/image";
import Card from "@/components/ui/Card";
import handicrafthero from "/public/handicrafthero.jpg";

// Ensure images are in the public folder (e.g., public/aipan.jpg)
export default function handicrafts() {
return (
<>
<header className={styles["page-header"]}>
<section className={styles["hero-section"]}>
<div className={styles["text-container"]}>
<h1>Handicrafts</h1>
<p>DISCOVER THE ARTISTRY OF UTTARAKHAND</p>
</div>
<div className={styles["img-container"]}>
<Image
src={handicrafthero}
alt="HANDICRAFTS"
width="368"
height="400"
loading={"eager"}
priority={true}
/>
</div>
</section>

<section className={styles["featured-crafts"]}>
<h2>Featured Crafts</h2>
<div className={styles["craft-icons"]}>
<div className={styles["craft-item"]}>
<Image
src="/wood.jpg"
alt="Woodcarving"
width={64}
height={64}
/>
<span>Woodcarving</span>
</div>
<div className={styles["craft-item"]}>
<Image
src="/tamta.jpg"
alt="Textile Weaving"
width={64}
height={64}
/>
<span>Copper Wire</span>
</div>
<div className={styles["craft-item"]}>
<Image
src="/ringal.jpg"
alt="Metal Crafts"
width={64}
height={64}
/>
<span>Ringal Crafts</span>
</div>
<div className={styles["craft-item"]}>
<Image
src="/AIPAN.jpg"
alt="Pottery"
width={64}
height={64}
/>
<span>Aipan</span>
</div>
</div>
</section>
</header>

<div className={styles["card-container"]}>
<Card
title={"AIPAN ART"}
subTitle={"INTRICATE DESIGNS · KUMAON REGION"}
description={
"Aipan is a traditional folk art form originating from the Kumaon region of Uttarakhand. These intricate designs are created on floors and walls during festivals, religious ceremonies, and special occasions. The patterns, made with rice paste, are believed to bring prosperity and happiness to households. The vibrant red background and white motifs symbolize purity and devotion."
}
image={"/AIPAN.jpg"} // Public folder image
/>

<Card
title={"WOOD CARVING"}
subTitle={"TRADITIONAL CRAFT · GARHWAL REGION"}
description={
"The art of wood carving in Uttarakhand is a centuries-old tradition, particularly prominent in the Garhwal region. Artisans skillfully carve intricate designs on doors, windows, and temples, showcasing the region’s cultural heritage. These wooden artifacts are known for their precision and beauty, making them popular both for home décor and religious use."
}
image={"/wood.jpg"} // Public folder image
/>

<Card
title={"RINGAL CRAFT"}
subTitle={"BAMBOO WEAVING · KUMAON & GARHWAL"}
description={
"Ringal craft is a form of bamboo weaving unique to the hills of Uttarakhand. Artisans create everyday utility items like baskets, mats, and furniture using the ringal bamboo plant. The craft not only supports the local economy but also promotes eco-friendly practices. The woven items are durable, functional, and environmentally sustainable."
}
image={"/ringal.jpg"} // Public folder image
/>

<Card
title={"WOOLEN HANDICRAFTS"}
subTitle={"HANDWOVEN · HIMALAYAN REGIONS"}
description={
"Uttarakhand’s woolen handicrafts are famous for their warmth and fine quality. From shawls and scarves to woolen carpets and blankets, these products are handwoven by local women in the Himalayan regions. The use of traditional looms and natural dyes adds to the authenticity of these crafts, making them highly valued in both local and international markets."
}
image={"/woolen.jpg"} // Public folder image
/>

<Card
title={"COPPERWARE"}
subTitle={"TRADITIONAL METALWORK · KUMAON"}
description={
"Copperware from Uttarakhand, particularly from the Kumaon region, is known for its craftsmanship and utility. Artisans create beautiful copper pots, utensils, and decorative items that are both functional and artistic. The copperware is believed to have health benefits and is widely used in households and religious ceremonies across the state."
}
image={"/tamta.jpg"} // Public folder image
/>
</div>
</>
);
}

0 comments on commit f23cfae

Please sign in to comment.