Skip to content

Commit

Permalink
fix(asciinema): use stored nerd font (#933)
Browse files Browse the repository at this point in the history
Co-authored-by: ook37 <[email protected]>
  • Loading branch information
oklopfer and ook37 authored Aug 1, 2024
1 parent 9e7e660 commit 576efbe
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 3 deletions.
Binary file added client/public/fonts/FiraCodeNF-Bold.ttf
Binary file not shown.
Binary file added client/public/fonts/FiraCodeNF-Regular.ttf
Binary file not shown.
13 changes: 12 additions & 1 deletion client/public/styles/global.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,18 @@
/* Runes */
@import url('https://fonts.cdnfonts.com/css/catrinity');
@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+Devanagari:wght@100;200;300;400;500;600;700;800&display=swap");
@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@300;400;500;600;700&display=swap');
@font-face {
font-family: 'FiraCodeNF';
src: url('../fonts/FiraCodeNF-Regular.ttf') format('truetype');
font-weight: normal;
font-style: normal;
}
@font-face {
font-family: 'FiraCodeNF';
src: url('../fonts/FiraCodeNF-Bold.ttf') format('truetype');
font-weight: bold;
font-style: normal;
}

button:focus,
a:focus {
Expand Down
9 changes: 7 additions & 2 deletions client/src/pages/Home.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -105,19 +105,24 @@ const Home: FC = () => {
loop={true}
src='/showcase.cast'
preload={true}
terminalFontFamily='Fira Code'
terminalFontFamily='FiraCodeNF'
terminalfontSize='13'
theme={colorMode === 'light' ? 'glitter' : 'sparkle'}
rows='32'
/>

<Heading size={'lg'} mb='3'>
{t('home.showcase.packageSearch')}
</Heading>
<AsciinemaFrame
autoPlay={true}
loop={true}
src='/search.cast'
terminalFontFamily='Fira Code'
preload={true}
terminalFontFamily='FiraCodeNF'
terminalfontSize='13'
theme={colorMode === 'light' ? 'glitter' : 'sparkle'}
rows='32'
/>

<Stack justify='center'>
Expand Down

0 comments on commit 576efbe

Please sign in to comment.