Skip to content

Commit f9ff179

Browse files
Merge pull request #36 from aminalhazwani/no-fonts
Remove custom fonts
2 parents d23312b + 16d2af5 commit f9ff179

File tree

12 files changed

+12
-50
lines changed

12 files changed

+12
-50
lines changed

src/css/index.css

-18
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,3 @@
1-
@font-face {
2-
font-family: "aldo";
3-
src: url("../fonts/aldo.woff2") format("woff2"),
4-
url("../fonts/aldo.woff") format("woff");
5-
font-weight: 400;
6-
font-style: normal;
7-
font-stretch: normal;
8-
}
9-
10-
@font-face {
11-
font-family: "inter";
12-
src: url("../fonts/inter.woff2") format("woff2"),
13-
url("../fonts/inter.woff") format("woff");
14-
font-weight: 400;
15-
font-style: normal;
16-
font-stretch: normal;
17-
}
18-
191
@tailwind base;
202
@tailwind components;
213
@tailwind utilities;

src/fonts/aldo.woff

-44.5 KB
Binary file not shown.

src/fonts/aldo.woff2

-35.1 KB
Binary file not shown.

src/fonts/inter.woff

-131 KB
Binary file not shown.

src/fonts/inter.woff2

-96.5 KB
Binary file not shown.

src/site/_includes/blocks/aside.njk

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
<div class="p-4 sm:px-8 sm:py-4 md:px-16 md:py-8 lg:text-lg lg:leading-none lg:px-12 lg:py-8 xl:p-0 xl:sticky xl:top-0 xl:h-screen xl:flex xl:flex-wrap xl:w-14">
22
<p class="xl:flex xl:leading-snug xl:ml-4 xl:my-5 xl:writing-mode-rl xl:transform xl:rotate-180">
33
<a class="mr-4 xl:mr-0 xl:mb-8" href="https://twitter.com/aminalhazwani">
4-
Twitter<span class="font-inter ml-1 xl:ml-0 xl:mt-2">↗</span>
4+
Twitter<span class="ml-1 xl:ml-0 xl:mt-2">↗</span>
55
</a>
66
<a class="mr-4 xl:mr-0 xl:mb-8" href="https://github.com/aminalhazwani/">
7-
GitHub<span class="font-inter ml-1 xl:ml-0 xl:mt-2">↗</span>
7+
GitHub<span class="ml-1 xl:ml-0 xl:mt-2">↗</span>
88
</a>
99
<a class="mr-4 xl:mr-0" href="https://www.linkedin.com/in/aminalhazwani/">
10-
LinkedIn<span class="font-inter ml-1 xl:ml-0 xl:mt-2">↗</span>
10+
LinkedIn<span class="ml-1 xl:ml-0 xl:mt-2">↗</span>
1111
</a>
1212
<span class="xl:flex-grow"></span>
1313
<a class="hidden group lg:flex lg:flex-row-reverse lg:absolute lg:top-4 lg:right-12 xl:flex-row xl:relative xl:top-auto xl:right-auto xl:transform xl:rotate-180" href="#info">
14-
Info<span class="font-inter opacity-0 transform -translate-y-2 transition ease-in-out duration-200 group-hover:opacity-100 group-hover:translate-y-0 lg:mr-2 xl:mr-0 xl:inline-block xl:mt-2 xl:-rotate-90">↓</span>
14+
Info<span class="opacity-0 transform -translate-y-2 transition ease-in-out duration-200 group-hover:opacity-100 group-hover:translate-y-0 lg:mr-2 xl:mr-0 xl:inline-block xl:mt-2 xl:-rotate-90">↓</span>
1515
</a>
1616
</p>
1717
</div>

src/site/_includes/blocks/design-ops.njk

+5-5
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
I can provide hands-on execution knowing the appropriate level of detail and fidelity necessary at every phase of the design process.
1313
</p>
1414
<p class="hidden leading-none text-sm mb-4 uppercase text-gray-500 dark:text-gray-400 tracking-wide lg:block lg:mb-0">
15-
Gates Ventures<span class="font-inter inline-block font-feature-aalt ml-2">←</span>
15+
Gates Ventures<span class="inline-block font-feature-aalt ml-2">←</span>
1616
</p>
1717
</div>
1818
<div class="row-start-2 row-span-3 col-start-8 col-span-12">
@@ -21,7 +21,7 @@
2121
{% set description = "#" %}
2222
{% include "utils/image.njk" %}
2323
<p class="leading-none text-sm mb-4 uppercase text-gray-500 dark:text-gray-400 tracking-wide lg:hidden">
24-
Gates Ventures<span class="font-inter inline-block font-feature-aalt ml-2">↑</span>
24+
Gates Ventures<span class="inline-block font-feature-aalt ml-2">↑</span>
2525
</p>
2626
</div>
2727

@@ -30,7 +30,7 @@
3030
Most of my design work happens through other people. I act as a mentor to fellow colleagues nurturing both soft and hard skills.
3131
</p>
3232
<p class="text-sm mb-4 uppercase tracking-wide text-gray-500 dark:text-gray-400 order-3 lg:order-2 lg:mb-2">
33-
IBM Data Visualization Design Language<span class="font-inter inline-block font-feature-aalt ml-2 transform lg:rotate-180">↑</span>
33+
IBM Data Visualization Design Language<span class="inline-block font-feature-aalt ml-2 transform lg:rotate-180">↑</span>
3434
</p>
3535
{% set classes = "order-2 mb-2 lg:order-1" %}
3636
{% set name = "accurat-design-ops-motion" %}
@@ -45,7 +45,7 @@
4545
{% set description = "#" %}
4646
{% include "utils/image.njk" %}
4747
<p class="text-sm uppercase mb-4 text-gray-500 tracking-wide dark:text-gray-400 lg:mb-0">
48-
Adobe 2021 Digital Trends Report<span class="font-inter inline-block font-feature-aalt ml-2">↑</span>
48+
Adobe 2021 Digital Trends Report<span class="inline-block font-feature-aalt ml-2">↑</span>
4949
</p>
5050
</div>
5151
</div>
@@ -56,7 +56,7 @@
5656
</p>
5757
<div class="flex flex-col-reverse lg:flex-col">
5858
<p class="leading-none text-sm uppercase text-gray-500 dark:text-gray-400 tracking-wide lg:mb-2">
59-
Triennale Design Museum<span class="font-inter inline-block font-feature-aalt ml-2 transform lg:rotate-180">↑</span>
59+
Triennale Design Museum<span class="inline-block font-feature-aalt ml-2 transform lg:rotate-180">↑</span>
6060
</p>
6161
{% set classes = "mb-2 lg:mb-0" %}
6262
{% set name = "accurat-design-ops-triennale" %}

src/site/_includes/blocks/footer.njk

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@
33
Amin Al Hazwani worked as a graphic designer, web designer, event organizer, front-end developer, mobile interface designer, design system designer, product designer, and today is a design ops director. He designed a wide range of things, from icons to design systems. He organized design events and designed design orgs. He worked alone, in a duo, in a small team, in a medium-sized design agency, in a big distributed company. He’s literally tried it all.
44
</p>
55
<p class="p-4 sm:py-4 sm:px-8 lg:px-12">
6-
You can reach him at <span class="font-inter">→</span> amin at hey dot com.
6+
You can reach him at <span>→</span> amin at hey dot com.
77
</p>
88
</div>

src/site/_includes/blocks/head.njk

-4
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,6 @@
44
<title>{{ title or metadata.title }}</title>
55
<meta name="description" content="{{ description or metadata.description }}">
66
<meta http-equiv="x-ua-compatible" content="ie=edge">
7-
<link rel="preload" href="{% static "aldo.woff2" %}" as="font" type="font/woff2" crossorigin>
8-
<link rel="preload" href="{% static "inter.woff2" %}" as="font" type="font/woff2" crossorigin>
9-
<link rel="preload" href="{% static "aldo.woff" %}" as="font" type="font/woff" crossorigin>
10-
<link rel="preload" href="{% static "inter.woff" %}" as="font" type="font/woff" crossorigin>
117
<link rel="stylesheet" href="{% static "main.css" %}">
128
<link rel="canonical" href="{{ metadata.url }}">
139
<link rel="preconnect" href="https://d33wubrfki0l68.cloudfront.net">

src/site/_includes/blocks/header.njk

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
</div>
55
<div class="col-span-1 lg:hidden">
66
<p class="group text-right leading-none">
7-
<span class="font-inter inline-block mr-0.5 opacity-0 transform -translate-y-2 transition ease-in-out duration-200 group-hover:opacity-100 group-hover:translate-y-0">↓</span>
7+
<span class="inline-block mr-0.5 opacity-0 transform -translate-y-2 transition ease-in-out duration-200 group-hover:opacity-100 group-hover:translate-y-0">↓</span>
88
<a href="#info">Info</a>
99
</p>
1010
</div>

tailwind.config.js

-4
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,6 @@ const colors = require('tailwindcss/colors')
33
module.exports = {
44
darkMode: "media",
55
theme: {
6-
fontFamily: {
7-
"sans": ["aldo", "Helvetica Neue", "Arial", "sans-serif"],
8-
"inter": ["inter", "Helvetica Neue", "Arial", "sans-serif"],
9-
},
106
colors: {
117
black: colors.black,
128
gray: colors.neutral,

webpack.config.js

+1-13
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,12 @@ const MiniCssExtractPlugin = require("mini-css-extract-plugin");
44

55
const dev = process.env.NODE_ENV === "development";
66

7-
const baseFilename = dev ? "index" : "[contenthash]";
7+
const baseFilename = dev ? "index" : "index.[contenthash]";
88

99
module.exports = {
1010
mode: dev ? "development" : "production",
1111
entry: [
1212
path.resolve(__dirname, "src", "css", "index.css"),
13-
path.resolve(__dirname, "src", "fonts", "aldo.woff"),
14-
path.resolve(__dirname, "src", "fonts", "aldo.woff2"),
15-
path.resolve(__dirname, "src", "fonts", "inter.woff"),
16-
path.resolve(__dirname, "src", "fonts", "inter.woff2"),
1713
],
1814
output: {
1915
path: path.resolve(__dirname, "dist", "static"),
@@ -29,14 +25,6 @@ module.exports = {
2925
"postcss-loader"
3026
],
3127
},
32-
{
33-
test: /\.(woff|woff2)$/i,
34-
use: [
35-
{
36-
loader: 'file-loader',
37-
},
38-
],
39-
},
4028
],
4129
},
4230
plugins: [

0 commit comments

Comments
 (0)