Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
140 commits
Select commit Hold shift + click to select a range
51796c7
solution
May 4, 2026
6e04ffc
solution
May 5, 2026
46d8b8c
Update Node.js version to 20.x in setup
mykhalenych May 13, 2026
7f882f1
Merge pull request #993 from mykhalenych/patch-7
marina-tilniak May 13, 2026
8844bbc
solution
May 17, 2026
349c439
solution
May 17, 2026
fb3007e
solution
May 17, 2026
06a7c02
solution
May 17, 2026
dab0c87
solution
May 17, 2026
1921a82
solution
May 17, 2026
7a7aa7c
solution
May 17, 2026
f62b537
fix: use command parameter for base path in vite config
May 18, 2026
196f68a
solution
May 18, 2026
f20d850
solution
May 18, 2026
9ca6292
solution
May 18, 2026
d14b190
solution
May 18, 2026
d538885
solution
May 18, 2026
17d3d66
solution
May 18, 2026
eedee98
solution
May 18, 2026
d9e8c65
solution
May 18, 2026
0a76045
solution
May 18, 2026
9c1b66b
slution
May 18, 2026
cf64f15
solution
May 18, 2026
f4ab9f7
solution
May 18, 2026
1caaf7a
solution
May 18, 2026
787d5e1
solution
May 18, 2026
240dbef
solution
May 18, 2026
ab13a55
solution
May 18, 2026
7bbd9d1
solution
May 19, 2026
1ba3c86
solution
May 19, 2026
4da4db9
solution
May 19, 2026
1b763eb
solution
May 19, 2026
cba0ee1
solution
May 19, 2026
a1d7abd
solution
May 19, 2026
5938c84
solution
May 19, 2026
af70604
solution
May 19, 2026
44c2508
solution
May 19, 2026
e9ab3c2
solution
May 19, 2026
3fe4aef
solution
May 19, 2026
fe0c908
solution
May 19, 2026
c37d9d5
solution
May 19, 2026
72d3cd5
solution
May 19, 2026
772171e
solution
May 19, 2026
1269cd9
solution
May 19, 2026
38b314d
solution
May 19, 2026
d8bbe00
solution
May 19, 2026
b8e8456
solution
May 19, 2026
e2236cd
solution
May 19, 2026
b818c00
solution
May 19, 2026
f41479f
solution
May 19, 2026
4de6dea
solution
May 19, 2026
9239233
solution
May 19, 2026
251a1d7
solution
May 19, 2026
9c24a9f
solution
May 19, 2026
6f5c2e3
solution
May 19, 2026
f46a6a3
solution
May 19, 2026
ec067bb
solution
May 19, 2026
94c9c27
solution
May 19, 2026
5065e31
solution
May 19, 2026
71cfd72
solution
May 19, 2026
bccc914
solution
May 19, 2026
5402e31
solution
May 19, 2026
3720c8a
solution
May 19, 2026
ba59907
solution
May 19, 2026
b6ce7b6
solution
May 19, 2026
e872996
solution
May 19, 2026
11ea7b4
solution
May 19, 2026
f642ef5
solution
May 19, 2026
e97b807
solution
May 19, 2026
433c2ba
solution
May 19, 2026
6b74f85
solution
May 19, 2026
d614c9e
solution
May 19, 2026
9a133bb
solution
May 19, 2026
cab5cc0
solution
May 19, 2026
0a54e9c
solution
May 19, 2026
57ee233
solution
May 19, 2026
0364dc7
solution
May 19, 2026
4066dbf
solution
May 19, 2026
4bfd1ab
solution
May 19, 2026
d33b9dc
solution
May 19, 2026
0311b0c
solution
May 19, 2026
71727c3
solution
May 19, 2026
fa18057
solution
May 20, 2026
d1f907e
solution
May 20, 2026
75f0701
solution
May 20, 2026
99d8c13
solution
May 20, 2026
881cbe0
solution
May 20, 2026
3d7930c
solution
May 20, 2026
37863d8
solution
May 20, 2026
38cd61c
solution
May 20, 2026
d69bf9b
solution
May 20, 2026
068e61f
solution
May 20, 2026
ca58528
solution
May 20, 2026
a7b686f
solution
May 20, 2026
ad303dc
solution
May 20, 2026
1ea4464
solution
May 20, 2026
979c52d
solution
May 20, 2026
40b7a01
solution
May 20, 2026
146a23e
solution
May 20, 2026
10d31b1
solution
May 20, 2026
0e7bda1
solution
May 20, 2026
6c166b6
solution
May 20, 2026
393177d
solution
May 20, 2026
7fcf1f7
solution
May 20, 2026
5057c2c
solution
May 20, 2026
31d3e38
solution
May 20, 2026
8fb6334
solution
May 20, 2026
199a95e
solution
May 20, 2026
e42fd63
solution
May 20, 2026
a88934c
solution
May 20, 2026
066a443
solution
May 20, 2026
30f23f1
solution
May 20, 2026
f903772
solution
May 20, 2026
a6b11c7
solution
May 20, 2026
deadda9
solution
May 20, 2026
1c5a0c8
solution
May 20, 2026
6844a91
solution
May 20, 2026
e0fc0d4
solution
May 20, 2026
579cdbf
solution
May 20, 2026
c4d8ccd
solution
May 20, 2026
da0dff1
solution
May 20, 2026
9b3e1e1
solution
May 20, 2026
d12cbc4
solution
May 20, 2026
c5eb9ad
soplution
May 21, 2026
8110221
solution
May 21, 2026
03471c0
solution
May 21, 2026
c43179e
solution
May 21, 2026
ed3045c
solutioon
May 21, 2026
b82087b
solution
May 21, 2026
d7a5ad5
solution
May 21, 2026
5aff78e
solution
May 21, 2026
e2bc467
solution
May 21, 2026
7f52692
solution
May 21, 2026
4d8deaf
solution
May 21, 2026
125ecf9
solution
May 21, 2026
5e6fc4c
solution
May 21, 2026
411126b
solution
May 21, 2026
072cfa1
solution
May 21, 2026
821040c
solution
May 21, 2026
c2fbe1b
solution
May 21, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions cypress.config.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
const { defineConfig } = require('cypress');
/* eslint-disable */
import { defineConfig } from 'cypress';

module.exports = defineConfig({
export default defineConfig({
e2e: {
baseUrl: 'http://localhost:3000',
specPattern: 'cypress/integration/**/*.spec.{js,ts,jsx,tsx}',
specPattern: 'cypress/integration/**/*.{cy,spec}.{js,ts,jsx,tsx}',
},
video: true,
viewportHeight: 1920,
Expand Down
3 changes: 2 additions & 1 deletion cypress/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"extends": "@mate-academy/students-ts-config",
"compilerOptions": {
"sourceMap": false
"sourceMap": false,
"baseUrl": "."
}
}
5 changes: 3 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Vite + React + TS</title>
<title>Welcome to Nice Gadgets store!</title>
<link rel="icon" type="image/x-icon" href="./src/images/icons/favicon.svg" />
</head>
<body>
<body class="page__body-open">
<div id="root"></div>
<script type="module" src="/src/index.tsx"></script>
</body>
Expand Down
31 changes: 26 additions & 5 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react_phone-catalog",
"homepage": "react_phone-catalog",
"homepage": "https://u5135039754-dev.github.io/react_phone-catalog/",
"version": "0.1.0",
"keywords": [],
"author": "Mate Academy",
Expand All @@ -12,11 +12,12 @@
"react": "^18.3.1",
"react-dom": "^18.3.1",
"react-router-dom": "^6.25.1",
"react-transition-group": "^4.4.5"
"react-transition-group": "^4.4.5",
"swiper": "^12.1.4"
},
"devDependencies": {
"@cypress/react18": "^2.0.1",
"@mate-academy/scripts": "^1.8.5",
"@mate-academy/scripts": "^2.1.3",
"@mate-academy/students-ts-config": "*",
"@mate-academy/stylelint-config": "*",
"@types/node": "^20.14.10",
Expand Down
2 changes: 2 additions & 0 deletions public/api/accessories.json
Original file line number Diff line number Diff line change
Expand Up @@ -1428,3 +1428,5 @@
"cell": ["Wi-Fi", "Bluetooth", "LTE"]
}
]


2 changes: 2 additions & 0 deletions public/api/phones.json
Original file line number Diff line number Diff line change
Expand Up @@ -5833,3 +5833,5 @@
"cell": ["GPRS", "EDGE", "WCDMA", "UMTS", "HSPA", "LTE", "5G"]
}
]


3 changes: 2 additions & 1 deletion public/api/products.json
Original file line number Diff line number Diff line change
Expand Up @@ -2715,4 +2715,5 @@
"year": 2022,
"image": "img/phones/apple-iphone-14-pro/gold/00.webp"
}
]
]

2 changes: 2 additions & 0 deletions public/api/tablets.json
Original file line number Diff line number Diff line change
Expand Up @@ -1700,3 +1700,5 @@
"cell": ["Not applicable"]
}
]


2 changes: 1 addition & 1 deletion setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: "12.x"
node-version: [20.x]
- run: npm ci
- run: npm run build
- name: Deploy
Expand Down
53 changes: 52 additions & 1 deletion src/App.scss
Original file line number Diff line number Diff line change
@@ -1 +1,52 @@
// not empty
@import './Components/Home/Home';
@import './Components/TopBar/top-bar';
@import './Components/TopBar/nav';
@import './utils/vars';
@import './utils/mixins';
@import './fonts/fonts';
@import './Components/Header/header';
@import './styles/section';
@import './styles/WelcomeBlock';
@import './styles/icon';
@import './styles/categories';
@import './styles/Page';
@import './Components/Footer/Footer';
@import './Components/ErrorNotification/ErrorNotification';
@import './styles/newModels';
@import './styles/Aside';


html,
body {
width: 100%;
min-height: 100%;
overflow-x: hidden;
}

html {
box-sizing: border-box;
}

*, *::before, *::after {
box-sizing: inherit;
min-width: 0;
}

img,
svg,
button,
a {
max-width: 100%;
}

body {
margin: 0;
min-height: 100vh;
background-color: #0F1121;
color: #F1F2F9;
font-family: Mont, sans-serif;
}

.container {
@include content-padding-inline;
}
15 changes: 9 additions & 6 deletions src/App.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
import './App.scss';
import { Outlet } from 'react-router-dom';
import React from 'react';

export const App = () => (
<div className="App">
<h1>Product Catalog</h1>
</div>
);
export const App = () => {
return (
<div className="App">
<Outlet />
</div>
);
};
21 changes: 21 additions & 0 deletions src/Components/Accessories/Accessories.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
.accessories {
&__path {
display: flex;

gap: 8px;

align-items: center;

margin-top: 25px;


&-phones {
font-family: "Mont SemiBold", sans-serif;

color: #75767F;
font-weight: 700;
font-size: 12px;
line-height: 100%;
}
}
}
Loading
Loading