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

Added route #309

Merged
merged 4 commits into from
May 19, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
added offers component
  • Loading branch information
dhruv8433 committed May 18, 2024
commit befc8aa715bcdd0d8ad1610f81b81a4fc95ac7a9
39 changes: 21 additions & 18 deletions src/Components/Offers/Offers.jsx
Original file line number Diff line number Diff line change
@@ -1,23 +1,26 @@
import React, { useContext } from 'react'
import './Offers.css'
import exclusive_image from '../Assets/exclusive_image.png'
import { ShopContext } from '../../Context/ShopContext'
import React, { useContext } from "react";
import "./Offers.css";
import exclusive_image from "../Assets/exclusive_image.png";
import { ShopContext } from "../../Context/ShopContext";
import { Link } from "react-router-dom";

const Offers = () => {
const {theme}=useContext(ShopContext);
const { theme } = useContext(ShopContext);
return (
<div className='offers'>
<div className="offers-left">
<h1 className={`h1_${theme}`}>Exclusive</h1>
<h1 className={`h1_${theme}`}>Offers For You</h1>
<p className={`p_${theme}`}>ONLY ON BEST SELLERS PRODUCTS</p>
<button>Check Now</button>
<Link className="link" to={`/offers`}>
<div className="offers">
<div className="offers-left">
<h1 className={`h1_${theme}`}>Exclusive</h1>
<h1 className={`h1_${theme}`}>Offers For You</h1>
<p className={`p_${theme}`}>ONLY ON BEST SELLERS PRODUCTS</p>
<button>Check Now</button>
</div>
<div className="offers-right">
<img src={exclusive_image} alt="" />
</div>
</div>
<div className="offers-right">
<img src={exclusive_image} alt="" />
</div>
</div>
)
}
</Link>
);
};

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

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

export default Offers;
Loading