Skip to content

Commit

Permalink
Added first version
Browse files Browse the repository at this point in the history
  • Loading branch information
Fran Linde Blázquez committed May 16, 2023
1 parent 63ace84 commit 0611908
Show file tree
Hide file tree
Showing 23 changed files with 3,366 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
module.exports = {
env: {
browser: true,
es2021: true,
},
extends: ['standard'],
overrides: [],
parserOptions: {
ecmaVersion: 'latest',
sourceType: 'module',
},
plugins: ['react'],
rules: {
semi: 'off',
'react/react-in-jsx-scope': 'off',
'space-before-function-paren': 'off',
'react/jsx-indent': [2, 2],
'react/prop-types': 'off',
'jsx-quotes': [2, 'prefer-single'],
'multiline-ternary': 'off',
'react/no-unescaped-entities': 'off',
'comma-dangle': 'off',
},
};
11 changes: 11 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"singleQuote": true,
"tabWidth": 2,
"jsxSingleQuote": true,
"arrowParens": "always",
"proseWrap": "never",
"singleAttributePerLine": false,
"quoteProps": "as-needed",
"semi": true,
"printWidth": 150
}
82 changes: 82 additions & 0 deletions data/f1-drivers.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
[
{
"name": "Verstappen",
"surname": "Max",
"nationality": "Netherlands",
"team": "Red Bull",
"id": 1,
"image": "./data/images/1.jpeg"
},
{
"name": "Hamilton",
"surname": "Lewis",
"nationality": "United Kingdom",
"team": "Mercedes",
"id": 2,
"image": "./data/images/2.jpeg"
},
{
"name": "Bottas",
"surname": "Valtteri",
"nationality": "Finland",
"team": "Mercedes",
"id": 3,
"image": "./data/images/3.jpeg"
},
{
"name": "Perez",
"surname": "Sergio",
"nationality": "Mexico",
"team": "Red Bull",
"id": 4,
"image": "./data/images/4.jpeg"
},
{
"name": "Norris",
"surname": "Lando",
"nationality": "United Kingdom",
"team": "McLaren",
"id": 5,
"image": "./data/images/5.jpeg"
},
{
"name": "Leclerc",
"surname": "Charles",
"nationality": "Monaco",
"team": "Ferrari",
"id": 6,
"image": "./data/images/6.jpeg"
},
{
"name": "Sainz",
"surname": "Carlos",
"nationality": "Spain",
"team": "Ferrari",
"id": 7,
"image": "./data/images/7.jpeg"
},
{
"name": "Ricciardo",
"surname": "Daniel",
"nationality": "Australia",
"team": "McLaren",
"id": 8,
"image": "./data/images/8.jpeg"
},
{
"name": "Alonso",
"surname": "Fernando",
"nationality": "Spain",
"team": "Alpine",
"id": 9,
"image": "./data/images/9.jpeg"
},
{
"name": "Ocon",
"surname": "Esteban",
"nationality": "France",
"team": "Alpine",
"id": 10,
"image": "./data/images/10.jpeg"
}
]
Binary file added data/images/1.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added data/images/10.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added data/images/2.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added data/images/3.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added data/images/4.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added data/images/5.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added data/images/6.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added data/images/7.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added data/images/8.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added data/images/9.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added icons/icon-128.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added icons/icon-256.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added icons/icon-512.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
20 changes: 20 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<!DOCTYPE html>
<html lang="en">

<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="icon" type="image/x-icon" href="/icons/icon-256.png">
<link rel="stylesheet" href="/styles/style.css">
<script src="/scripts/main.js"></script>
<link rel="manifest" href="/pwa.webmanifest" />
<title>PWA Small Talk</title>
</head>

<body>
<h1>Bienvenidos a la PWA de Formula 1!</h1>
<div id="pilotos-container" class="container"></div>
</body>

</html>
Loading

0 comments on commit 0611908

Please sign in to comment.