Skip to content

Commit 2228d60

Browse files
committed
feat: add config for fonts
1 parent 13538d0 commit 2228d60

File tree

4 files changed

+54
-9
lines changed

4 files changed

+54
-9
lines changed

src/App.css

-5
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,3 @@ body {
1111
box-sizing: border-box;
1212
}
1313

14-
.header {
15-
font-family: "Concert One", sans-serif;
16-
font-weight: 400;
17-
font-style: normal;
18-
}

src/components/organisms/Header/index.tsx

+3-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@ const Header: FC = () => {
55
<header className="px-4 py-6 bg-no-repeat dark:bg-[#0B1120]">
66
<div className="container flex justify-between max-w-1200 m-auto">
77
<img src="/assets/imgs/dnd3.png" width="200" alt="logo" />
8-
<h1 className="text-5xl text-slate-400 header ">Dungeons & Dragons</h1>
8+
<h1 className="text-5xl text-slate-400 font-concert">
9+
Dungeons & Dragons
10+
</h1>
911
</div>
1012
</header>
1113
)

src/components/organisms/Spells/index.tsx

+41
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,47 @@ const Spells: FC = () => {
101101
</div>
102102
</section>
103103

104+
<section className="relative isolate overflow-hidden bg-white px-6 py-24 sm:py-32 lg:px-8">
105+
<div className="absolute inset-0 -z-10 bg-[radial-gradient(45rem_50rem_at_top,theme(colors.indigo.100),white)] opacity-20" />
106+
<div className="absolute inset-y-0 right-1/2 -z-10 mr-16 w-[200%] origin-bottom-left skew-x-[-30deg] bg-white shadow-xl shadow-indigo-600/10 ring-1 ring-indigo-50 sm:mr-28 lg:mr-0 xl:mr-16 xl:origin-center" />
107+
<div className="mx-auto max-w-2xl lg:max-w-4xl">
108+
<img
109+
className="mx-auto h-12"
110+
src="https://tailwindui.com/img/logos/workcation-logo-indigo-600.svg"
111+
alt=""
112+
/>
113+
<figure className="mt-10">
114+
<blockquote className="text-center text-xl font-semibold leading-8 text-gray-900 sm:text-2xl sm:leading-9">
115+
<p>
116+
“Lorem ipsum dolor sit amet consectetur adipisicing elit. Nemo
117+
expedita voluptas culpa sapiente alias molestiae. Numquam
118+
corrupti in laborum sed rerum et corporis.”
119+
</p>
120+
</blockquote>
121+
<figcaption className="mt-10">
122+
<img
123+
className="mx-auto h-10 w-10 rounded-full"
124+
src="https://images.unsplash.com/photo-1494790108377-be9c29b29330?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=facearea&facepad=2&w=256&h=256&q=80"
125+
alt=""
126+
/>
127+
<div className="mt-4 flex items-center justify-center space-x-3 text-base">
128+
<div className="font-semibold text-gray-900">Judith Black</div>
129+
<svg
130+
viewBox="0 0 2 2"
131+
width={3}
132+
height={3}
133+
aria-hidden="true"
134+
className="fill-gray-900"
135+
>
136+
<circle cx={1} cy={1} r={1} />
137+
</svg>
138+
<div className="text-gray-600">CEO of Workcation</div>
139+
</div>
140+
</figcaption>
141+
</figure>
142+
</div>
143+
</section>
144+
104145
<Modal
105146
title={_(_.capitalize(currentSpell)).replace('-', ' ')}
106147
open={isModalOpen}

tailwind.config.js

+10-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,16 @@
11
/** @type {import('tailwindcss').Config} */
2+
3+
const defaultTheme = require('tailwindcss/defaultTheme')
4+
25
module.exports = {
3-
content: ["./src/**/*.{tsx,jsx,ts,js}"],
6+
content: ['./src/**/*.{tsx,jsx,ts,js}'],
47
theme: {
5-
extend: {},
8+
extend: {
9+
fontFamily: {
10+
concert: ['"Concert One"', 'sans-serif'],
11+
sans2: ['"Proxima Nova"', ...defaultTheme.fontFamily.sans],
12+
},
13+
},
614
},
715
plugins: [],
816
}
9-

0 commit comments

Comments
 (0)