Skip to content

Commit f870408

Browse files
Merge pull request #104 from Web-Dev-Path/fix/cards-columns-slider-mobile
Adjust swipeable CardsColumns.js on mobile
2 parents 89811ac + 8ba8c1f commit f870408

File tree

12 files changed

+56
-155
lines changed

12 files changed

+56
-155
lines changed

CHANGELOG.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
2525
- Header.js component
2626
- reCAPTCHA
2727
- useIntersect Hook, Reveal container for scrolling using intersection API
28-
- A new swipable feature on CardColumns.js
28+
- swipeable feature on CardsColumns.js
2929

3030
### Fixed
3131

@@ -38,5 +38,4 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
3838
- installed yarn
3939
- normalized buttons' and links' styling
4040
- updated `package.json` commands for macOs
41-
42-
41+
- swipeable CardsColumns.js on mobile

README.md

Lines changed: 2 additions & 87 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
# Web Developer Path
66

7-
The **Web Dev Path** project is an attempt to offer mentoring on how to work with a version-controlled project in a team environment.
7+
The **Web Dev Path** project is an attempt to offer mentoring on how to work with a version-controlled project in a team environment. You can learn more about the project purpose and goals [here](https://github.com/Web-Dev-Path/web-dev-path/wiki).
88

99
Currently, we're developing [a platform](https://webdevpath.co/) in [Next.js](https://nextjs.org/). The platform will be a place where to share ideas about web development and where Non-Profit Organizations can get some help for their websites by sharing their project and needs and getting connected to volunteer junior web developers. This is [how](https://github.com/MarianaSouza/web-dev-path/projects/1) things are going on so far.
1010

@@ -16,8 +16,7 @@ If you are an experienced and a patient-lovely developer, a true rockstar who wa
1616

1717
## How to get started?
1818

19-
Just reach out on [slack](https://join.slack.com/t/webdevpath/shared_invite/zt-xqqgwwo5-a09BSVWC9ZrHmS6RaMBzVw)!
20-
There is where we get together and learn from each other. Once on our `#general` channel, you'll see a pinned message with some guidelines.
19+
Please start watching carefully [our guideline tutorials](https://github.com/Web-Dev-Path/web-dev-path/wiki/Getting-Started), then, reach out on [Slack](https://join.slack.com/t/webdevpath/shared_invite/zt-xqqgwwo5-a09BSVWC9ZrHmS6RaMBzVw). There, is where we get together and learn from each other. Once on our `#general` channel, you'll see a pinned message with some guidelines.
2120

2221
<br />
2322

@@ -35,87 +34,3 @@ This is how to get started locally:
3534
- [Branch out](https://git-scm.com/book/en/v2/Git-Branching-Basic-Branching-and-Merging) by following the structure `feature/add-your-branch-name` or `chore/add-your-branch-name` or `fix/add-your-branch-name` and submit your [PR](https://docs.github.com/en/github/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/about-pull-requests)
3635

3736
<br />
38-
39-
## Resources
40-
41-
Here you will find content and resources related to courses and practical steps to land your first job as a web developer.
42-
43-
## Courses and Certifications
44-
45-
- **Git and GitHub**
46-
47-
- [Git Official Basics](https://git-scm.com/book/en/v2)
48-
- [Git Basis by Colt Steele](https://www.youtube.com/watch?v=USjZcfj8yxE&t=14s)
49-
- [Git and GitHub for Beginners - Crash Course by freeCodeCAmp](https://www.youtube.com/watch?v=RGOj5yH7evk)
50-
- [GitHub Tutorial 2020 - Beginner's Training Guide](https://www.youtube.com/watch?v=iv8rSLsi1xo)
51-
- [GitHub Markdown](https://guides.github.com/features/mastering-markdown/)
52-
- [How to review a PR](https://www.youtube.com/watch?v=lSnbOtw4izI&t=187s)
53-
54-
* **Harvard**
55-
56-
- [CS50x - Introduction to Computer Science](https://cs50.harvard.edu/x/2020/)
57-
- [CS50 Beyond - design and implementations of web apps](https://cs50.harvard.edu/beyond/2019/)
58-
59-
* **JavaScript**
60-
61-
- [Learn JavaScript by Codecademy](https://www.codecademy.com/learn/introduction-to-javascript)
62-
63-
**JS Libraries and Frameworks**
64-
<br />
65-
66-
- _**React**_
67-
- [React Handbook for Beginners](https://www.freecodecamp.org/news/react-beginner-handbook/)
68-
- [React Functional Components, Props, and JSX – React.js Tutorial for Beginners](https://www.freecodecamp.org/news/react-components-jsx-props-for-beginners/)
69-
- [Next.js crash course series](https://www.youtube.com/watch?v=A63UxsQsEbU)
70-
71-
* **PHP**
72-
73-
- [PHP Tutorial](https://www.w3schools.com/php/DEFAULT.asp)
74-
75-
* **Python**
76-
- [Best Python Tutorials](https://www.freecodecamp.org/news/best-python-tutorial/)
77-
78-
- **WordPress**
79-
80-
- [How to Make a Custom Website from Scratch using WordPress (Theme Development) by freeCodeCamp ](https://youtu.be/KibbYf9avko)
81-
- [Professional WordPress Theme & Plugin Development](https://www.udemy.com/course/photoshop-psd-to-wordpress-theme-development-from-scratch/)
82-
- [WordPress Plugin Development](https://youtu.be/mm9aQiLEa10)
83-
84-
<br />
85-
<br />
86-
87-
## Books
88-
89-
- **Command Line**
90-
91-
- [Learn Enough Command Line to Be Dangerous - Michael Hartl](https://www.learnenough.com/command-line-tutorial/basics)
92-
93-
- **JavaScript (JS)**
94-
95-
- [JavaScript for Impatient Programmers - Dr. Axel Raushmayer](https://exploringjs.com/impatient-js/index.html)
96-
97-
- **Programming**
98-
- [How to Design a Program - Matthias Felleisen, Robert Bruce Findler, Matthew Flatt, Shriram Krishnamurthi](https://htdp.org/2020-5-6/Book/index.html)
99-
100-
<br />
101-
<br />
102-
103-
## Publishing a Web Product
104-
105-
- **Launching A Website**
106-
- [How to Put a Website Online: Template, Coding, Domain, Hosting, and DNS](https://youtu.be/NQP89ish9t8)
107-
108-
<br />
109-
<br />
110-
111-
## Presentation
112-
113-
- **A Junior Web Developer Resume**
114-
115-
- [How to write an awesome junior developer résumé in a few simple steps, by freeCodeCamp](https://www.freecodecamp.org/news/how-to-write-an-awesome-junior-developer-resume-in-a-few-simple-steps-316010db80ec/)
116-
117-
- **Your LinkedIn**
118-
- [Tips to Optimize your LinkedIn Profile for Developers](https://www.samanthaming.com/blog/tips-to-optimize-your-linkedin-profile-for-developers/)
119-
120-
<br />
121-
<br />

components/CardsColumns.js

Lines changed: 39 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
import { Swiper, SwiperSlide } from 'swiper/react';
22
import { Pagination, Navigation } from 'swiper';
33
import 'swiper/css';
4-
import "swiper/css/pagination";
5-
import "swiper/css/navigation";
6-
4+
import 'swiper/css/pagination';
5+
import 'swiper/css/navigation';
76
import Card from './Card';
87
import Container from './Container';
98
import styles from '../styles/CardsColumns.module.scss';
@@ -17,42 +16,42 @@ export default function CardsColumns({
1716
linkText,
1817
}) {
1918
return (
20-
<Container>
21-
<Swiper className={styles.swiper}
22-
mousewheel={true}
23-
grabCursor={true}
24-
modules={[Pagination]}
25-
pagination
26-
centerInsufficientSlides={true}
27-
slidesPerView={1.09}
28-
breakpoints={{
29-
769: {
30-
slidesPerView: 2,
31-
spaceBetween: 50,
32-
},
33-
1334: {
34-
slidesPerView: 3,
35-
spaceBetween: 50,
36-
}
37-
}}
38-
>
39-
{titles.map((title, index) =>
40-
<SwiperSlide key={index} className={styles.swiperSlide}>
41-
<div className={styles.inner__content}>
42-
<Card
43-
title={title}
44-
image={images[index]}
45-
altTag={altTags[index]}
46-
content={content[index]}
47-
link={links[index]}
48-
linkText={linkText[index]}
49-
key={index}
50-
/>
51-
</div>
52-
</SwiperSlide>
53-
)}
54-
55-
</Swiper>
56-
</Container>
19+
<Container>
20+
<Swiper
21+
className={styles.swiper}
22+
mousewheel={true}
23+
grabCursor={true}
24+
modules={[Pagination]}
25+
pagination
26+
centerInsufficientSlides={true}
27+
slidesPerView={1}
28+
breakpoints={{
29+
768: {
30+
slidesPerView: 2,
31+
spaceBetween: 20,
32+
},
33+
1334: {
34+
slidesPerView: 3,
35+
spaceBetween: 20,
36+
},
37+
}}
38+
>
39+
{titles.map((title, index) => (
40+
<SwiperSlide key={index} className={styles.swiperSlide}>
41+
<div className={styles.inner__content}>
42+
<Card
43+
title={title}
44+
image={images[index]}
45+
altTag={altTags[index]}
46+
content={content[index]}
47+
link={links[index]}
48+
linkText={linkText[index]}
49+
key={index}
50+
/>
51+
</div>
52+
</SwiperSlide>
53+
))}
54+
</Swiper>
55+
</Container>
5756
);
5857
}

components/Hero.js

Lines changed: 3 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { useState, useEffect } from 'react';
1+
import { useState } from 'react';
22
import Image from 'next/image';
33
import Nav from './Nav';
44
import Container from './Container';
@@ -18,16 +18,7 @@ export default function Hero({
1818
setTitleIndex(titleIndex >= dynamicTitles.length - 1 ? 0 : titleIndex + 1);
1919
};
2020

21-
useEffect(() => {
22-
const dynamicTitleEl = document.getElementById('dynamicTitle');
23-
if (dynamicTitleEl.style.opacity === '1') {
24-
dynamicTitleEl.style.opacity = '0';
25-
} else {
26-
dynamicTitleEl.style.opacity = '1';
27-
}
28-
}, [titleIndex]);
29-
30-
setTimeout(handleTitleIndex, 1350);
21+
setTimeout(handleTitleIndex, 1550);
3122

3223
return (
3324
<div
@@ -47,9 +38,7 @@ export default function Hero({
4738
<div className={styles.header__content__upper}>
4839
<h1 className={titleClass ? `${styles[titleClass]}` : ''}>
4940
{title}
50-
{dynamicTitles && (
51-
<span id="dynamicTitle"> {dynamicTitles[titleIndex]}</span>
52-
)}
41+
{dynamicTitles && <span> {dynamicTitles[titleIndex]}</span>}
5342
</h1>
5443
</div>
5544
<div className={styles.header__content__bottom}>

public/images/about-us-bg.png

-11.4 MB
Loading

public/images/home-bg.png

-8.19 MB
Loading

public/images/join-us.jpg

-180 KB
Loading

public/images/mentor.jpg

-20.9 KB
Loading

public/images/volunteer.jpg

-16.8 KB
Loading

styles/Card.module.scss

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,18 @@
22
@use './mixins' as *;
33

44
.card {
5-
margin: 1.5rem 0;
5+
margin: 1rem 1rem 0 .5rem;
66
padding: 1.5rem;
77
border-radius: 1.5rem;
88
box-shadow: $box-shadow;
99
min-width: 32%;
1010
height: 37rem;
1111

1212
@include desktop {
13-
1413
margin: 1.5rem 1.5rem 0 1.5rem;
15-
1614
&:first-child,
1715
&:last-child {
18-
margin: 1.5rem 0 0 0;
16+
margin: 1.5rem .5rem 0 .5rem;
1917
}
2018
}
2119

0 commit comments

Comments
 (0)