Skip to content

Commit a6f086d

Browse files
authored
Merge pull request #17 from ktp-dev/ronith
change home page blurs
2 parents 98ab562 + 19a295d commit a6f086d

File tree

2 files changed

+62
-10
lines changed

2 files changed

+62
-10
lines changed

src/home.js

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,20 +17,28 @@ function Home() {
1717

1818
return (
1919
<div className='homepage-grid'>
20-
<div className='glowing-circle z-2'></div>
21-
<div className='glowing-circle-2 z-1'></div>
20+
{/* <div className='glowing-circle z-2'></div>
21+
<div className='glowing-circle-2 z-1'></div> */}
2222

2323
<Header></Header>
2424
<ScrollToTop />
2525

2626
{/* Main content */}
2727
<div className='flex flex-row justify-between mb-12 md:mb-20 lg:mb-42'>
28+
<div className="absolute inset-0 blob-c z-0 hidden lg:block">
29+
<div className="shape-blob ten"></div>
30+
<div className="shape-blob eleven"></div>
31+
</div>
2832
<div className='flex-1 flex flex-col items-end'>
2933
<img src={`${process.env.PUBLIC_URL}/melgrace.jpg`} className='hidden lg:block' style={{ width: '175px', transform: 'rotate(10deg)', borderRadius: '25px' }} />
3034
<img src={`${process.env.PUBLIC_URL}/rock.JPEG`} className='hidden lg:block' style={{ width: '200px', transform: 'rotate(-19deg)', borderRadius: '25px' }} />
3135
</div>
3236

3337
<div className='flex flex-col flex-none p-4'>
38+
<div className="absolute inset-0 blob-c z-0 block md:hidden">
39+
<div className="shape-blob twelve"></div>
40+
<div className="shape-blob thirteen"></div>
41+
</div>
3442
<div className='flex flex-col items-center justify-center z-10'>
3543
<div className="font-black text-center w-[375px] sm:w-[450px] md:w-[550px] lg:w-[750px] text-3xl sm:text-3xl md:text-4xl lg:text-5xl mt-24 md:mt-36" style={{ fontFamily: 'Inter, sans-serif', letterSpacing: '-0.02em' }}>
3644
We’re the University of Michigan’s premier technology fraternity

src/index.css

Lines changed: 52 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,11 @@ html {
4848
}
4949

5050
.blob-c {
51-
min-height: 100vh;
52-
overflow: hidden;
53-
position:absolute;
54-
width: 100%;
55-
filter: blur(40px);
51+
min-height: 100vh;
52+
overflow: hidden;
53+
position: absolute;
54+
width: 100%;
55+
filter: blur(70px);
5656
}
5757

5858
.blob-rush-vid {
@@ -148,7 +148,7 @@ html {
148148

149149
.shape-blob.eight {
150150
background: #a8d4ff;
151-
height: 100px;
151+
height: 175px;
152152
width: 250px;
153153
left: calc(40% - 215px);
154154
top: 10%;
@@ -158,16 +158,47 @@ html {
158158

159159
.shape-blob.nine {
160160
background: #9ceb9c;
161-
height: 100px;
161+
height: 175px;
162162
width: 250px;
163163
left: calc(70% - 215px);
164164
top: 10%;
165165
transform: rotate(-180deg);
166166
animation: blob-movement-two 15s ease-in-out infinite both;
167167
}
168168

169+
.shape-blob.ten {
170+
background: #9ceb9c;
171+
animation: blob-movement-one 10s ease-in-out infinite both;
172+
}
173+
174+
.shape-blob.eleven {
175+
background: #a8d4ff;
176+
animation: blob-movement-two 15s ease-in-out infinite both;
177+
}
178+
179+
.shape-blob.twelve {
180+
background: #a8d4ff;
181+
height: 175px;
182+
width: 250px;
183+
left: 10%;
184+
overflow: hidden;
185+
transform: rotate(-180deg);
186+
animation: blob-movement-one 10s ease-in-out infinite both;
187+
}
188+
189+
.shape-blob.thirteen {
190+
background: #9ceb9c;
191+
height: 175px;
192+
width: 150px;
193+
top: 2%;
194+
overflow: hidden;
195+
transform: rotate(-180deg);
196+
animation: blob-movement-two 15s ease-in-out infinite both;
197+
}
198+
169199
/* Larger screens */
170-
@media (min-width: 640px) {
200+
@media (min-width: 1100px) {
201+
171202
.shape-blob.eight {
172203
height: 200px;
173204
width: 280px;
@@ -177,6 +208,19 @@ html {
177208
height: 200px;
178209
width: 280px;
179210
}
211+
212+
.shape-blob.ten {
213+
height: 450px;
214+
width: 600px;
215+
top: 200px
216+
}
217+
218+
.shape-blob.eleven {
219+
height: 450px;
220+
width: 600px;
221+
left: 200px;
222+
top: 200px;
223+
}
180224
}
181225

182226
@media (min-width: 768px) {

0 commit comments

Comments
 (0)