Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Leader Board #2

Merged
merged 46 commits into from
Oct 11, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
46 commits
Select commit Hold shift + click to select a range
6c8c62e
Add package.json file
MahdiSohaily Oct 9, 2022
7b400cf
Add webpack to the project
MahdiSohaily Oct 9, 2022
c7d7ebb
Add project Images
MahdiSohaily Oct 9, 2022
91c5cee
Add project design images
MahdiSohaily Oct 9, 2022
a2c7c69
Add readme.md file template
MahdiSohaily Oct 9, 2022
a377fef
Add index.html Starter file
MahdiSohaily Oct 9, 2022
771d8f0
Add pase javascript file
MahdiSohaily Oct 9, 2022
936fb9d
Update Package.json file
MahdiSohaily Oct 9, 2022
88b6930
Add webpack config file
MahdiSohaily Oct 9, 2022
a3d6ca3
Update webpack config file
MahdiSohaily Oct 9, 2022
7b65463
Update package.json file
MahdiSohaily Oct 9, 2022
893d6ac
Linked JS file to HTML file
MahdiSohaily Oct 9, 2022
0dff9f7
Add html-webpack-plugin
MahdiSohaily Oct 9, 2022
b2aa354
Update webpack config file
MahdiSohaily Oct 9, 2022
1395851
Update webpack config file
MahdiSohaily Oct 9, 2022
46bf5bf
Update webpack config file
MahdiSohaily Oct 9, 2022
1aad0c6
Update files path
MahdiSohaily Oct 9, 2022
d9ce58e
Update JS file path
MahdiSohaily Oct 9, 2022
30fc838
Add webpack web server
MahdiSohaily Oct 9, 2022
ef84c17
Update webpack config file
MahdiSohaily Oct 9, 2022
d864490
Update webpack config file
MahdiSohaily Oct 9, 2022
45f8453
Update webpack config file
MahdiSohaily Oct 9, 2022
74d5989
Add style file
MahdiSohaily Oct 9, 2022
9c529ea
Update webpack config file
MahdiSohaily Oct 9, 2022
702b2fa
Add style loader plugin
MahdiSohaily Oct 9, 2022
39b9473
Add HTML loader
MahdiSohaily Oct 9, 2022
cd45a83
Update webpack config file
MahdiSohaily Oct 9, 2022
ba9df01
Update webpack config file
MahdiSohaily Oct 9, 2022
15b4528
Add CSS reset styles
MahdiSohaily Oct 9, 2022
1c35d25
Add project style guide file
MahdiSohaily Oct 9, 2022
68c8d55
Add project font family
MahdiSohaily Oct 9, 2022
dbcab70
Add project font family
MahdiSohaily Oct 9, 2022
9e1ec44
Add project color them
MahdiSohaily Oct 9, 2022
eca7bde
Add size variables
MahdiSohaily Oct 9, 2022
7f0b27c
Add font weight
MahdiSohaily Oct 9, 2022
071988d
Add linters
MahdiSohaily Oct 9, 2022
05ecf0e
Add StyleLint
MahdiSohaily Oct 9, 2022
f4afe35
Add ESLint
MahdiSohaily Oct 9, 2022
689aecd
Add form data section styles
MahdiSohaily Oct 9, 2022
10405eb
Update form section styles
MahdiSohaily Oct 10, 2022
307e1af
Add data table section
MahdiSohaily Oct 10, 2022
a7befaa
Add final style of data section
MahdiSohaily Oct 10, 2022
a7e29b9
Update Readme file
MahdiSohaily Oct 10, 2022
7532b64
Update style file structure
MahdiSohaily Oct 10, 2022
f09e1cd
Update style file structure
MahdiSohaily Oct 10, 2022
9b716e7
Update style file structure
MahdiSohaily Oct 10, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
25 changes: 25 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"env": {
"browser": true,
"es6": true,
"jest": true
},
"parser": "babel-eslint",
"parserOptions": {
"ecmaVersion": 2018,
"sourceType": "module"
},
"extends": ["airbnb-base"],
"rules": {
"no-shadow": "off",
"no-param-reassign": "off",
"eol-last": "off",
"import/extensions": [ 1, {
"js": "always", "json": "always"
}]
},
"ignorePatterns": [
"dist/",
"build/"
]
}
70 changes: 70 additions & 0 deletions .github/workflows/linters.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
name: Linters

on: pull_request

env:
FORCE_COLOR: 1

jobs:
lighthouse:
name: Lighthouse
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: "12.x"
- name: Setup Lighthouse
run: npm install -g @lhci/cli@0.7.x
- name: Lighthouse Report
run: lhci autorun --upload.target=temporary-public-storage --collect.staticDistDir=.
webhint:
name: Webhint
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: "12.x"
- name: Setup Webhint
run: |
npm install --save-dev hint@7.x
[ -f .hintrc ] || wget https://raw.githubusercontent.com/microverseinc/linters-config/master/html-css-js/.hintrc
- name: Webhint Report
run: npx hint .
stylelint:
name: Stylelint
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: "12.x"
- name: Setup Stylelint
run: |
npm install --save-dev stylelint@13.x stylelint-scss@3.x stylelint-config-standard@21.x stylelint-csstree-validator@1.x
[ -f .stylelintrc.json ] || wget https://raw.githubusercontent.com/microverseinc/linters-config/master/html-css-js/.stylelintrc.json
- name: Stylelint Report
run: npx stylelint "**/*.{css,scss}"
eslint:
name: ESLint
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: "12.x"
- name: Setup ESLint
run: |
npm install --save-dev eslint@7.x eslint-config-airbnb-base@14.x eslint-plugin-import@2.x babel-eslint@10.x
[ -f .eslintrc.json ] || wget https://raw.githubusercontent.com/microverseinc/linters-config/master/html-css-js/.eslintrc.json
- name: ESLint Report
run: npx eslint .
nodechecker:
name: node_modules checker
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v2
- name: Check node_modules existence
run: |
if [ -d "node_modules/" ]; then echo -e "\e[1;31mThe node_modules/ folder was pushed to the repo. Please remove it from the GitHub repository and try again."; echo -e "\e[1;32mYou can set up a .gitignore file with this folder included on it to prevent this from happening in the future." && exit 1; fi
20 changes: 20 additions & 0 deletions .stylelintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"extends": ["stylelint-config-standard"],
"plugins": ["stylelint-scss", "stylelint-csstree-validator"],
"rules": {
"at-rule-no-unknown": [
true,
{
"ignoreAtRules": ["tailwind", "apply", "variants", "responsive", "screen"]
}
],
"scss/at-rule-no-unknown": [
true,
{
"ignoreAtRules": ["tailwind", "apply", "variants", "responsive", "screen"]
}
],
"csstree/validator": true
},
"ignoreFiles": ["build/**", "dist/**", "**/reset*.css", "**/bootstrap*.css", "**/*.js", "**/*.jsx"]
}
69 changes: 68 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,68 @@
# Leaderboard
# Leader Board - JavaScript Project
## Table of contents

- [Overview](#overview)
- [The challenge](#the-challenge)
- [Screenshot](#screenshot)
- [Links](#links)
- [Project Setup](#Setup-Project)
- [commands](#command)
- [My process](#my-process)
- [Built with](#built-with)
- [What I learned](#what-i-learned)
- [Continued development](#continued-development)
- [Useful resources](#useful-resources)
- [Author](#author)
- [Acknowledgments](#acknowledgments)


## Overview

### The challenge

- Create a new game with the name of your choice by using the API.
- Make sure that you saved the ID of your game that will be returned by API.
- Implement the "Refresh" button that will get all scores for a game created by you from the API (receiving data from the API and parsing the JSON).
- Implement the form "Submit" button that will save a score for a game created by you (sending data to the API).
- Use arrow functions instead of the function keyword.
- Use async and await JavaScript features to consume the API

## Setup Project
### commands
In order to run this project locally in your machine follow the following steps

```
git clone https://github.com/MahdiSohaily/Leaderboard.git
cd Todo-app
npm install
npm run dev
npm run start
```

### Screenshot

| Desktop version | Mobile Version |
| -------------------------------------------- | :-----------------------------------------: |
| ![Solution Screenshot](./design/desktop.png) | ![Solution Screenshot](./design/mobile.png) |

### Links

- Live Site URL: [See Demo](https://mahdisohaily.github.io/Todo-app/)

## My process

### Built with

- Semantic HTML5 markup
- CSS custom properties
- Flexbox
- CSS Grid
- Mobile-first workflow
- Webpack 5
- JavaScript

## Author

- Frontend Mentor - [@MahdiSohaily](https://www.frontendmentor.io/profile/MahdiSohaily)
- Twitter - [@Mahdi_Rezaei_AF](https://twitter.com/Mahdi_Rezaei_AF)
- linkedIn - [@Mahdi-rezaei](https://www.linkedin.com/in/mahdi-rezaei-74705713b)
Binary file added design/desktop.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added design/mobile.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.