Skip to content

Commit 95a928b

Browse files
committed
changed website
1 parent f0adc23 commit 95a928b

18 files changed

+11928
-21057
lines changed

craco.config.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// craco.config.js
33
module.exports = {
44
style: {
5-
postcss: {
5+
postcssOptions: {
66
plugins: [
77
require('tailwindcss'),
88
require('autoprefixer'),

package-lock.json

-21,049
This file was deleted.

package.json

+8-5
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@
88
"@next/mdx": "^10.2.0",
99
"@tailwindcss/postcss7-compat": "^2.1.2",
1010
"@tailwindcss/typography": "^0.4.0",
11-
"@testing-library/jest-dom": "^5.12.0",
12-
"@testing-library/react": "^11.2.7",
13-
"@testing-library/user-event": "^12.8.3",
11+
"@testing-library/jest-dom": "^5.16.4",
12+
"@testing-library/react": "^13.3.0",
13+
"@testing-library/user-event": "^14.2.0",
1414
"autoprefixer": "^9.8.6",
1515
"gh-pages": "^3.2.0",
1616
"gsap": "^3.6.1",
@@ -20,15 +20,18 @@
2020
"next-themes": "0.0.14",
2121
"postcss": "^7.0.35",
2222
"react": "^17.0.2",
23+
"react-confetti": "^6.1.0",
2324
"react-dom": "^17.0.2",
2425
"react-icons": "^4.3.1",
2526
"react-motion": "^0.5.2",
2627
"react-pdf": "^5.3.0",
2728
"react-router-dom": "^6.2.1",
28-
"react-scripts": "4.0.3",
29+
"react-scripts": "^5.0.1",
30+
"react-stack-grid": "^0.7.1",
31+
"react-use": "^17.4.0",
2932
"tailwindcss": "npm:@tailwindcss/postcss7-compat@^2.1.2",
3033
"typewriter-effect": "^2.17.0",
31-
"web-vitals": "^1.1.2"
34+
"web-vitals": "^2.1.4"
3235
},
3336
"scripts": {
3437
"start": "craco start",

public/imgs/vasu/v0.png

409 KB
Loading

public/imgs/vasu/v1.png

587 KB
Loading

public/imgs/vasu/v2.png

424 KB
Loading

public/imgs/vasu/v3.png

682 KB
Loading

public/imgs/vasu/v4.png

446 KB
Loading

public/imgs/vasu/v5.png

416 KB
Loading

public/imgs/vasu/v6.png

625 KB
Loading

public/imgs/vasu/v7.png

266 KB
Loading

public/imgs/vasu/v8.png

177 KB
Loading

src/App.js

+2
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ import Mail from "./Components/Mail";
2121
import Socials from "./Components/Socials";
2222
import { BrowserRouter as Router, Route , Routes, Link } from "react-router-dom";
2323
import Banner from './Components/banner';
24+
import Vasundhara from './Vasundhara';
2425

2526

2627

@@ -162,6 +163,7 @@ const App = () => {
162163
<Routes>
163164
<Route path="/" element={<Home />} />
164165
<Route path="/mac" element={<Mac />} />
166+
<Route path="/mylove/vasundhara" element={<Vasundhara />} />
165167
</Routes>
166168
</Router>
167169
</ThemeProvider>
-1.82 MB
Binary file not shown.

src/Assets/profile.svg

+312-1
Loading

src/Vasundhara.js

+85
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,85 @@
1+
import StackGrid, { transitions } from "react-stack-grid";
2+
import React from "react";
3+
import useWindowSize from 'react-use/lib/useWindowSize'
4+
import Confetti from 'react-confetti'
5+
6+
const { scaleDown } = transitions;
7+
const images = [
8+
'/imgs/vasu/v0.png',
9+
'/imgs/vasu/v2.png',
10+
'/imgs/vasu/v8.png',
11+
'/imgs/vasu/v3.png',
12+
'/imgs/vasu/v4.png',
13+
'/imgs/vasu/v5.png',
14+
'/imgs/vasu/v6.png',
15+
'/imgs/vasu/v1.png',
16+
'/imgs/vasu/v7.png',
17+
]
18+
19+
const VasImgComp = (props) => {
20+
console.log(props);
21+
return (
22+
<div key={props.k}>
23+
<img src={props.img} alt="Vasu pic" className="object-cover" />
24+
</div>
25+
)
26+
}
27+
28+
const Banner = (props) => {
29+
30+
31+
32+
return (
33+
<div id="banner" role='alert' className={"absolute top-1/4 left-1/4 z-10 w-6/12 flex flex-col h-30 rounded-2xl bg-purple-400 border-t-4 rounded-b text-white px-4 py-3 shadow-md " + (props.show ? "" : "hidden")} >
34+
<strong class="font-bold py-6 text-2xl">Happy Birthday!!! 🎂 🍰</strong>
35+
<span class="block sm:inline text-lg">Hi Vasundhara, the very less time I have spent with you till now has been amazing and I want you to enjoy your birthday to the fullest. It's okay if we cannot celebrate your birthday this time together but I really hope we can be together for all the next amazing birthdays you are going to have. That being said, always carry that beautiful smile of yours which brightens up my day and I am sure the people around you. So may you have the best birthday. You are the best! Meet Soon.</span>
36+
<span class="absolute top-0 bottom-0 right-0 px-4 py-3" onClick={() => props.setShow(false)}>
37+
<svg class="fill-current h-6 w-6 text-blue-500" role="button" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><title>Close</title><path d="M14.348 14.849a1.2 1.2 0 0 1-1.697 0L10 11.819l-2.651 3.029a1.2 1.2 0 1 1-1.697-1.697l2.758-3.15-2.759-3.152a1.2 1.2 0 1 1 1.697-1.697L10 8.183l2.651-3.031a1.2 1.2 0 1 1 1.697 1.697l-2.758 3.152 2.758 3.15a1.2 1.2 0 0 1 0 1.698z" /></svg>
38+
</span>
39+
</div>
40+
)
41+
}
42+
43+
44+
const Vasundhara = () => {
45+
46+
const [show, setShow] = React.useState(true);
47+
const { width, height } = useWindowSize()
48+
return (
49+
<div className="w-full h-screen bg-gradient-to-bl from-blue-400 to-pink-500">
50+
<Banner show={show} setShow={setShow} />
51+
<Confetti
52+
width={width}
53+
height={height}
54+
run={show}
55+
/>
56+
<div className={show ? "blur-md" : ""}>
57+
<div className="text-white font-bold text-7xl font-sans text-center py-10">Vasundhara Chatterjee</div>
58+
<div className="font-bold text-center text-lg text-gray-200 pb-5">I love you cause the entire universe helped me find you and you know how.🙃</div>
59+
<div className="grid grid-cols-10">
60+
<StackGrid
61+
columnWidth={150}
62+
duration={1000}
63+
appearDelay={100}
64+
gutterHeight={50}
65+
gutterWidth={30}
66+
appear={scaleDown.appear}
67+
appeared={scaleDown.appeared}
68+
enter={scaleDown.enter}
69+
entered={scaleDown.entered}
70+
leaved={scaleDown.leaved}
71+
className="col-start-2 col-span-8"
72+
>
73+
{
74+
images.map( ( img, i) => <VasImgComp img={img} k={i} />)
75+
}
76+
77+
78+
</StackGrid>
79+
</div>
80+
</div>
81+
</div>
82+
)
83+
}
84+
85+
export default Vasundhara;

tailwind.config.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
module.exports = {
2-
purge: ['./src/**/*.{js,jsx,ts,tsx}', './public/index.html'],
2+
content: ['./src/**/*.{js,jsx,ts,tsx}', './public/index.html'],
33
darkMode: 'class', // or 'media' or 'class'
44
theme: {
55
typography: ( theme ) => ({}),

0 commit comments

Comments
 (0)