Skip to content

Commit

Permalink
feat: adding download font button
Browse files Browse the repository at this point in the history
  • Loading branch information
TheNickOfTime committed Jul 25, 2024
1 parent 94ed0d7 commit 62ee018
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
20 changes: 20 additions & 0 deletions src/pages/test/ea-font-issue/ea-font-issue.scss
Original file line number Diff line number Diff line change
Expand Up @@ -51,4 +51,24 @@
}
}
}

.download {
margin-top: 1rem;
text-align: center;

a {
display: inline-flex;
flex-direction: row;
align-items: center;
gap: 1rem;

padding: 0.5rem 2rem;

font-size: 2rem;

span {
margin-bottom: 0.2em;
}
}
}
}
8 changes: 8 additions & 0 deletions src/pages/test/ea-font-issue/ea-font-issue.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
import './ea-font-issue.scss';
import { faFont } from '@fortawesome/free-solid-svg-icons';

export default function EAFontIssue() {
return (
Expand Down Expand Up @@ -55,6 +57,12 @@ export default function EAFontIssue() {
</table>
</div>
</div>
<div className='download'>
<a className='button' href='./ElectronicArtsText-RegularNew.otf' download>
<FontAwesomeIcon icon={faFont} />
<span>Download Fixed Font</span>
</a>
</div>
</div>
);
}

0 comments on commit 62ee018

Please sign in to comment.