Skip to content

Commit b68abe4

Browse files
committed
Change footer link url
1 parent 74c6d0e commit b68abe4

File tree

5 files changed

+77
-24
lines changed

5 files changed

+77
-24
lines changed

.eslintignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
node_modules
2+
.next

.eslintrc.js

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
module.exports = {
2+
root: true, // Make sure eslint picks up the config at the root of the directory
3+
parserOptions: {
4+
ecmaVersion: 2020, // Use the latest ecmascript standard
5+
sourceType: 'module', // Allows using import/export statements
6+
ecmaFeatures: {
7+
jsx: true // Enable JSX since we're using React
8+
}
9+
},
10+
settings: {
11+
react: {
12+
version: 'detect' // Automatically detect the react version
13+
}
14+
},
15+
env: {
16+
browser: true, // Enables browser globals like window and document
17+
amd: true, // Enables require() and define() as global variables as per the amd spec.
18+
node: true // Enables Node.js global variables and Node.js scoping.
19+
},
20+
extends: [
21+
'next',
22+
'next/core-web-vitals',
23+
'eslint:recommended',
24+
'plugin:react/recommended',
25+
'plugin:jsx-a11y/recommended',
26+
'plugin:prettier/recommended' // Make this the last element so prettier config overrides other formatting rules
27+
],
28+
rules: {
29+
'react/prop-types': 'off',
30+
'prettier/prettier': ['error', {}, { usePrettierrc: true }], // Use our .prettierrc file as source
31+
'react/react-in-jsx-scope': 'off',
32+
'jsx-a11y/anchor-is-valid': [
33+
'error',
34+
{
35+
components: ['Link'],
36+
specialLink: ['hrefLeft', 'hrefRight'],
37+
aspects: ['invalidHref', 'preferButton']
38+
}
39+
]
40+
}
41+
};

.prettierignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
node_modules
2+
.next

.prettierrc

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"semi": true,
3+
"tabWidth": 2,
4+
"printWidth": 100,
5+
"singleQuote": true,
6+
"trailingComma": "none",
7+
"jsxBracketSameLine": true
8+
}

components/Footer/Footer.js

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,33 @@
1-
import React from "react";
2-
import { styled } from "stitches.config";
3-
import Separator from "@components/Separator";
4-
import Stack from "@components/Stack";
5-
import LinkPreview from "@components/LinkPreview";
1+
import React from 'react';
2+
import { styled } from 'stitches.config';
3+
import Separator from '@components/Separator';
4+
import Stack from '@components/Stack';
5+
import LinkPreview from '@components/LinkPreview';
66

77
const Footer = () => {
8-
return (
9-
<footer>
10-
<Stack>
11-
<Separator />
12-
<Paragraph>
13-
Built by <LinkPreview url="https://emilkowal.ski/">Emil</LinkPreview> 🌕
14-
</Paragraph>
15-
</Stack>
16-
</footer>
17-
);
8+
return (
9+
<footer>
10+
<Stack>
11+
<Separator />
12+
<Paragraph>
13+
Built by <LinkPreview url="https://twitter.com/emilkowalski_">Emil</LinkPreview> 🌕
14+
</Paragraph>
15+
</Stack>
16+
</footer>
17+
);
1818
};
1919

20-
const Paragraph = styled("p", {
21-
fontSize: 14,
22-
color: "$gray",
23-
display: "block",
24-
textAlign: "center",
20+
const Paragraph = styled('p', {
21+
fontSize: 14,
22+
color: '$gray',
23+
display: 'block',
24+
textAlign: 'center'
2525
});
2626

27-
const Link = styled("a", {
28-
textDecoration: "none",
29-
color: "$white",
30-
display: "inline-block",
27+
const Link = styled('a', {
28+
textDecoration: 'none',
29+
color: '$white',
30+
display: 'inline-block'
3131
});
3232

3333
export default Footer;

0 commit comments

Comments
 (0)