Skip to content

Commit 5de9cd7

Browse files
committed
fix: match static sticker to original scale
1 parent d68c9db commit 5de9cd7

2 files changed

Lines changed: 24 additions & 16 deletions

File tree

site/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ <h1 id="hero-title">Read the whole Markdown workspace.</h1>
310310
sizes="(max-width: 800px) 100vw, 980px"
311311
alt="rmdv showing a project file tree beside its rendered README" width="1920" height="1149">
312312
</button>
313-
<span class="ai-sticker" aria-label="100% AI">100% AI</span>
313+
<span class="ai-sticker" aria-label="100% AI"><span>100% AI</span></span>
314314
<figcaption><span>README.md</span><span>One Dark · 100%</span></figcaption>
315315
</figure>
316316
</div>

site/style.css

Lines changed: 23 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -363,41 +363,49 @@ main {
363363
right: -26px;
364364
z-index: 8;
365365
display: grid;
366-
width: 188px;
367-
height: 116px;
366+
width: 290px;
367+
height: 192px;
368368
place-items: center;
369369
isolation: isolate;
370370
color: var(--accent);
371-
font: 800 27px/1 var(--sans);
372-
letter-spacing: -.04em;
371+
font-family: 'Arial Rounded MT Bold', 'Arial Black', system-ui, sans-serif;
372+
font-size: 48px;
373+
font-weight: 900;
374+
line-height: .9;
375+
letter-spacing: -.06em;
373376
pointer-events: none;
374377
user-select: none;
375378
transform: rotate(-6deg);
376-
text-shadow: 0 1px 0 rgba(255, 255, 255, .92);
379+
text-shadow: 0 2px 0 rgba(255, 255, 255, .92);
377380
}
378381

379382
.ai-sticker::before {
380383
position: absolute;
381-
z-index: -1;
382-
inset: 4px 0 0 3px;
384+
z-index: 0;
385+
inset: 5px 0 1px 1px;
383386
content: '';
384387
background: #fff;
385-
border: 7px solid #fff;
386-
border-radius: 49% 51% 47% 52% / 55% 46% 54% 45%;
387-
box-shadow: 8px 11px 17px rgba(25, 25, 29, .22);
388+
border: 18px solid #fff;
389+
border-radius: 48% 52% 45% 55% / 58% 44% 56% 42%;
390+
box-shadow: 10px 14px 22px rgba(25, 25, 29, .24);
388391
}
389392

390393
.ai-sticker::after {
391394
position: absolute;
392395
z-index: -2;
393-
right: 9px;
394-
bottom: -4px;
395-
width: 39px;
396-
height: 28px;
396+
right: 7px;
397+
bottom: -8px;
398+
width: 62px;
399+
height: 45px;
397400
content: '';
398401
background: #f7f5f2;
399402
clip-path: polygon(0 0, 100% 0, 100% 100%);
400-
filter: drop-shadow(3px 3px 2px rgba(25, 25, 29, .17));
403+
filter: drop-shadow(4px 4px 3px rgba(25, 25, 29, .18));
404+
}
405+
406+
.ai-sticker > span {
407+
position: relative;
408+
z-index: 1;
401409
}
402410

403411
.hero-capture {

0 commit comments

Comments
 (0)