Skip to content

Commit

Permalink
tweaks fonts
Browse files Browse the repository at this point in the history
  • Loading branch information
Soare-Robert-Daniel committed Feb 9, 2021
2 parents 2474c12 + 4244389 commit 149b81f
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 5 deletions.
Binary file modified development/logo_maker_plugin.zip
Binary file not shown.
2 changes: 1 addition & 1 deletion plugin_build/logo-maker.asset.php
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<?php return array('dependencies' => array('react', 'react-dom', 'wp-polyfill'), 'version' => '22f9f90ff9281c3d951cb6e82a0202b4');
<?php return array('dependencies' => array('react', 'react-dom', 'wp-polyfill'), 'version' => 'ad28a32731c8744ac15480417fe335d5');
2 changes: 1 addition & 1 deletion plugin_build/logo-maker.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion plugin_build/logo-maker.js.map

Large diffs are not rendered by default.

9 changes: 7 additions & 2 deletions src/Showcase.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -97,10 +97,15 @@ const Showcase: React.FunctionComponent<unknown> = () => {
const setTemplate = (index: number) => {
UIStore.update((s) => {
s.logo.src = logos[index]

s.container.style.color = colors[index]
s.container.align = aligns[index]

s.title.style.fontFamily = fontsList[index].title
s.title.style.fontSize = 32

s.slogan.style.fontFamily = fontsList[index].slogan
s.slogan.style.fontSize = 16
})
}

Expand Down Expand Up @@ -152,15 +157,15 @@ const Showcase: React.FunctionComponent<unknown> = () => {
style: {
...store.title.style,
fontFamily: fontsList[index].title,
fontSize: 24,
fontSize: 32,
},
},
slogan: {
...store.slogan,
style: {
...store.slogan.style,
fontFamily: fontsList[index].slogan,
fontSize: 12,
fontSize: 16,
},
},
}}
Expand Down

0 comments on commit 149b81f

Please sign in to comment.