Skip to content

Commit 4daf753

Browse files
authored
Merge pull request #107 from Web-Dev-Path/feature/about-us-first-section
Feature/about us first section
2 parents 8665b48 + 7a21c2d commit 4daf753

33 files changed

+302
-136
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
.next
2+
.idea
23
node_modules
34
.env
45
.DS_Store

.prettierrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
22
"singleQuote": true,
3+
"jsxSingleQuote": true,
34
"arrowParens": "avoid"
45
}

CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,4 +44,13 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
4444

4545
### Added
4646

47+
- About page content (first section)
48+
4749
### Fixed
50+
51+
- component file structure
52+
53+
### Changed
54+
55+
- components folder structure
56+
- relative to absolute imports with aliases

components/Meta.js

Lines changed: 0 additions & 40 deletions
This file was deleted.

components/Nav.js

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
import { useState, useEffect, useRef } from 'react';
22
import Link from 'next/link';
33
import Image from 'next/image';
4-
import Container from './Container';
5-
import styles from '../styles/Nav.module.scss';
6-
import { linksNav } from '../utils/links';
74
import { useRouter } from 'next/router';
5+
import Container from '@/components/containers/Container';
6+
import styles from '@/styles/Nav.module.scss';
7+
import { linksNav } from '@/utils/links';
88

99
export default function Nav() {
1010
const router = useRouter();
@@ -45,14 +45,14 @@ export default function Nav() {
4545
<div ref={containerRef}>
4646
<nav className={styles.nav}>
4747
<div className={styles.nav__logo}>
48-
<Link href="/" passHref>
48+
<Link href='/' passHref>
4949
<a>
5050
<Image
51-
src="/images/svg/logo.svg"
51+
src='/images/svg/logo.svg'
5252
height={115}
5353
width={180}
54-
alt="Logo"
55-
title="Go to the Homepage"
54+
alt='Logo'
55+
title='Go to the Homepage'
5656
/>
5757
</a>
5858
</Link>
@@ -79,12 +79,12 @@ export default function Nav() {
7979
}
8080
})}
8181
<li className={styles.nav__item}>
82-
<Link href="https://webdevpath.slack.com/join/shared_invite/zt-xqqgwwo5-a09BSVWC9ZrHmS6RaMBzVw#/shared-invite/email">
82+
<Link href='https://webdevpath.slack.com/join/shared_invite/zt-xqqgwwo5-a09BSVWC9ZrHmS6RaMBzVw#/shared-invite/email'>
8383
<a
8484
className={`${styles.nav__button} ${
8585
active ? styles.active : ''
8686
}`}
87-
title="Join us"
87+
title='Join us'
8888
>
8989
Join us
9090
</a>
@@ -96,7 +96,7 @@ export default function Nav() {
9696
active ? styles.active : ''
9797
}`}
9898
onClick={() => setActive(active => !active)}
99-
aria-label="toggle navigation"
99+
aria-label='toggle navigation'
100100
>
101101
<span className={styles.nav__hamburger__bar}></span>
102102
<span className={styles.nav__hamburger__bar}></span>

components/Title.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
const Title = ({ title }) => {
2+
return <h2>{title}</h2>;
3+
};
4+
5+
export default Title;

components/ButtonLink.js renamed to components/buttons/ButtonLink.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import Link from 'next/link';
2-
import btnStyles from '../styles/ButtonLink.module.scss';
2+
import btnStyles from '@/styles/ButtonLink.module.scss';
33

44
export default function ButtonLink({
55
customClassName,

components/Card.js renamed to components/containers/Card.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import Image from 'next/image';
22
import Link from 'next/link';
3-
import styles from '../styles/Card.module.scss';
3+
import styles from '@/styles/Card.module.scss';
44

55
export default function Card({
66
image,
@@ -17,8 +17,8 @@ export default function Card({
1717
src={image}
1818
alt={altTag}
1919
className={styles.img}
20-
layout="fill"
21-
objectFit="cover"
20+
layout='fill'
21+
objectFit='cover'
2222
/>
2323
</div>
2424
<h2 className={styles.title}>{title}</h2>

components/CardsColumns.js renamed to components/containers/CardsColumns.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ import { Pagination, Navigation } from 'swiper';
33
import 'swiper/css';
44
import 'swiper/css/pagination';
55
import 'swiper/css/navigation';
6-
import Card from './Card';
7-
import Container from './Container';
8-
import styles from '../styles/CardsColumns.module.scss';
6+
import Card from '@/components/containers/Card';
7+
import Container from '@/components/containers/Container';
8+
import styles from '@/styles/CardsColumns.module.scss';
99

1010
export default function CardsColumns({
1111
images,

components/Container.js renamed to components/containers/Container.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import containerStyles from '../styles/Container.module.scss';
1+
import containerStyles from '@/styles/Container.module.scss';
22

33
export default function Container({ className, children, styles }) {
44
return (

0 commit comments

Comments
 (0)