Skip to content

Commit 67facb5

Browse files
committed
top-round projects with clip-path
1 parent 533c43f commit 67facb5

2 files changed

Lines changed: 5 additions & 28 deletions

File tree

components/app/hero.vue

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,6 @@ const { width, height } = useElementSize(hero)
1818
</div>
1919
<div class="backdrop" />
2020
<StarryBackdrop class="starry-backdrop" :width="width" :height="height" />
21-
22-
<div class="bottom-rounder" />
2321
</div>
2422
</template>
2523

@@ -175,30 +173,6 @@ const { width, height } = useElementSize(hero)
175173
animation-delay: var(--tagline-animation-delay);
176174
}
177175
178-
.bottom-rounder {
179-
--curve-height: 20px;
180-
--extra-height: 10px;
181-
--curve-color: hsla(0, 0%, 0.25%, 1);
182-
183-
z-index: 3;
184-
position: absolute;
185-
bottom: var(--extra-height);
186-
width: 100%;
187-
height: var(--curve-height);
188-
background: var(--curve-color);
189-
border-radius: 50% 50% 0 0 / 100% 100% 0 0;
190-
box-shadow: 0 0 75px hsla(0, 0%, 100%, 0.25);
191-
192-
&::after {
193-
position: absolute;
194-
content: "";
195-
top: var(--curve-height);
196-
height: var(--extra-height);
197-
width: 100%;
198-
background: var(--curve-color);
199-
}
200-
}
201-
202176
@media (max-width: 900px) {
203177
.content {
204178
margin-top: 4rem;

components/app/projects.vue

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ const projects: Project[] = [
9898
</li>
9999
</ul>
100100

101-
<div class="backdrop" />
101+
<div class="backdrop"></div>
102102
</div>
103103
</template>
104104

@@ -110,6 +110,9 @@ const projects: Project[] = [
110110
background: black;
111111
z-index: 3;
112112
position: relative;
113+
margin-top: -30px;
114+
115+
clip-path: ellipse(3000px 50% at 50% 50%);
113116
}
114117
115118
h1 {
@@ -196,7 +199,7 @@ li.project-item a {
196199
197200
background: radial-gradient(
198201
357.3% 137.24% at 50% 100%,
199-
rgba(255, 255, 255, 0.1) 0%,
202+
rgba(200, 0, 50, 0.1) 0%,
200203
rgba(0, 0, 0, 0) 100%
201204
);
202205
opacity: 0.6;

0 commit comments

Comments
 (0)