Skip to content

Commit 6970f4e

Browse files
committed
[TASK] Checks: Add font check
Resolves #5
1 parent 216a6d0 commit 6970f4e

File tree

5 files changed

+12
-0
lines changed

5 files changed

+12
-0
lines changed

src/fonts/.gitkeep

Whitespace-only changes.

src/fonts/Sansation_Regular.ttf

76.6 KB
Binary file not shown.

src/html/_checks.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ <h2>Checks</h2>
88
<div class="check-js-folder">
99
<p>If this text is green, the js folder was loaded correctly.</p>
1010
</div>
11+
<div class="check-font-folder">
12+
<p>If this text is a different font, the font folder was loaded correctly.</p>
13+
</div>
1114
<div class="check-minified-html">
1215
<p>This HTML file has a length of <span id="html-size">0</span>.</p>
1316
<a href="/index_min.html">If this link leads to the minified HTML file, the HTML folder was minified correctly.</a>

src/scss/main.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
@import 'partials/page';
22
@import 'partials/check';
3+
@import 'partials/font';

src/scss/partials/_font.scss

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
@font-face {
2+
font-family: Sansation;
3+
src: url('../../fonts/Sansation_Regular.ttf');
4+
}
5+
6+
.check-font-folder {
7+
font-family: Sansation, sans-serif;
8+
}

0 commit comments

Comments
 (0)