Skip to content

Commit c8d90cc

Browse files
authored
refactor: update huat images (#12)
* style: add smooth scrolling * refactor: add @2x images * refactor: update huat promo images and text * chore: upgrade packages
1 parent 2482702 commit c8d90cc

11 files changed

Lines changed: 117 additions & 100 deletions

File tree

.eslintrc

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,7 @@
99
"next/core-web-vitals",
1010
"eslint:recommended",
1111
"plugin:@typescript-eslint/recommended",
12-
"plugin:prettier/recommended",
13-
"plugin:react-hooks/recommended"
12+
"plugin:prettier/recommended"
1413
],
1514
"plugins": ["simple-import-sort"],
1615
"rules": {

next-env.d.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
11
/// <reference types="next" />
22
/// <reference types="next/types/global" />
33
/// <reference types="next/image-types/global" />
4+
5+
// NOTE: This file should not be edited
6+
// see https://nextjs.org/docs/basic-features/typescript for more information.

next.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ module.exports = {
66
webpack(config) {
77
config.module.rules.push({
88
test: /\.svg$/,
9+
issuer: /\.[jt]sx?$/,
910
use: ['@svgr/webpack', 'url-loader'],
1011
});
1112

package.json

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@
1010
},
1111
"dependencies": {
1212
"@svgr/webpack": "^5.5.0",
13-
"lodash": "^4.17.19",
14-
"next": "11.1.1",
13+
"lodash": "^4.17.21",
14+
"next": "11.1.3",
1515
"react": "17.0.2",
1616
"react-dom": "17.0.2",
17-
"styled-components": "^5.3.0",
17+
"styled-components": "^5.3.3",
1818
"url-loader": "^4.1.1"
1919
},
2020
"devDependencies": {
@@ -26,14 +26,13 @@
2626
"@typescript-eslint/parser": "^4.20.0",
2727
"eslint": "^7.32.0",
2828
"eslint-config-next": "^11.0.1",
29-
"eslint-config-prettier": "^8.0.3",
29+
"eslint-config-prettier": "^8.3.0",
3030
"eslint-plugin-prettier": "^3.4.0",
3131
"eslint-plugin-react": "^7.24.0",
32-
"eslint-plugin-react-hooks": "^4.2.0",
3332
"eslint-plugin-simple-import-sort": "^7.0.0",
34-
"fork-ts-checker-webpack-plugin": "^6.3.1",
35-
"prettier": "^2.3.2",
36-
"ts-node": "^10.1.0",
37-
"typescript": "4.3.5"
33+
"fork-ts-checker-webpack-plugin": "^6.5.0",
34+
"prettier": "^2.5.1",
35+
"ts-node": "^10.4.0",
36+
"typescript": "4.5.4"
3837
}
3938
}
29.3 KB
Loading
187 KB
Loading
446 KB
Loading
649 KB
Loading

src/components/Projects/data.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export const PROJECT_DATA = [
2222
title: 'Huat',
2323
subtitle: 'App & Web Development',
2424
description:
25-
'Huat is an app dedicated to show the latest lottery results in Singapore. Huat web and mobile app were created to learn about the React and React Native framework respectively.',
25+
'Huat is an app dedicated to show the latest lottery results in Singapore. Huat mobile and web apps were created to learn about the React and React Native framework respectively.',
2626
image: 'images/project/huat_app_light.png',
2727
external_link: [
2828
{

src/styles.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,7 @@ body {
99
-webkit-font-smoothing: antialiased;
1010
-moz-osx-font-smoothing: grayscale;
1111
}
12+
13+
html {
14+
scroll-behavior: smooth;
15+
}

0 commit comments

Comments
 (0)