Skip to content

Commit 5fd083d

Browse files
committed
Extend hero glow around app window
1 parent dffa60f commit 5fd083d

2 files changed

Lines changed: 60 additions & 0 deletions

File tree

docs/styles.css

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -289,13 +289,43 @@ section {
289289
width: min(1040px, 97vw);
290290
margin: -122px auto -176px;
291291
padding: 16px;
292+
isolation: isolate;
292293
border-radius: 34px;
293294
background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
294295
box-shadow: 0 40px 80px rgba(0, 0, 0, 0.46);
295296
transform: perspective(1800px) rotateX(12deg) rotateY(-8deg) rotateZ(-4deg);
296297
transform-origin: center top;
297298
}
298299

300+
.hero-shot::before,
301+
.hero-shot::after {
302+
content: "";
303+
position: absolute;
304+
pointer-events: none;
305+
}
306+
307+
.hero-shot::before {
308+
inset: -42px -44px -54px;
309+
z-index: -2;
310+
border-radius: 54px;
311+
background:
312+
radial-gradient(circle at 14% 84%, rgba(255, 95, 138, 0.2), transparent 30%),
313+
radial-gradient(circle at 78% 14%, rgba(125, 145, 255, 0.3), transparent 34%),
314+
radial-gradient(circle at 52% 10%, rgba(169, 102, 255, 0.24), transparent 42%);
315+
filter: blur(30px);
316+
opacity: 0.95;
317+
}
318+
319+
.hero-shot::after {
320+
inset: -10px;
321+
z-index: -1;
322+
border-radius: 42px;
323+
border: 1px solid rgba(156, 146, 255, 0.14);
324+
box-shadow:
325+
0 0 0 1px rgba(255, 255, 255, 0.03) inset,
326+
0 0 34px rgba(112, 121, 255, 0.08);
327+
}
328+
299329
.hero-shot img {
300330
width: 100%;
301331
border-radius: 24px;

styles.css

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -289,13 +289,43 @@ section {
289289
width: min(1040px, 97vw);
290290
margin: -122px auto -176px;
291291
padding: 16px;
292+
isolation: isolate;
292293
border-radius: 34px;
293294
background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
294295
box-shadow: 0 40px 80px rgba(0, 0, 0, 0.46);
295296
transform: perspective(1800px) rotateX(12deg) rotateY(-8deg) rotateZ(-4deg);
296297
transform-origin: center top;
297298
}
298299

300+
.hero-shot::before,
301+
.hero-shot::after {
302+
content: "";
303+
position: absolute;
304+
pointer-events: none;
305+
}
306+
307+
.hero-shot::before {
308+
inset: -42px -44px -54px;
309+
z-index: -2;
310+
border-radius: 54px;
311+
background:
312+
radial-gradient(circle at 14% 84%, rgba(255, 95, 138, 0.2), transparent 30%),
313+
radial-gradient(circle at 78% 14%, rgba(125, 145, 255, 0.3), transparent 34%),
314+
radial-gradient(circle at 52% 10%, rgba(169, 102, 255, 0.24), transparent 42%);
315+
filter: blur(30px);
316+
opacity: 0.95;
317+
}
318+
319+
.hero-shot::after {
320+
inset: -10px;
321+
z-index: -1;
322+
border-radius: 42px;
323+
border: 1px solid rgba(156, 146, 255, 0.14);
324+
box-shadow:
325+
0 0 0 1px rgba(255, 255, 255, 0.03) inset,
326+
0 0 34px rgba(112, 121, 255, 0.08);
327+
}
328+
299329
.hero-shot img {
300330
width: 100%;
301331
border-radius: 24px;

0 commit comments

Comments
 (0)