Skip to content

Commit

Permalink
clean up and custom fonts
Browse files Browse the repository at this point in the history
  • Loading branch information
holger1411 committed Apr 20, 2023
1 parent 1e099c2 commit 65198c7
Show file tree
Hide file tree
Showing 17 changed files with 49 additions and 102 deletions.
2 changes: 2 additions & 0 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ gulp.task('dist-assets', function (done) {
.pipe(gulp.dest('./dev/js'));
gulp.src('./src/img/**.*')
.pipe(gulp.dest('./dev/img'));
gulp.src('./src/fonts/**.*')
.pipe(gulp.dest('./dev/fonts'));
done();
});

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "11straps",
"version": "0.3.0",
"version": "0.4.0",
"description": "simple 11ty and Bootstrap5 boilerplate",
"license": "MIT",
"private": "true",
Expand Down
39 changes: 0 additions & 39 deletions src/_includes/layouts/code.njk

This file was deleted.

42 changes: 42 additions & 0 deletions src/_includes/snippets/head.njk
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,45 @@
<!-- build:css -->
<link rel="stylesheet" href="{{ '/css/theme.css' | url }}">
<!-- endbuild -->
<style>
/* inter-300 - latin */
@font-face {
font-family: 'Inter';
font-style: normal;
font-weight: 300;
font-display: swap;
src: local(''),
url('/fonts/inter-v12-latin-300.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */
url('/fonts/inter-v12-latin-300.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
}
/* inter-400 - latin */
@font-face {
font-family: 'Inter';
font-style: normal;
font-weight: 400;
font-display: swap;
src: local(''),
url('/fonts/inter-v12-latin-regular.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */
url('/fonts/inter-v12-latin-regular.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
}
@font-face {
font-family: 'Inter';
font-style: normal;
font-weight: 500;
font-display: swap;
src: local(''),
url('/fonts/inter-v12-latin-500.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */
url('/fonts/inter-v12-latin-500.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
}
@font-face {
font-family: 'Inter';
font-style: normal;
font-weight: 700;
font-display: swap;
src: local(''),
url('/fonts/inter-v12-latin-700.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */
url('/fonts/inter-v12-latin-700.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
}
</style>
2 changes: 1 addition & 1 deletion src/_includes/snippets/maincontent.njk
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<header>
<h1 class="display-1">{{ title }}</h1>
<h1 class="display-3 fw-bolder">{{ title }}</h1>
</header>
{{ content | safe }}
2 changes: 1 addition & 1 deletion src/_includes/snippets/postloop.njk
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
</div>
</div>

<div class="row d-flex justify-content-center">
<div class="row d-flex justify-content-center mt-3">
<div class="col-12">
<div class="row d-flex justify-content-between">
<div class="col">
Expand Down
Binary file added src/fonts/inter-v12-latin-300.woff
Binary file not shown.
Binary file added src/fonts/inter-v12-latin-300.woff2
Binary file not shown.
Binary file added src/fonts/inter-v12-latin-500.woff
Binary file not shown.
Binary file added src/fonts/inter-v12-latin-500.woff2
Binary file not shown.
Binary file added src/fonts/inter-v12-latin-700.woff
Binary file not shown.
Binary file added src/fonts/inter-v12-latin-700.woff2
Binary file not shown.
Binary file added src/fonts/inter-v12-latin-regular.woff
Binary file not shown.
Binary file added src/fonts/inter-v12-latin-regular.woff2
Binary file not shown.
2 changes: 1 addition & 1 deletion src/index.njk
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ layout: layouts/blank.njk
<div class="container my-vh-6">
<div class="row d-flex justify-content-center">
<div class="col-12 col-lg-8 my-4 text-center">
<h1 class="display-1">
<h1 class="display-3 fw-bolder">
Welcome to the
<strong>11straps</strong>
demo website!
Expand Down
59 changes: 0 additions & 59 deletions src/pricing.njk

This file was deleted.

1 change: 1 addition & 0 deletions src/scss/themes/base/_variables-theme.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//This is an example of how you can change BS5 variables. Just add the changed variables here and they will overwrite the defaults.
// We changed the default font and the default $blue color (which is set as $primary as well)
$blue: #1717e5;
$font-family-sans-serif: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji" !default;

1 comment on commit 65198c7

@vercel
Copy link

@vercel vercel bot commented on 65198c7 Apr 20, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

11straps – ./

11straps-git-main-office12.vercel.app
11straps.vercel.app
11straps-office12.vercel.app

Please sign in to comment.