Skip to content

Commit

Permalink
[TECH] Import et utilisation des polices Google Fonts dans le projet
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] authored Jun 30, 2022
2 parents 19ee2a1 + a673fc9 commit 4b9384b
Show file tree
Hide file tree
Showing 10 changed files with 46 additions and 4 deletions.
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@
/testem.log
/yarn-error.log

# system
.DS_Store

# ember-try
/.node_modules.ember-try/
/bower.json.ember-try
Expand All @@ -32,4 +35,4 @@
!.idea/runConfigurations/*.xml
*.iml
*.code-workspace
.history
.history
1 change: 0 additions & 1 deletion .storybook/fonts.css

This file was deleted.

2 changes: 0 additions & 2 deletions .storybook/preview.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import './fonts.css';

export const parameters = {
a11y: {
element: '#root',
Expand Down
42 changes: 42 additions & 0 deletions addon/styles/_fonts.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,45 @@
@font-face {
font-family: "Open Sans";
src: url("../@1024pix/pix-ui/fonts/OpenSans/OpenSans-Regular.ttf");
font-weight: normal;
font-style: normal;
}

@font-face {
font-family: "Open Sans";
src: url("../@1024pix/pix-ui/fonts/OpenSans/OpenSans-SemiBold.ttf");
font-weight: 600;
font-style: normal;
}

@font-face {
font-family: "Open Sans";
src: url("../@1024pix/pix-ui/fonts/OpenSans/OpenSans-Light.ttf");
font-weight: 300;
font-style: normal;
}

@font-face {
font-family: "Roboto";
src: url("../@1024pix/pix-ui/fonts/Roboto/Roboto-Regular.ttf");
font-weight: normal;
font-style: normal;
}

@font-face {
font-family: "Roboto";
src: url("../@1024pix/pix-ui/fonts/Roboto/Roboto-Medium.ttf");
font-weight: 500;
font-style: normal;
}

@font-face {
font-family: "Roboto";
src: url("../@1024pix/pix-ui/fonts/Roboto/Roboto-Light.ttf");
font-weight: 300;
font-style: normal;
}

$font-open-sans: 'Open Sans', Arial, sans-serif;
$font-roboto: 'Roboto', Arial, sans-serif;

Expand Down
Binary file added public/fonts/OpenSans/OpenSans-Light.ttf
Binary file not shown.
Binary file added public/fonts/OpenSans/OpenSans-Regular.ttf
Binary file not shown.
Binary file added public/fonts/OpenSans/OpenSans-SemiBold.ttf
Binary file not shown.
Binary file added public/fonts/Roboto/Roboto-Light.ttf
Binary file not shown.
Binary file added public/fonts/Roboto/Roboto-Medium.ttf
Binary file not shown.
Binary file added public/fonts/Roboto/Roboto-Regular.ttf
Binary file not shown.

0 comments on commit 4b9384b

Please sign in to comment.