-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a0b7bb1
commit 9372096
Showing
5 changed files
with
79 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
import React from 'react' | ||
import { AiFillStar, AiOutlineStar } from 'react-icons/ai' | ||
|
||
const Home = () => { | ||
return ( | ||
<> | ||
<section> | ||
<p className="title">All Products:</p> | ||
</section> | ||
<img className="index-first-bg" src="/hero-gradient.svg" alt="" /> | ||
<main className="main-index"> | ||
<div className="card"> | ||
<img | ||
src="https://fakestoreapi.com/img/81fPKd-2AYL._AC_SL1500_.jpg" | ||
alt="" | ||
/> | ||
<main> | ||
<p>Test Title ...</p> | ||
<div className="card-details"> | ||
<div> | ||
<AiOutlineStar style={{ color: 'orange' }} /> | ||
<AiOutlineStar style={{ color: 'orange' }} /> | ||
<AiOutlineStar style={{ color: 'orange' }} /> | ||
<AiOutlineStar style={{ color: 'orange' }} /> | ||
<AiOutlineStar style={{ color: 'orange' }} /> | ||
</div> | ||
<p>231$</p> | ||
</div> | ||
<button>Add to Basket</button> | ||
</main> | ||
</div> | ||
<div className="card"> | ||
<img | ||
src="https://fakestoreapi.com/img/81fPKd-2AYL._AC_SL1500_.jpg" | ||
alt="" | ||
/> | ||
<main> | ||
<p>Test Title ...</p> | ||
<div className="card-details"> | ||
<div> | ||
<AiFillStar style={{ color: 'orange' }} /> | ||
<AiFillStar style={{ color: 'orange' }} /> | ||
<AiFillStar style={{ color: 'orange' }} /> | ||
<AiFillStar style={{ color: 'orange' }} /> | ||
<AiFillStar style={{ color: 'orange' }} /> | ||
</div> | ||
<p>231$</p> | ||
</div> | ||
<button>Add to Basket</button> | ||
</main> | ||
</div> | ||
</main> | ||
</> | ||
) | ||
} | ||
|
||
export default Home |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,14 @@ | ||
import React from "react"; | ||
import ReactDOM from "react-dom/client"; | ||
import App from "./App"; | ||
import Cart from "./Pages/Cart"; | ||
import React from 'react' | ||
import ReactDOM from 'react-dom/client' | ||
import App from './App' | ||
import { BrowserRouter } from 'react-router-dom' | ||
import Cart from './Pages/Cart' | ||
|
||
ReactDOM.createRoot(document.getElementById("root") as HTMLElement).render( | ||
ReactDOM.createRoot(document.getElementById('root') as HTMLElement).render( | ||
<React.StrictMode> | ||
<App /> | ||
<BrowserRouter> | ||
<App /> | ||
</BrowserRouter> | ||
{/* <Cart /> */} | ||
</React.StrictMode> | ||
); | ||
</React.StrictMode>, | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters