Skip to content

Commit a98b971

Browse files
committed
chore: Prepare code architecture
1 parent cb24bd3 commit a98b971

10 files changed

+127
-1
lines changed

package-lock.json

+78
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
"eslint-config-airbnb-base": "^15.0.0",
3434
"eslint-config-prettier": "8.8.0",
3535
"eslint-plugin-import": "^2.27.5",
36+
"html-loader": "^4.2.0",
3637
"html-webpack-plugin": "^5.5.3",
3738
"husky": "^8.0.3",
3839
"image-minimizer-webpack-plugin": "^3.8.3",

src/app/index.js

Whitespace-only changes.

src/assets/favicon.svg

+1
Loading

src/index.html

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<!doctype html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8" />
5+
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
6+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
7+
<title>Weather App</title>
8+
</head>
9+
<body></body>
10+
</html>

src/index.js

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
import './index.html';
2+
import './style.css';
3+
import app from './app';
4+
import views from './views';

src/models/index.js

Whitespace-only changes.

src/style.css

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
/* Font: Cantarell */
2+
@import url('https://fonts.googleapis.com/css2?family=Cantarell:ital,wght@0,400;0,700;1,400;1,700&display=swap');
3+
4+
/* Variables */
5+
:root {
6+
}
7+
8+
/* Global styles */
9+
html {
10+
box-sizing: border-box;
11+
font-family: 'Cantarell', 'cursive', system-ui, 'Segoe UI', Helvetica, Arial,
12+
sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
13+
}
14+
15+
*,
16+
*::before,
17+
*::after {
18+
/* CSS Reset */
19+
box-sizing: border-box;
20+
padding: 0;
21+
margin: 0;
22+
/* Catch errors */
23+
font-family: inherit;
24+
font-size: 100%;
25+
vertical-align: baseline;
26+
}
27+
28+
body {
29+
min-height: 100vh;
30+
display: flex;
31+
flex-direction: column;
32+
}

src/views/index.js

Whitespace-only changes.

webpack.config.dev.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ module.exports = merge(common, {
1818
plugins: [
1919
new HtmlWebpackPlugin({
2020
title: 'Task Pilot',
21-
favicon: './src/assets/favicon.ico',
21+
favicon: './src/assets/favicon.svg',
2222
template: './src/index.html',
2323
}),
2424
],

0 commit comments

Comments
 (0)