Fix linting issues

pull/1331/head
Kamran Ahmed 3 years ago
parent ba1b876e14
commit d5b091a5ed
  1. 3
      .eslintrc
  2. 2
      components/content-page-header.tsx
  3. 2
      components/footer.tsx
  4. 2
      components/global-header.tsx
  5. 12348
      package-lock.json
  6. 9
      package.json
  7. 2
      pages/about.tsx
  8. 4
      pages/thanks.tsx
  9. 6
      scripts/build.sh
  10. 1829
      yarn.lock

@ -7,6 +7,7 @@
"rules": { "rules": {
"@next/next/no-img-element": [ "@next/next/no-img-element": [
"off" "off"
] ],
"react/display-name": ["off"]
} }
} }

@ -35,7 +35,7 @@ export function ContentPageHeader(props: ContentPageHeaderProps) {
fontWeight={600} fontWeight={600}
color='gray.500' color='gray.500'
> >
<Image rounded={'full'} mr='7px' w='22px' src={author.picture} /> <Image alt={author.name} rounded={'full'} mr='7px' w='22px' src={author.picture} />
{author.name} {author.name}
</Link> </Link>
<Text d={['none', 'inline', 'inline']} mx='7px' color='gray.500' as='span'>&middot;</Text> <Text d={['none', 'inline', 'inline']} mx='7px' color='gray.500' as='span'>&middot;</Text>

@ -40,7 +40,7 @@ export function Footer() {
<Flex spacing={0} alignItems='center' color='gray.400'> <Flex spacing={0} alignItems='center' color='gray.400'>
<Link d='flex' alignItems='center' fontWeight={600} _hover={{ textDecoration: 'none', color: 'white' }} <Link d='flex' alignItems='center' fontWeight={600} _hover={{ textDecoration: 'none', color: 'white' }}
href='/'> href='/'>
<Image h='25px' w='25px' src='/logo.svg' mr='6px' /> <Image alt='' h='25px' w='25px' src='/logo.svg' mr='6px' />
roadmap.sh roadmap.sh
</Link> </Link>
<Text as='span' mx='7px'>by</Text> <Text as='span' mx='7px'>by</Text>

@ -98,7 +98,7 @@ export function GlobalHeader() {
fontWeight={600} fontWeight={600}
_hover={{ textDecoration: 'none' }} _hover={{ textDecoration: 'none' }}
fontSize='18px'> fontSize='18px'>
<Image h='30px' w='30px' src='/logo.svg' mr='10px' /> <Image alt='' h='30px' w='30px' src='/logo.svg' mr='10px' />
<Text d={['block', 'none', 'block']} as='span'>roadmap.sh</Text> <Text d={['block', 'none', 'block']} as='span'>roadmap.sh</Text>
</Link> </Link>
</Box> </Box>

12348
package-lock.json generated

File diff suppressed because it is too large Load Diff

@ -2,9 +2,12 @@
"name": "roadmap-next", "name": "roadmap-next",
"version": "0.1.0", "version": "0.1.0",
"private": true, "private": true,
"license": "BSD-4-Clause",
"scripts": { "scripts": {
"dev": "next dev", "dev": "NODE_ENV=dev next",
"build": "next build", "serve:out": "serve out",
"build": "./scripts/build.sh",
"deploy": "NODE_DEBUG=gh-pages gh-pages -d out -t",
"start": "next start", "start": "next start",
"lint": "next lint", "lint": "next lint",
"meta:sitemap": "node scripts/sitemap.js", "meta:sitemap": "node scripts/sitemap.js",
@ -36,9 +39,11 @@
"eslint": "7.32.0", "eslint": "7.32.0",
"eslint-config-next": "11.0.1", "eslint-config-next": "11.0.1",
"eslint-config-prettier": "^8.3.0", "eslint-config-prettier": "^8.3.0",
"gh-pages": "^3.2.3",
"glob": "^7.1.7", "glob": "^7.1.7",
"husky": "^7.0.1", "husky": "^7.0.1",
"pretty-quick": "^3.1.1", "pretty-quick": "^3.1.1",
"serve": "^12.0.0",
"typescript": "4.3.5" "typescript": "4.3.5"
}, },
"husky": { "husky": {

@ -17,7 +17,7 @@ function AboutHeader() {
/> />
<Container maxW='container.md' position='relative' textAlign='left'> <Container maxW='container.md' position='relative' textAlign='left'>
<Flex alignItems='center'> <Flex alignItems='center'>
<Image d={['none', 'none', 'block']} src='/kamran.jpeg' h='170px' rounded='10px' mr='25px' /> <Image alt={'Kamran'} d={['none', 'none', 'block']} src='/kamran.jpeg' h='170px' rounded='10px' mr='25px' />
<Box> <Box>
<Heading as='h1' color='black' fontSize={['35px', '35px', '40px']} fontWeight={700} mb='10px'>Hello, I am <Heading as='h1' color='black' fontSize={['35px', '35px', '40px']} fontWeight={700} mb='10px'>Hello, I am
Kamran Ahmed Kamran Ahmed

@ -35,6 +35,7 @@ export default function Thanks() {
grateful for that.</Text> grateful for that.</Text>
</Box> </Box>
<Image width='190px' <Image width='190px'
alt={''}
rounded='100%' rounded='100%'
src='https://media.giphy.com/media/l0HUgXEoxsNZjZNq8/giphy.gif?cid=790b76114c74e11ed7ce8d65995b6893524407ed7b7748bc&rid=giphy.gif&ct=g' src='https://media.giphy.com/media/l0HUgXEoxsNZjZNq8/giphy.gif?cid=790b76114c74e11ed7ce8d65995b6893524407ed7b7748bc&rid=giphy.gif&ct=g'
ml='50px' ml='50px'
@ -48,18 +49,21 @@ export default function Thanks() {
<Stack spacing='10px'> <Stack spacing='10px'>
<Box borderWidth={1} borderRadius='5px' p='20px' bg='teal.50'> <Box borderWidth={1} borderRadius='5px' p='20px' bg='teal.50'>
<Image <Image
alt='OSS Capital'
w='400px' w='400px'
src='/sponsors/oss-capital-logo.svg' src='/sponsors/oss-capital-logo.svg'
/> />
</Box> </Box>
<Box borderWidth={1} borderRadius='5px' p='20px' bg='teal.50'> <Box borderWidth={1} borderRadius='5px' p='20px' bg='teal.50'>
<Image <Image
alt='Forbes'
w='250px' w='250px'
src='/sponsors/forbes-logo.png' src='/sponsors/forbes-logo.png'
/> />
</Box> </Box>
<Box borderWidth={1} borderRadius='5px' p='20px' bg='teal.50'> <Box borderWidth={1} borderRadius='5px' p='20px' bg='teal.50'>
<Image <Image
alt='Zalando'
w='300px' w='300px'
src='/sponsors/zalando-logo.svg' src='/sponsors/zalando-logo.svg'
/> />

@ -0,0 +1,6 @@
#!/usr/bin/env bash
NODE_ENV=prod next build
NODE_ENV=prod next export
echo 'roadmap.sh' > out/CNAME
touch out/.nojekyll

File diff suppressed because it is too large Load Diff
Loading…
Cancel
Save