Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace Google Fonts link with self-hosted font #114

Merged
merged 1 commit into from
Jun 27, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added public/fonts/nunito-v24-latin-600.woff
Binary file not shown.
Binary file added public/fonts/nunito-v24-latin-600.woff2
Binary file not shown.
Binary file added public/fonts/nunito-v24-latin-700.woff
Binary file not shown.
Binary file added public/fonts/nunito-v24-latin-700.woff2
Binary file not shown.
Binary file added public/fonts/nunito-v24-latin-regular.woff
Binary file not shown.
Binary file added public/fonts/nunito-v24-latin-regular.woff2
Binary file not shown.
1 change: 1 addition & 0 deletions resources/css/app.css
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
@import '../../vendor/filament/filament/resources/css/app.css';
@import 'tippy.js/dist/tippy.css';
@import 'tribute.css';
@import 'fonts.css';

body {
font-family: 'Nunito', sans-serif;
Expand Down
36 changes: 36 additions & 0 deletions resources/css/fonts.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
/*
* Generated with: https://google-webfonts-helper.herokuapp.com/fonts/nunito?subsets=latin
* Styles: regular (400), 600 & 700
* CSS: Modern Browsers
*/

/* nunito-regular - latin */
@font-face {
font-family: 'Nunito';
font-style: normal;
font-weight: 400;
font-display: swap;
src: local(''),
url('/fonts/nunito-v24-latin-regular.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */
url('/fonts/nunito-v24-latin-regular.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
}
/* nunito-600 - latin */
@font-face {
font-family: 'Nunito';
font-style: normal;
font-weight: 600;
font-display: swap;
src: local(''),
url('/fonts/nunito-v24-latin-600.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */
url('/fonts/nunito-v24-latin-600.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
}
/* nunito-700 - latin */
@font-face {
font-family: 'Nunito';
font-style: normal;
font-weight: 700;
font-display: swap;
src: local(''),
url('/fonts/nunito-v24-latin-700.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */
url('/fonts/nunito-v24-latin-700.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
}
2 changes: 0 additions & 2 deletions resources/views/components/app.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@

<title>@yield('title', 'Welcome') - {{ config('app.name') }}</title>

<link href="https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700&display=swap" rel="stylesheet">

{!! $brandColors !!}

<link rel="stylesheet" href="{{ mix('css/app.css') }}">
Expand Down