Skip to content

Commit ddd3424

Browse files
Merge branch 'optimization' of https://github.com/shiwangi-upadhyay/4.0 into optimization
1 parent 4bcbbea commit ddd3424

File tree

2 files changed

+5
-36
lines changed

2 files changed

+5
-36
lines changed

package-lock.json

-31
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/components/DigitalSwag.jsx

+5-5
Original file line numberDiff line numberDiff line change
@@ -45,14 +45,14 @@ const DigitalSwag = () => {
4545
}
4646

4747
return (
48-
<div className='flex justify-center items-center w-screen h-[100%] overflow-hidden bg-gradient-to-r from-blue-900 to-red-500' id='pop'>
49-
<div ref={divRef} className='bg-gradient-to-r from-blue-900 to-red-500 rounded-lg lg:w-full lg:h-screen lg:mt-10 p-4 lg:p-8 text-center'>
48+
<div className='flex justify-center items-center w-screen min-h-screen' id='pop'>
49+
<div ref={divRef} className='bg-gradient-to-r from-blue-900 to-red-500 rounded-lg lg:w-full lg:h-screen p-4 lg:p-8 text-center'>
5050
<h1 className='lg:text-[4rem] text-[2rem] mb-6 mx-44 px-5 relative lg:left-48'>Digital Swag</h1>
5151
<p className='relative mb-10 lg:right-10 lg:text-[2rem] lg:mx-[200px] lg:left-[200px] lg:px-5 px-[100px] text-[10px]'>Lorem ipsum dolor sit amet consectetur adipisicing elit. Magnam sint placeat ad a, eaque nesciunt beatae nostrum ducimus cum similique. Labore, vel doloremque. Necessitatibus rem commodi recusandae, esse earum expedita.</p>
52-
<div className='lg:absolute relative mb-10 bg-center bg-cover w-[300px] h-[500px] lg:w-[400px] lg:h-[700px] lg:top-[30px] left-[19%] lg:left-5 border-2' id='download' style={{backgroundImage: `url('/Dexterix 4.0 temp.png')`}}>
52+
<div className='lg:absolute relative mb-10 bg-center bg-cover w-[300px] h-[500px] lg:w-[30vw] lg:h-[85vh] lg:top-[30px] left-[19%] lg:left-5 border-2' id='download' style={{backgroundImage: `url('/Dexterix 4.0 temp.png')`}}>
5353
<img src={imageUrl} alt="pic" className='absolute top-[50%] left-[50%] transform -translate-x-1/2 -translate-y-1/2 lg:w-48 h-36 lg:h-48 border-4' id='Pic'/>
54-
<div className="absolute bottom-32 lg:bottom-48 left-[50%] transform -translate-x-1/2 block w-[200px] font-bold text-[#333]">
55-
<p className="text-lg text-white glowing-text py-2">{name}</p>
54+
<div className="absolute bottom-32 lg:bottom-28 left-[50%] transform -translate-x-1/2 block w-[200px] font-bold text-[#333]">
55+
<p className=" text-lg text-white glowing-text py-2">{name}</p>
5656
</div>
5757
</div>
5858

0 commit comments

Comments
 (0)