Skip to content

Commit

Permalink
Merge pull request #30 from kacper-cyra/km38/change-css-to-scss
Browse files Browse the repository at this point in the history
Change css to scss
  • Loading branch information
kamack38 authored Dec 10, 2021
2 parents 71e36fa + bcf7533 commit 3aa4b57
Show file tree
Hide file tree
Showing 6 changed files with 88 additions and 17 deletions.
26 changes: 13 additions & 13 deletions index.html
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
<!DOCTYPE html>
<html lang="pl">
<head>
<meta charset="UTF-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<meta http-equiv="X-UA-Compatible" content="ie=edge"/>
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
<title>CodersCamp2020 | Star Wars API QUIZ</title>
<link rel="stylesheet" href="styles/App.css"/>

<link href="https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap"
rel="stylesheet">
</head>
<body>
<div id="swquiz-app">
</div>
<link
href="https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap"
rel="stylesheet"
/>
</head>
<body>
<div id="swquiz-app"></div>

<script src="src/index.js" type="module"></script>
</body>
<script src="src/index.js" type="module"></script>
</body>
</html>
69 changes: 69 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"clean": "rimraf .cache && rimraf coverage && rimraf dist && rimraf node_modules",
"prebuild": "rimraf dist",
"build": "parcel build index.html --public-url ./",
"format": "prettier --write \"src/**/*.js\" \"src/**/*.ts\" \"test/**/*.js\" \"test/**/*.ts\"",
"format": "prettier --write \"src/**/*.js\" \"src/**/*.ts\" \"test/**/*.js\" \"test/**/*.ts\" \"src/**/*.scss\"",
"start:dev": "parcel index.html",
"test": "jest",
"test:watch": "jest --watch",
Expand All @@ -30,6 +30,7 @@
"devDependencies": {
"@babel/core": "^7.16.0",
"@babel/preset-env": "^7.11.5",
"@parcel/transformer-sass": "^2.0.1",
"@testing-library/dom": "^8.11.1",
"@testing-library/jest-dom": "^5.11.6",
"@testing-library/user-event": "^13.5.0",
Expand Down
1 change: 1 addition & 0 deletions src/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import 'regenerator-runtime/runtime'; //async/await with Parcel
import { App } from './app/App';
import './themes/style.scss'; // Import scss

const ONE_SECOND_MILLIS = 1000;
const SW_API_BASE_URL = process.env.SW_API_BASE_URL || 'https://swapi.dev/api';
Expand Down
3 changes: 3 additions & 0 deletions src/themes/style.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
body {
font-family: 'Montserrat', sans-serif;
}
3 changes: 0 additions & 3 deletions styles/App.css

This file was deleted.

0 comments on commit 3aa4b57

Please sign in to comment.