Skip to content

Commit 4628be3

Browse files
committed
refactor: update route types import and enhance highlight effect in CSS
- Changed the import path for route types in next-env.d.ts to the development directory. - Revised the CSS for the highlight effect to improve visual presentation and consistency. - Updated sample IDs in page.tsx and modified headline text for clarity, reflecting the new focus on "Get clean transcript". - Incremented version number in the footer to v1.10.2.
1 parent 203b1a2 commit 4628be3

3 files changed

Lines changed: 12 additions & 12 deletions

File tree

sample/app/globals.css

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -49,13 +49,13 @@ html, body {
4949
text-wrap: balance;
5050
}
5151

52-
/* Highlighter-pen effect — wraps only the text per line, sits as a stripe
53-
across the lower portion of the characters. Defined as plain CSS rather
54-
than @utility because Tailwind 4 was tree-shaking it out. */
52+
/* Highlighter-pen effect: wraps only the text per line, with the color capped
53+
to the visible ascender height instead of the heading's larger line box. */
5554
.highlight {
56-
/* Highlight fully covers the text. Small transparent bands at top and
57-
bottom keep the stripes from butting against adjacent lines on wrap. */
58-
background: linear-gradient(180deg, transparent 15%, #fde68a 15%, #fde68a 94%, transparent 94%);
55+
background-image: linear-gradient(#fde68a, #fde68a);
56+
background-repeat: no-repeat;
57+
background-position: 0 50%;
58+
background-size: 100% 0.72em;
5959
-webkit-box-decoration-break: clone;
6060
box-decoration-break: clone;
6161
padding: 0 0.08em;

sample/app/page.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -88,11 +88,11 @@ const LANGUAGES = [
8888
] as const;
8989

9090
const SAMPLE_IDS = [
91-
'7GeFt8suV8E',
92-
'jNQXAC9IVRw',
91+
'0Gb1z-2SjHY',
9392
'D37Ijn2o5U0',
9493
'g9JIUM0MHgQ',
9594
'6BB6exR8Zd8',
95+
'55pTFVoclvE',
9696
];
9797
function apiUrl(path: string, params: URLSearchParams): string {
9898
const query = params.toString();
@@ -211,14 +211,14 @@ export default function HomePage() {
211211

212212
{/* Headline */}
213213
<h1 className='mt-3 font-serif text-[44px] sm:text-[56px] leading-[1.15] tracking-[-0.02em] text-stone-900'>
214-
<span className='highlight'>Get the transcript</span>
214+
<span className='highlight'>Get clean transcript</span>
215215
<br />
216216
<span className='highlight italic font-light'>
217217
for any{' '}
218218
<span className='not-italic font-normal tracking-[-0.01em]'>
219219
YouTube
220220
</span>{' '}
221-
video.
221+
video
222222
</span>
223223
</h1>
224224

@@ -543,7 +543,7 @@ export default function HomePage() {
543543
>
544544
github
545545
</a>
546-
<span className='ml-auto font-mono text-stone-400'>v1.10.0</span>
546+
<span className='ml-auto font-mono text-stone-400'>v1.10.2</span>
547547
</div>
548548
</footer>
549549
</main>

sample/next-env.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/// <reference types="next" />
22
/// <reference types="next/image-types/global" />
3-
import "./.next/types/routes.d.ts";
3+
import "./.next/dev/types/routes.d.ts";
44

55
// NOTE: This file should not be edited
66
// see https://nextjs.org/docs/app/api-reference/config/typescript for more information.

0 commit comments

Comments
 (0)