Skip to content

Commit

Permalink
Fix electric shocker font and 'Duality' size in top menu
Browse files Browse the repository at this point in the history
  • Loading branch information
JessicaMulein committed Sep 12, 2024
1 parent 1511215 commit f5aa19b
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 1 deletion.
2 changes: 1 addition & 1 deletion apps/duality-social-react/src/components/top-menu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ const TopMenu: React.FC = () => {
style={{ height: 40, marginRight: 10 }}
/>
<Typography variant="h6" component="div">
<span style={{ fontFamily: 'Electric Shocker, Arial, sans-serif' }}>
<span style={{ fontFamily: 'Electric Shocker, Arial, sans-serif', fontSize: '2rem' }}>
Duality
</span>
<span
Expand Down
7 changes: 7 additions & 0 deletions apps/duality-social-react/src/styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,13 @@ $text-color: #fff;
font-style: normal;
}

@font-face {
font-family: 'Electric Shocker';
src: url('~/assets/ElectricShocker.woff2') format('woff2');
font-weight: normal;
font-style: normal;
}

@font-face {
font-family: 'Eurostile Extended';
src: url('~/assets/EurostileExtended-Roman.woff2') format('woff2');
Expand Down
9 changes: 9 additions & 0 deletions libs/duality-social-lib/src/lib/duality-social-lib.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,15 @@ describe('DualitySocialLib', () => {
expect(result).toEqual(expected);
expect(result).not.toContain('<p>');
});

it('should handle a two-line post with one letter per line correctly when isBlogPost is true', () => {
const input = 'x\nx';
const isBlogPost = true;
const expected = '<p>x<br />\nx</p>';

const result = parsePostContent(input, isBlogPost);
expect(result).toEqual(expected);
});
});

describe('prepareContentForCharacterCount', () => {
Expand Down

0 comments on commit f5aa19b

Please sign in to comment.