Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Activating Footer along with Icons and Enhancing User Experience with functional links #106

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 11 additions & 28 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

113 changes: 65 additions & 48 deletions src/Components/Footer.jsx
Original file line number Diff line number Diff line change
@@ -1,64 +1,81 @@
import React from "react";
import instaIcon from "../assets/instagram_icon.png";
import instaIcon from "../assets/instagram_icon.png";
import pintesterIcon from "../assets/pintester_icon.png";
import whatsappIcon from "../assets/whatsapp_icon.png";

const Footer = () => {
return (
<>
<div className="bg-gradient-to-b from-purple-100 to-white py-12 flex items-center justify-between">
<div className="">
<h2 className="text-4xl font-bold text-orange-400 ml-5">Shopy</h2>
<p className="text-gray-400 ml-5">Connecting people through fashion.</p>
<footer className="footer bg-gray-800 text-white py-12 flex flex-col items-center justify-between">
<div className="flex flex-col items-center space-y-4">
<div className="text-center">
<h2 className="text-4xl font-bold text-orange-400">Shopy</h2>
<p className="text-gray-400 text-xl">Connecting people through fashion.</p>
</div>

<div className="max-w-2xl text-center mb-3">
<h2 className="text-3xl font-bold mb-2">Subscribe to Our Newsletter</h2>
<p className="text-gray-600 mb-2 ">
Get updates on the latest collections, promotions, and more.
</p>
<div className="flex justify-center mb-4">
<input
type="email"
placeholder="Your email address"
className="w-1/2 border p-2 rounded-l-full focus:outline-none"
/>
<button className="bg-black text-white px-6 hover:bg-blue-600 focus:outline-none rounded-r-full">
Subscribe
</button>
<div className="max-w-md flex justify-center">
<div className="flex flex-col items-center space-y-2">
{/* Nested flexbox for layout */}
<h2 className="text-3xl font-bold text-center mb-2">Subscribe to Our Newsletter</h2>
<div className="flex justify-center mb-4">
<input
type="email"
placeholder="Your email address"
className="w-full border p-2 rounded-l-full focus:outline-none"
/>
<button className="bg-black text-white px-6 hover:bg-blue-600 focus:outline-none rounded-r-full">
Subscribe
</button>
</div>
</div>
</div>

{/* Shopy section */}

{/* Copyright section */}
<div className="flex items-center justify-center space-x-4 mb-4">
<div className="flex justify-center space-x-4">
<p>Follow us on</p>
<img src={instaIcon} alt="Instagram" />
<img src={whatsappIcon} alt="WhatsApp" />
<img src={pintesterIcon} alt="Pinterest" />
<img
src={instaIcon}
alt="Instagram"
style={{
display: "inline-block",
filter: "invert(100%) hue-rotate(180deg)",
padding: "3px",
borderRadius: "50%",
transition: "all 0.3s ease-in-out",
}}
/>
<img
src={whatsappIcon}
alt="WhatsApp"
style={{
display: "inline-block",
filter: "invert(100%) hue-rotate(180deg)",
padding: "3px",
borderRadius: "50%",
transition: "all 0.3s ease-in-out",
}}
/>
<img
src={pintesterIcon}
alt="Pinterest"
style={{
display: "inline-block",
filter: "invert(100%) hue-rotate(180deg)",
padding: "3px",
borderRadius: "50%",
transition: "all 0.3s ease-in-out",
}}
/>
</div>
</div>
<div className="flex items-center justify-center space-x-10 justify-evenly">
<button className="hover:bg-orange-400 hover:text-white focus:outline-none">
<a href="#" className="block p-2">Home</a>
</button>
<button className="hover:bg-orange-400 hover:text-white focus:outline-none">
<a href="#" className="block p-2">Products</a>
</button>
<button className="hover:bg-orange-400 hover:text-white focus:outline-none">
<a href="#" className="block p-2">About Us</a>
</button>
<button className="hover:bg-orange-400 hover:text-white focus:outline-none">
<a href="#" className="block p-2">Contact</a>
</button>
</div>
<hr className="border-black" />
<div className="">
<p className="text-sm text-black ml-5 mt-2 text-center">&copy; {new Date().getFullYear()} Shopy. All rights reserved.</p>
</div>
</>
<hr className="border-white" />
<div className="text-center text-sm text-white mt-2">&copy; {new Date().getFullYear()} Shopy. All rights reserved.</div>
</footer>
);
};

export default Footer;








151 changes: 66 additions & 85 deletions src/Components/Newsletter.jsx
Original file line number Diff line number Diff line change
@@ -1,100 +1,81 @@
import React from "react";
import instaIcon from "../assets/instagram_icon.png";
import instaIcon from "../assets/instagram_icon.png";
import pintesterIcon from "../assets/pintester_icon.png";
import whatsappIcon from "../assets/whatsapp_icon.png";


const NewsletterSection = () => {
return (
<>
<div className="bg-gradient-to-b from-purple-100 to-white py-12 flex items-center justify-between">

<div className="">
<h2 className="text-4xl font-bold text-orange-400 ml-5">Shopy</h2>
<p className="text-gray-400 ml-5">Connecting people through fashion.</p>
<footer className="footer bg-gray-800 text-white py-12 flex flex-col items-center justify-between">
<div className="flex flex-col items-center space-y-4">
<div className="text-center">
<h2 className="text-4xl font-bold text-orange-400">Shopy</h2>
<p className="text-gray-400 text-xl">Connecting people through fashion.</p>
</div>

<div className="max-w-2xl text-center mb-3">
<h2 className="text-3xl font-bold mb-2">Subscribe to Our Newsletter</h2>
<p className="text-gray-600 mb-2 ">
Get updates on the latest collections, promotions, and more.
</p>
<div className="flex justify-center mb-4">
<input
type="email"
placeholder="Your email address"
className="w-1/2 border p-2 rounded-l-full focus:outline-none"
/>
<button className="bg-black text-white px-6 hover:bg-blue-600 focus:outline-none rounded-r-full">
Subscribe
</button>
<div className="max-w-md flex justify-center">
<div className="flex flex-col items-center space-y-2">
{/* Nested flexbox for layout */}
<h2 className="text-3xl font-bold text-center mb-2">Subscribe to Our Newsletter</h2>
<div className="flex justify-center mb-4">
<input
type="email"
placeholder="Your email address"
className="w-full border p-2 rounded-l-full focus:outline-none"
/>
<button className="bg-black text-white px-6 hover:bg-blue-600 focus:outline-none rounded-r-full">
Subscribe
</button>
</div>
</div>
</div>
<div className="flex justify-center space-x-4">
<p>Follow us on</p>
<img
src={instaIcon}
alt="Instagram"
style={{
display: "inline-block",
filter: "invert(100%) hue-rotate(180deg)",
padding: "3px",
borderRadius: "50%",
transition: "all 0.3s ease-in-out",
}}
/>
<img
src={whatsappIcon}
alt="WhatsApp"
style={{
display: "inline-block",
filter: "invert(100%) hue-rotate(180deg)",
padding: "3px",
borderRadius: "50%",
transition: "all 0.3s ease-in-out",
}}
/>
<img
src={pintesterIcon}
alt="Pinterest"
style={{
display: "inline-block",
filter: "invert(100%) hue-rotate(180deg)",
padding: "3px",
borderRadius: "50%",
transition: "all 0.3s ease-in-out",
}}
/>
</div>

</div>

{/* Shopy section */}


{/* Copyright section */}
<div className="flex items-center justify-center space-x-4 mb-4">
<p>Follow us on</p>
<img src={instaIcon} alt="Instagram" />
<img src={whatsappIcon} alt="WhatsApp" />
<img src={pintesterIcon} alt="Pinterest" />
</div>

</div>
<div className="flex items-center justify-center space-x-10 justify-evenly">
<button className="hover:bg-orange-400 hover:text-white focus:outline-none">
<a href="#" className="block p-2">Home</a>
</button>
<button className="hover:bg-orange-400 hover:text-white focus:outline-none">
<a href="#" className="block p-2">Products</a>
</button>
<button className="hover:bg-orange-400 hover:text-white focus:outline-none">
<a href="#" className="block p-2">About Us</a>
</button>
<button className="hover:bg-orange-400 hover:text-white focus:outline-none">
<a href="#" className="block p-2">Contact</a>
</button>
</div>
<hr className="border-black" />
<div className="">
<p className="text-sm text-black ml-5 mt-2 text-center">&copy; {new Date().getFullYear()} Shopy. All rights reserved.</p>
</div>
</>
<hr className="border-white" />
<div className="text-center text-sm text-white mt-2">&copy; {new Date().getFullYear()} Shopy. All rights reserved.</div>
</footer>
);
};

export default NewsletterSection;


// <div className="">
// <div className="text-center">
// <h2 className="text-2xl font-bold text-orange-400">Shopy</h2>
// <p className="text-gray-400">Connecting people through fashion.</p>
// </div>
// </div>

// {/* Navigation links */}
// <div className="flex items-center justify-center space-x-10 mb-8">
// <a href="#" className="hover:text-gray-400">
// Home
// </a>
// <a href="#" className="hover:text-gray-400">
// Products
// </a>
// <a href="#" className="hover:text-gray-400">
// About Us
// </a>
// <a href="#" className="hover:text-gray-400">
// Contact
// </a>
// </div>

// {/* Social media icons */}
// <div className="flex items-center justify-center space-x-10 mb-8">
// <img src={instaIcon} alt="Instagram" />
// <img src={whatsappIcon} alt="WhatsApp" />
// <img src={pintesterIcon} alt="Pinterest" />
// </div>