Skip to content

Commit

Permalink
added offers component
Browse files Browse the repository at this point in the history
  • Loading branch information
dhruv8433 committed May 18, 2024
1 parent f977bd2 commit befc8aa
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 18 deletions.
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;

0 comments on commit befc8aa

Please sign in to comment.