Skip to content

Commit 4b2ce99

Browse files
committed
added cross-env
fix footer built-with font-size for smaller media revert to onMouseEnter in projects/index.js because scroll mouse event would not work on mobile devices remove font-family from body configured react strict mode in development
1 parent 281852d commit 4b2ce99

File tree

8 files changed

+81
-30
lines changed

8 files changed

+81
-30
lines changed

containers/Landing/header.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export default function Header() {
3030
<div className="container">
3131
<div className="box">
3232
<div className="title">
33-
<span className="block"></span>
33+
<span className="block" />
3434
<h1>Aditya Mitra<span /></h1>
3535
</div>
3636
<div className="role">

containers/Projects/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export default function Projects() {
1515
});
1616
return (
1717
<div
18-
onPointerEnter={showSwipeGuide}
18+
onMouseEnter={showSwipeGuide}
1919
>
2020
<h1 id="myProjects" className="container-header">My Projects</h1>
2121
{cards}

next.config.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,10 @@ const isProduction = process.env.NODE_ENV === 'production';
22

33
module.exports = {
44
webpack: (config, { dev }) => {
5-
config.optimization.minimize = isProduction ? true : false;
5+
config.optimization.minimize = isProduction;
66
return config;
77
},
8+
reactStrictMode: isProduction,
89
images: {
910
domains: ["res.cloudinary.com"],
1011
},

package-lock.json

Lines changed: 50 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,17 @@
11
{
22
"name": "aditya-mitra-portfolio",
3-
"version": "2.2.4",
3+
"version": "2.2.5",
44
"private": true,
55
"scripts": {
6-
"dev": "next dev",
6+
"dev": "next dev --port=5",
77
"build": "next build",
88
"start": "next start",
9-
"deploy": "next build && next export -o portfolio"
9+
"deploy": "cross-env NODE_ENV=production && next build && next export -o portfolio"
1010
},
1111
"dependencies": {
1212
"@chakra-ui/core": "^1.0.0-rc.8",
1313
"@chakra-ui/theme-tools": "^1.0.0-next.3",
14+
"cross-env": "^7.0.2",
1415
"framer-motion": "^2.9.4",
1516
"next": "^10.0.1",
1617
"react": "17.0.0",

public/manifest/manifest.json

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
1-
{
2-
"name": "Aditya Mitra's Portfolio",
3-
"short_name": "Aditya",
4-
"description": "The Portfolio Site of Aditya Mitra.",
5-
"lang": "en",
6-
"start_url": "/",
7-
"display": "standalone",
1+
{
2+
"name": "Aditya Mitra's Portfolio",
3+
"short_name": "Aditya",
4+
"description": "The Portfolio Site of Aditya Mitra.",
5+
"lang": "en",
6+
"start_url": "/",
7+
"display": "standalone",
88
"theme_color": "#000",
9-
"background_color": "#fff",
10-
"icons": [
11-
{
12-
"src": "/manifest/siteIcon512.png",
13-
"sizes": "512x512",
14-
"type": "image/png"
15-
},
16-
{
17-
"src": "/manifest/siteIcon120.png",
18-
"sizes": "120x120",
19-
"type": "image/png",
20-
"purpose": "any maskable"
21-
}
22-
]
9+
"background_color": "#fff",
10+
"icons": [
11+
{
12+
"src": "/manifest/siteIcon512.png",
13+
"sizes": "512x512",
14+
"type": "image/png"
15+
},
16+
{
17+
"src": "/manifest/siteIcon120.png",
18+
"sizes": "120x120",
19+
"type": "image/png",
20+
"purpose": "any maskable"
21+
}
22+
]
2323
}

styles/footer.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,14 +59,15 @@ const allStyles = css`
5959
align-items: center;
6060
text-align: center;
6161
}
62-
@media screen and (max-width: 1082px){
62+
@media screen and ((max-width: 1082px) and (min-width: 590px)){
6363
.built-with {
6464
font-size: 1.5em;
6565
}
6666
}
6767
@media screen and (max-width: 350px) {
6868
.built-with {
6969
margin: 1.5rem 0;
70+
font-size: 1.5em;
7071
}
7172
}
7273
.built-with .border{

styles/globals.css

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ html,
2929
body {
3030
padding: 0;
3131
margin: 0;
32-
font-family: guildof;
3332
overflow-x: hidden;
3433
scrollbar-color: #3d3d5c #b3ccff;
3534
-scrollbar-width: 12px;

0 commit comments

Comments
 (0)