-
Notifications
You must be signed in to change notification settings - Fork 374
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1348 from harshita1611/Harshita
[New Vigy Bag] home page done with animations added
- Loading branch information
Showing
6 changed files
with
104 additions
and
56 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
This file was deleted.
Oops, something went wrong.
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,40 @@ | ||
import React from 'react'; | ||
import Navbar from '../../components/Navbar/Navbar'; | ||
import background from '../../assets/images/background.png'; | ||
import './typewriter.css'; | ||
|
||
function Home() { | ||
return ( | ||
<div | ||
style={{ | ||
backgroundImage: `url(${background})`, | ||
backgroundSize: 'cover', | ||
height: '100vh', | ||
position: 'relative', | ||
}}> | ||
<div className="container mx-auto my-auto sm:py-24 leading-snug "> | ||
<div className="text-left"> | ||
<div className="typewriter"> | ||
<h1 className="text-4xl sm:text-6xl font-bold tracking-widest"> | ||
Welcome to <span className="text-green-900">VigyBag!</span> | ||
</h1> | ||
</div> | ||
<h2 className="text-3xl sm:text-6xl tracking-widest font-bold mt-5 mb-4">Your Eco-Friendly</h2> | ||
<h2 className="text-3xl sm:text-6xl font-bold mb-8 tracking-widest">Shopping Heaven</h2> | ||
<p className=" text-lg sm:text-3xl mb-8 leadinh-snug tracking-widest"> | ||
At VigyBag, we curate the finest earth-friendly <br></br> | ||
essentials to help you reduce your environmental <br></br> | ||
footprint without compromising on quality or style.<br></br> | ||
Shop smart, live green, and embrace a sustainable <br></br> | ||
future with VigyBag. | ||
</p> | ||
<button className="bg-green-900 tracking-widest text-white px-6 py-3 mt-10 rounded-md hover:bg-green-800 transition-colors duration-300"> | ||
Shop Now | ||
</button> | ||
</div> | ||
</div> | ||
</div> | ||
); | ||
} | ||
|
||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
/* Typewriter.css */ | ||
@keyframes typewriter { | ||
from {width: 0;} | ||
to {width: 100%;} | ||
} | ||
|
||
@keyframes blink { | ||
from, to {border-color: transparent;} | ||
50% {border-color: transparent;} | ||
} | ||
|
||
.typewriter h1 { | ||
overflow: hidden; | ||
border-right: .15em solid black; | ||
white-space: nowrap; | ||
margin: 0 auto; | ||
letter-spacing: .15em; | ||
animation: | ||
typewriter 3.5s steps(40, end), | ||
blink .75s step-end infinite; | ||
} |
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