Skip to content

Commit e1f0eb9

Browse files
committed
working changes
1 parent 117dba3 commit e1f0eb9

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

src/Vasundhara.js

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ const images = [
1717
]
1818

1919
const VasImgComp = (props) => {
20-
console.log(props);
20+
2121
return (
2222
<div key={props.k}>
2323
<img src={props.img} alt="Vasu pic" className="object-cover" />
@@ -30,9 +30,9 @@ const Banner = (props) => {
3030

3131

3232
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>
33+
<div id="banner" role='alert' className={"absolute top-10 md:top-1/4 left-1/4 z-10 w-6/12 flex flex-col h-15 md: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-lg md:text-2xl">Happy Birthday!!! 🎂 🍰</strong>
35+
<span class="block sm:inline text-sm md: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>
3636
<span class="absolute top-0 bottom-0 right-0 px-4 py-3" onClick={() => props.setShow(false)}>
3737
<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>
3838
</span>
@@ -46,23 +46,23 @@ const Vasundhara = () => {
4646
const [show, setShow] = React.useState(true);
4747
const { width, height } = useWindowSize()
4848
return (
49-
<div className="w-full h-screen bg-gradient-to-bl from-blue-400 to-pink-500">
49+
<div className="md:w-full md:h-screen h-auto bg-gradient-to-bl from-blue-400 to-pink-500">
5050
<Banner show={show} setShow={setShow} />
5151
<Confetti
5252
width={width}
5353
height={height}
5454
run={show}
5555
/>
5656
<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>
57+
<div className="text-white font-bold text-5xl md:text-7xl font-sans text-center py-10">Vasundhara Chatterjee</div>
58+
<div className="font-bold text-center text-md md:text-lg text-gray-200 pb-5">I love you cause the entire universe helped me find you and you know how.🙃</div>
5959
<div className="grid grid-cols-10">
6060
<StackGrid
61-
columnWidth={150}
61+
columnWidth={width <= 768 ? 100 : 150}
6262
duration={1000}
6363
appearDelay={100}
64-
gutterHeight={50}
65-
gutterWidth={30}
64+
gutterHeight={width <= 768 ? 5 : 50}
65+
gutterWidth={width <= 768 ? 10 : 30}
6666
appear={scaleDown.appear}
6767
appeared={scaleDown.appeared}
6868
enter={scaleDown.enter}

0 commit comments

Comments
 (0)