Skip to content

Commit a850195

Browse files
committed
2 days - improves and adding first products to datebase
1 parent 0ef16f3 commit a850195

21 files changed

Lines changed: 2799 additions & 449 deletions

File tree

CNAME.md

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
## 1. Usuń wpis o własnej domenie w GitHub Pages
2+
3+
1. Przejdź do **Settings****Pages** w Twoim repozytorium.
4+
2. W sekcji **Custom domain** kliknij **Remove** (jeśli nadal jest ustawione „smartrecommender.dawidolko.pl”).
5+
3. Zapisz zmiany.
6+
4. (Opcjonalnie) Odznacz / wyłącz **Enforce HTTPS** (jeśli jest zaznaczone).
7+
8+
Po tym kroku GitHub Pages przestanie próbować używać Twojej domeny i wróci do domyślnego adresu.
9+
10+
---
11+
12+
## 2. Usuń/zmień plik `CNAME` w projekcie
13+
14+
1. Wejdź do folderu `frontend/public/` i **usuń** plik `CNAME` (lub zmień jego nazwę / wyczyść zawartość).
15+
- Plik `CNAME` odpowiada za konfigurację własnej domeny — jeśli go nie usuniesz, to przy każdym `npm run deploy` GitHub Pages będzie ponownie próbował przypisać tę customową domenę.
16+
2. Zapisz i skomituj zmiany:
17+
```bash
18+
git add public/CNAME
19+
git commit -m "Remove CNAME for custom domain"
20+
```
21+
_(lub usuń plik zupełnie i też zacommituj)._
22+
23+
---
24+
25+
## 3. Zmień wartość `homepage` w `package.json` (lub usuń)
26+
27+
W pliku `frontend/package.json` masz prawdopodobnie wpis typu:
28+
29+
```json
30+
"homepage": "https://project.dawidolko.pl",
31+
```
32+
33+
Możesz go **usunąć** lub zastąpić domyślnym adresem GitHub Pages, np.:
34+
35+
```json
36+
"homepage": "https://dawidolko.github.io/repo-name"
37+
```
38+
39+
(_Użyj właściwego `repo-name`._)
40+
41+
Jeśli wolisz nie ustawiać niczego, możesz po prostu skasować tę linię.
42+
43+
Następnie zapisz i zrób commit.
44+
45+
---
46+
47+
## 4. Ponownie wdroż projekt (`npm run deploy`)
48+
49+
1. Wejdź w katalog `frontend`:
50+
```bash
51+
cd frontend
52+
```
53+
2. Uruchom:
54+
```bash
55+
npm run deploy
56+
```
57+
3. Gh-pages zbuduje projekt, zaktualizuje branch `gh-pages` bez pliku `CNAME` i bez wpisu o własnej domenie.
58+
59+
---

frontend/public/index.html

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,9 @@
77
<meta
88
name="description"
99
content="I present my engineering project called SmartRecommender — an advanced platform built with React that harnesses intelligent algorithms for real-time product recommendations. Discover how I leverage machine learning to enhance user experiences and streamline shopping decisions." />
10-
1110
<meta
1211
name="keywords"
1312
content="Dawid Olko&Piotr Smoła, engineering project, SmartRecommender, machine learning, React, product recommendations, personalized shopping" />
14-
1513
<meta name="author" content="Dawid Olko&Piotr Smoła" />
1614
<meta name="copyright" content="Dawid Olko&Piotr Smoła" />
1715

@@ -27,7 +25,7 @@
2725
href="https://fonts.googleapis.com/css2?family=Wallpoet&display=swap"
2826
rel="stylesheet" />
2927

30-
<link rel="icon" href="%PUBLIC_URL%/favicon.ico" type="image/x-icon" />
28+
<link rel="icon" href="%PUBLIC_URL%/logo-wheel.png" type="image/png" />
3129

3230
<meta name="theme-color" content="#ffffff" />
3331

frontend/public/logo-wheel.png

208 KB
Loading

frontend/public/logo_square.ico

1.12 KB
Binary file not shown.

frontend/public/logo_square.png

291 KB
Loading
Lines changed: 52 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -1,71 +1,71 @@
11
@import "../../global.scss";
22

33
.about {
4-
padding: 4em 0;
4+
padding: 4em 0;
55

6-
&__container {
7-
@include flexCenter(column);
8-
gap: 2em;
9-
max-width: 500px;
10-
padding: 0 0.5em;
11-
}
6+
&__container {
7+
@include flexCenter(column);
8+
gap: 2em;
9+
max-width: 500px;
10+
padding: 0 0.5em;
11+
}
1212

13-
&__img {
14-
object-fit: cover;
15-
height: 400px;
16-
}
13+
&__img {
14+
object-fit: cover;
15+
height: 400px;
16+
}
1717

18-
&__title {
19-
margin-bottom: 0.7em;
20-
font-size: 4rem;
21-
line-height: 1.2;
22-
}
18+
&__title {
19+
margin-bottom: 0.7em;
20+
font-size: 4rem;
21+
line-height: 1.2;
22+
}
2323

24-
&__span {
25-
color: $main;
26-
}
24+
&__span {
25+
color: $main;
26+
}
2727

28-
&__text {
29-
margin-bottom: 2em;
30-
line-height: 1.8;
31-
}
28+
&__text {
29+
margin-bottom: 2em;
30+
line-height: 1.8;
31+
}
3232

33-
&__marks {
34-
display: flex;
35-
gap: 0.3em;
36-
margin-bottom: 0.5em;
37-
color: #383737;
38-
}
33+
&__marks {
34+
display: flex;
35+
gap: 0.3em;
36+
margin-bottom: 0.5em;
37+
color: #383737;
38+
}
3939

40-
&__mark {
41-
color: #000;
42-
}
40+
&__mark {
41+
color: #000;
42+
}
4343
}
4444

4545
@media (min-width: 1024px) {
46-
.about {
47-
padding: 6em 0;
46+
.about {
47+
padding: 6em 0;
4848

49-
&__container {
50-
flex-direction: row;
51-
gap: 3em;
52-
max-width: unset;
53-
}
49+
&__container {
50+
flex-direction: row;
51+
gap: 3em;
52+
max-width: unset;
53+
}
5454

55-
&__img {
56-
height: 100%;
57-
}
55+
&__img {
56+
height: 100%;
57+
}
5858

59-
&__img-container {
60-
height: 600px;
61-
}
59+
&__img-container {
60+
height: 600px;
61+
}
6262

63-
&__content {
64-
max-width: 500px;
65-
}
63+
&__content {
64+
max-width: 500px;
65+
}
6666

67-
&__title {
68-
font-size: 5rem;
69-
}
70-
}
67+
&__title {
68+
font-size: 5rem;
69+
}
70+
}
7171
}

0 commit comments

Comments
 (0)