forked from infoshareacademy/jfdzr12-project-react
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
aab6286
commit 27ca969
Showing
7 changed files
with
51 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
# jfdzr12-project-react | ||
# Projekt: React | ||
|
||
- [ ] [JSX, podstawy budowania komponentów](docs/01-podstawy/README.md) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
# Projekt: React – podstawy | ||
|
||
Cel: rozpoczęcie migracji aplikacji rozwijanej podczas projektów HTML, CSS i JavaScript do React. | ||
|
||
Wszelkie style powinny zostać zdefiniowane w modułach CSS. | ||
|
||
## Tworzenie nowego projektu | ||
|
||
Utwórz nowy projekt w tym repozytorium przy użyciu [Vite](https://vitejs.dev/guide/#scaffolding-your-first-vite-project) i schematu `react`. | ||
Dla uproszczenia nadaj mu nazwę `app`. | ||
|
||
## Landing page | ||
|
||
Pamiętasz [projekt HTML i CSS](https://github.com/infoshareacademy/jfdzr12-project-html-css#landing-page)? | ||
Stwórz komponent odpowiedzialny za wyświetlenie sekcji ze sloganem firmy. Na razie pomiń nagłówek, wrócimy do niego później. | ||
|
||
![](assets/01-greeting-view.png) | ||
|
||
## Cennik | ||
|
||
Zdefiniuj komponent pojedynczej pozycji w cenniku. | ||
|
||
Tak jak poprzednio, zawrzyj nazwę pozycji, cenę oraz krótki opis. | ||
|
||
![](assets/02-pricing-card.png) | ||
|
||
Następnie spraw by można było go [ponownie użyć](https://react.dev/learn/passing-props-to-a-component#passing-props-to-a-component) do wyświetlenia różnych pozycji z cennika. | ||
|
||
Na koniec przygotuj komponent zawierający cały cennik. | ||
|
||
![](assets/03-pricing-view.png) | ||
|
||
## Galeria | ||
|
||
Przygotuj komponent, który zwróci listę zdjęć z portfolio. | ||
|
||
Zdefiniuj adresy obrazków poza komponentem jako tablicę napisów, następnie użyj jej jako źródła do wygenerowania listy zdjęć. | ||
|
||
Pamiętaj, by zachować pożądaną strukturę DOM – obrazki nie powinny zostać zawarte w żadnym elemencie (np. `div`). | ||
|
||
![](assets/04-gallery.png) | ||
|
||
## Okienko modalne | ||
|
||
Zostało ci trochę czasu? Przygotuj się na kolejne zajęcia i stwórz komponent odpowiedzialny za wyświetlanie okienka modalnego. | ||
Nie przejmuj się interaktywnością ani dokładną. To, co ważne, to powinno być możliwe zawarcie w nim dowolnej treści. Poniżej to jedynie przykład użycia. | ||
|
||
![](assets/05-modals.png) |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.