mirror of
https://github.com/AmruthPillai/Reactive-Resume.git
synced 2025-11-15 17:21:35 +10:00
add option to enter any local custom font family
This commit is contained in:
@ -1,4 +1,5 @@
|
|||||||
import React from 'react';
|
import React from 'react';
|
||||||
|
import TextField from '../../../shared/TextField';
|
||||||
|
|
||||||
const fontOptions = [
|
const fontOptions = [
|
||||||
'Lato',
|
'Lato',
|
||||||
@ -28,6 +29,17 @@ const FontsTab = ({ theme, onChange }) => {
|
|||||||
{x}
|
{x}
|
||||||
</div>
|
</div>
|
||||||
))}
|
))}
|
||||||
|
|
||||||
|
<TextField
|
||||||
|
label="Font Family"
|
||||||
|
placeholder="Avenir Next"
|
||||||
|
value={theme.font.family}
|
||||||
|
onChange={v => onChange('theme.font.family', v)}
|
||||||
|
/>
|
||||||
|
<p className="text-gray-600 text-sm">
|
||||||
|
You can use any font that is installed on your system as well. Just enter the name of the
|
||||||
|
font family here and the browser would load it up for you.
|
||||||
|
</p>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user