Skip to content

Commit

Permalink
Merge branch 'fix'
Browse files Browse the repository at this point in the history
  • Loading branch information
ElynnaChuang committed May 16, 2023
2 parents ae8dd62 + 7be2fd0 commit ff82817
Show file tree
Hide file tree
Showing 3 changed files with 109 additions and 3 deletions.
100 changes: 100 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,100 @@
# JavaScript 30 Challenges with React

### This web contains all my JavaScript 30 practices built with the React framework, and these 30 challenges on Javascript is designed by Wes Bos.

> You can see the course here : https://javascript30.com/
> My JS30 website : https://elynnachuang.github.io/js30/
![homepage](./public/images/screenshot.png)

---

## 準備 (Prerequisites)

運行此專案前,最好先確定 Node.js 的版本為 18.16.0 或是更新

You're going to need : Node.js v18.16.0 or newer

---

## 啟動專案 (Start Project)

1. 開啟終端機,將此專案複製至本機電腦

Open your terminal and clone this project to your computer.

```
git clone https://github.com/ElynnaChuang/js30.git
```

2. 進入專案資料夾

Go into js30 folder

```
cd js30
```

3. 安裝套件

Install all packages

```
npm install // or run 'npm i'
```

4. 啟動程式

Start this project

```
npm run start
```

5. 專案成功在 http://localhost:3000/js30 啟動

You can now see the web is running at http://localhost:3000/js30

6. 結束程式

End the web

```
ctrl + c
```

---

### 任務清單 (Challenges List)

- [x] Day 1 - JavaScript Drum Kit
- [x] Day 2 - CSS + JS Clock
- [x] Day 3 - Playing with CSS Variables and JS
- [x] Day 4 - Array Cardio Day 1
- [x] Day 5 - Flex Panels Image Gallery
- [x] Day 6 - Ajax Type Ahead
- [x] Day 7 - Array Cardio Day 2
- [x] Day 8 - Fun with HTML5 Canvas
- [x] Day 9 - 14 Must Know Dev Tools Tricks
- [x] Day 10 - Hold Shift to Check Multiple Checkboxes
- [x] Day 11 - Custom HTML5 Video Player
- [x] Day 12 - Key Sequence Detection (KONAMI CODE)
- [x] Day 13 - Slide In on Scroll
- [x] Day 14 - Object and Arrays - Reference VS Copy
- [x] Day 15 - LocalStorage and Event Delegation
- [x] Day 16 - CSS Text Shadow Mouse Move Effect
- [x] Day 17 - Sorting Band Names without articles
- [x] Day 18 - Tally String Times with Reduce
- [x] Day 19 - Unreal Webcam Fun
- [x] Day 20 - Native Speech Recognition
- [x] Day 21 - Geolocation based Speedometer and Compass
- [x] Day 22 - Follow Along Links
- [x] Day 23 - Speech Synthesis
- [ ] Day 24 - Sticky Nav
- [ ] Day 25 - Event Capture, Propagation, Bubbling and Once
- [ ] Day 26 - Stripe Follow Along Dropdown
- [ ] Day 27 - Click and Drag to Scroll
- [ ] Day 28 - Video Speed Controller UI
- [ ] Day 29 - Countdown Clock
- [ ] Day 30 - Whack A Mole Game
Binary file added public/images/screenshot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 9 additions & 3 deletions src/Components/Card/styles.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,9 @@
%text_break {
overflow: hidden;
display: -webkit-box;

text-overflow: ellipsis;

-webkit-box-orient: vertical;
-webkit-line-clamp: 2;
}

.card {
Expand Down Expand Up @@ -45,7 +43,6 @@
gap: 0.5rem;
justify-content: center;

height: 100%;
padding: 1.25rem;

font-family: Barlow, sans-serif;
Expand All @@ -56,22 +53,31 @@
& .title {
@extend %text_break;

@include more768 {
-webkit-line-clamp: 1;
}

font-size: 1rem;
font-weight: 600;
line-height: 140%;
color: #5b6777;

-webkit-line-clamp: 2;
}

& .focus {
@extend %text_break;

width: 100%;
height: 36px;
padding-left: 2px;

font-size: 0.8rem;
font-weight: 600;
line-height: 140%;
color: #8090a6;

-webkit-line-clamp: 2;
}
}

Expand Down

0 comments on commit ff82817

Please sign in to comment.