Skip to content

Commit f6166ed

Browse files
committed
linting ree
1 parent b579ee2 commit f6166ed

38 files changed

+1316
-1292
lines changed

.eslintrc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"extends": ["next", "next/core-web-vitals"],
3-
"rules": {
4-
"react/display-name": "off"
5-
}
2+
"extends": ["next", "next/core-web-vitals"],
3+
"rules": {
4+
"react/display-name": "off"
5+
}
66
}

.prettierignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
env
2+
dist
3+
node_modules

.prettierrc.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"$schema": "http://json.schemastore.org/prettierrc",
3+
"tabWidth": 4,
4+
"useTabs": true,
5+
"semi": false,
6+
"singleQuote": true,
7+
"arrowParens": "avoid",
8+
"trailingComma": "es5",
9+
"printWidth": 100
10+
}

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ The `pages/api` directory is mapped to `/api/*`. Files in this directory are tre
2222

2323
To learn more about Next.js, take a look at the following resources:
2424

25-
- [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API.
26-
- [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial.
25+
- [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API.
26+
- [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial.
2727

2828
You can check out [the Next.js GitHub repository](https://github.com/vercel/next.js/) - your feedback and contributions are welcome!
2929

components/banner.js

Lines changed: 23 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,26 @@
1-
import styles from "./banner.module.scss";
1+
import styles from './banner.module.scss'
22
// import SplashImage from "../assets/splash.png";
33
// import Image from "next/image"
4-
import { useMedia } from "react-use";
5-
import classNames from "classnames";
4+
import { useMedia } from 'react-use'
5+
import classNames from 'classnames'
66
export function Banner() {
7-
const small = useMedia("(max-width:500px)",false);
8-
const med = useMedia("(max-width:1000px)",false) && !small;
9-
const large = useMedia("(min-width:1000px)",true) && !med;
10-
return (
11-
<div className={styles.root}>
12-
<div className={classNames(styles.content,large && styles.large,med&&styles.medium,small&&styles.small)}>
13-
{/* <Image src={SplashImage} alt={"splash"} width={globalThis && globalThis.window && globalThis.window?.innerWidth||100}></Image> */}
14-
<div className={styles.image}></div>
15-
<div className={styles.gradient}></div>
16-
</div>
17-
</div>
18-
);
19-
}
7+
const small = useMedia('(max-width:500px)', false)
8+
const med = useMedia('(max-width:1000px)', false) && !small
9+
const large = useMedia('(min-width:1000px)', true) && !med
10+
return (
11+
<div className={styles.root}>
12+
<div
13+
className={classNames(
14+
styles.content,
15+
large && styles.large,
16+
med && styles.medium,
17+
small && styles.small
18+
)}
19+
>
20+
{/* <Image src={SplashImage} alt={"splash"} width={globalThis && globalThis.window && globalThis.window?.innerWidth||100}></Image> */}
21+
<div className={styles.image}></div>
22+
<div className={styles.gradient}></div>
23+
</div>
24+
</div>
25+
)
26+
}

components/banner.module.scss

Lines changed: 25 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,27 @@
11
.root {
2-
display: flex;
3-
justify-content: center;
4-
z-index: -1;
5-
position: absolute;
6-
width: 100%;
7-
overflow-x: hidden;
8-
> .content {
9-
position: relative;
10-
width:100vw;
11-
overflow-x: hidden;
12-
> .gradient {
13-
background: linear-gradient(
14-
180deg,
15-
#333333 0%,
16-
rgba(255, 255, 255, 0) 100%
17-
);
18-
position: absolute;
19-
top: 0;
20-
left: 0;
21-
width: 100%;
22-
height: 100%;
23-
}
24-
>.image{
25-
background-image: url("/splash.png");
26-
background-size: cover;
27-
width: 100vw;
28-
height: 100vh;
29-
}
30-
}
2+
display: flex;
3+
justify-content: center;
4+
z-index: -1;
5+
position: absolute;
6+
width: 100%;
7+
overflow-x: hidden;
8+
> .content {
9+
position: relative;
10+
width: 100vw;
11+
overflow-x: hidden;
12+
> .gradient {
13+
background: linear-gradient(180deg, #333333 0%, rgba(255, 255, 255, 0) 100%);
14+
position: absolute;
15+
top: 0;
16+
left: 0;
17+
width: 100%;
18+
height: 100%;
19+
}
20+
> .image {
21+
background-image: url('/splash.png');
22+
background-size: cover;
23+
width: 100vw;
24+
height: 100vh;
25+
}
26+
}
3127
}

0 commit comments

Comments
 (0)