Adding fonts and changing tailwind config.
This commit is contained in:
@ -11,6 +11,7 @@ import React from 'react';
|
|||||||
import AppearText from '../text/AppearText';
|
import AppearText from '../text/AppearText';
|
||||||
import Cdiv from '../core/Cdiv';
|
import Cdiv from '../core/Cdiv';
|
||||||
import FadeComponent from '../core/FadeComponent';
|
import FadeComponent from '../core/FadeComponent';
|
||||||
|
import Introduction from '../sections/Introduction';
|
||||||
|
|
||||||
//============================================================
|
//============================================================
|
||||||
// Component
|
// Component
|
||||||
@ -67,8 +68,10 @@ const FrontPage = () => {
|
|||||||
d="M0,96L80,85.3C160,75,320,53,480,58.7C640,64,800,96,960,101.3C1120,107,1280,85,1360,74.7L1440,64L1440,320L1360,320C1280,320,1120,320,960,320C800,320,640,320,480,320C320,320,160,320,80,320L0,320Z"></path>
|
d="M0,96L80,85.3C160,75,320,53,480,58.7C640,64,800,96,960,101.3C1120,107,1280,85,1360,74.7L1440,64L1440,320L1360,320C1280,320,1120,320,960,320C800,320,640,320,480,320C320,320,160,320,80,320L0,320Z"></path>
|
||||||
</svg>
|
</svg>
|
||||||
</FadeComponent>
|
</FadeComponent>
|
||||||
|
<FadeComponent delay={2500}>
|
||||||
|
<Introduction />
|
||||||
|
</FadeComponent>
|
||||||
</div>
|
</div>
|
||||||
<Cdiv className="bg-frost-200"></Cdiv>
|
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
25
src/components/sections/Introduction.js
Normal file
25
src/components/sections/Introduction.js
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
//============================================================
|
||||||
|
// Essential Imports
|
||||||
|
//============================================================
|
||||||
|
|
||||||
|
import React from 'react';
|
||||||
|
|
||||||
|
//============================================================
|
||||||
|
// Component
|
||||||
|
//============================================================
|
||||||
|
|
||||||
|
const Introduction = () => {
|
||||||
|
return (
|
||||||
|
<div className="w-full flex justify-center bg-frost-200">
|
||||||
|
<div className="w-full max-w-5xl flex flex-col">
|
||||||
|
<h1 className="text-7xl font-display font-bold text-polar-night-400">Hi, I'm John</h1>
|
||||||
|
<br />
|
||||||
|
<p className="text-xl text-polar-night-400">
|
||||||
|
Eu eu laborum in ea enim. Anim reprehenderit quis magna sint nulla aliquip ullamco aliquip
|
||||||
|
ad cillum nisi tempor id. Ea eu et irure cupidatat. Amet duis in id cupidatat.
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
);
|
||||||
|
};
|
||||||
|
export default Introduction;
|
BIN
src/fonts/Calibre/CalibreBlack.otf
Normal file
BIN
src/fonts/Calibre/CalibreBlack.otf
Normal file
Binary file not shown.
BIN
src/fonts/Calibre/CalibreBlackItalic.otf
Normal file
BIN
src/fonts/Calibre/CalibreBlackItalic.otf
Normal file
Binary file not shown.
BIN
src/fonts/Calibre/CalibreBold.otf
Normal file
BIN
src/fonts/Calibre/CalibreBold.otf
Normal file
Binary file not shown.
BIN
src/fonts/Calibre/CalibreBoldItalic.otf
Normal file
BIN
src/fonts/Calibre/CalibreBoldItalic.otf
Normal file
Binary file not shown.
BIN
src/fonts/Calibre/CalibreLight.otf
Normal file
BIN
src/fonts/Calibre/CalibreLight.otf
Normal file
Binary file not shown.
BIN
src/fonts/Calibre/CalibreLightItalic.otf
Normal file
BIN
src/fonts/Calibre/CalibreLightItalic.otf
Normal file
Binary file not shown.
BIN
src/fonts/Calibre/CalibreMedium.otf
Normal file
BIN
src/fonts/Calibre/CalibreMedium.otf
Normal file
Binary file not shown.
BIN
src/fonts/Calibre/CalibreMediumItalic.otf
Normal file
BIN
src/fonts/Calibre/CalibreMediumItalic.otf
Normal file
Binary file not shown.
BIN
src/fonts/Calibre/CalibreRegular.otf
Normal file
BIN
src/fonts/Calibre/CalibreRegular.otf
Normal file
Binary file not shown.
BIN
src/fonts/Calibre/CalibreRegularItalic.otf
Normal file
BIN
src/fonts/Calibre/CalibreRegularItalic.otf
Normal file
Binary file not shown.
BIN
src/fonts/Calibre/CalibreSemibold.otf
Normal file
BIN
src/fonts/Calibre/CalibreSemibold.otf
Normal file
Binary file not shown.
BIN
src/fonts/Calibre/CalibreSemiboldItalic.otf
Normal file
BIN
src/fonts/Calibre/CalibreSemiboldItalic.otf
Normal file
Binary file not shown.
BIN
src/fonts/Calibre/CalibreThin.otf
Normal file
BIN
src/fonts/Calibre/CalibreThin.otf
Normal file
Binary file not shown.
BIN
src/fonts/Calibre/CalibreThinItalic.otf
Normal file
BIN
src/fonts/Calibre/CalibreThinItalic.otf
Normal file
Binary file not shown.
@ -1,6 +1,7 @@
|
|||||||
module.exports = {
|
module.exports = {
|
||||||
content: ['./src/**/*.{js, jsx}'],
|
content: ['./src/**/*.{js, jsx}'],
|
||||||
theme: {
|
theme: {
|
||||||
|
extend: {
|
||||||
colors: {
|
colors: {
|
||||||
'polar-night': {
|
'polar-night': {
|
||||||
100: '#4C566A',
|
100: '#4C566A',
|
||||||
@ -27,9 +28,8 @@ module.exports = {
|
|||||||
purple: '#B48EAD',
|
purple: '#B48EAD',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
extend: {
|
|
||||||
fontFamily: {
|
fontFamily: {
|
||||||
display: ['Open Sans'],
|
display: ['Calibre'],
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
@ -27,6 +27,18 @@ module.exports = {
|
|||||||
include: path.resolve(__dirname, 'src'),
|
include: path.resolve(__dirname, 'src'),
|
||||||
use: ['style-loader', 'css-loader', 'postcss-loader'],
|
use: ['style-loader', 'css-loader', 'postcss-loader'],
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
test: /\.(woff(2)?|ttf|eot|otf)(\?v=\d+\.\d+\.\d+)?$/,
|
||||||
|
use: [
|
||||||
|
{
|
||||||
|
loader: 'file-loader',
|
||||||
|
options: {
|
||||||
|
name: '[name].[ext]',
|
||||||
|
outputPath: 'fonts/',
|
||||||
|
},
|
||||||
|
},
|
||||||
|
],
|
||||||
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
plugins: [
|
plugins: [
|
||||||
|
Reference in New Issue
Block a user