Conversation
D0man
left a comment
There was a problem hiding this comment.
Code review, PHP nie patrzyłem i rzeczy które są mniej oczywiste też nie
, ogólnie całkiem spoko ci poszło po za nazwami klas cssow i czasem nadmiernej strukturze w htmlu.
README.md
Outdated
| # Academy | ||
| Projekty wykonywane przez społeczność discorda | ||
| [helloroman](https://discordapp.com/invite/VTyJc9N) | ||
| <<<<<<< HEAD |
There was a problem hiding this comment.
Head wskazuje na konflikty które nie rozwiazales, generalnie staraj się zakładać nowe readme dla swojego challengach jak chcesz je pullowac bo w ogólnym będzie no bardziej ogolnie
There was a problem hiding this comment.
Poprawione. Wiadomość wysyłam w celu zapamiętania co do poprawy :)
index.php
Outdated
| </head> | ||
| <body> | ||
| <div class="container"> | ||
| <div class="container__coming-soon"> |
There was a problem hiding this comment.
Potrzebujesz tego diva? Możesz dać tą klasę na figure, zmieniłbym też nazwę klasy bo to jest niezależny element od containera.
There was a problem hiding this comment.
Poprawione. Wiadomość wysyłam w celu zapamiętania co do poprawy :)
index.php
Outdated
| <div class="container__coming-soon"> | ||
| <figure><img src="assets/coming-soon-ribbon.png" alt="Coming Soon"></figure> | ||
| </div> | ||
| <header class="header"> |
There was a problem hiding this comment.
Poprawione. Wiadomość wysyłam w celu zapamiętania co do poprawy :)
index.php
Outdated
| <h1>CODE ACADEMY</h1> | ||
| </header> | ||
| <main class="main"> | ||
| <section class="main__form"> |
There was a problem hiding this comment.
Jeżeli masz tylko jedna sekcję w main to nie ma potrzeby jej wypisywania zostawiasz po prostu main, nie dawaj też sekcji klasy form to mylące bo to formularz nie jest tylko sekcja który go zawiera
There was a problem hiding this comment.
Poprawione. Wiadomość wysyłam w celu zapamiętania co do poprawy :)
index.php
Outdated
| <section class="main__form"> | ||
| <h2>Leave your email here</h2> | ||
| <form action="backend/mailPushing.php" method="post"> | ||
| <div class="main__form--flex-column"> |
There was a problem hiding this comment.
Potrzebujesz tego diva? Nie mógłby ostylowac po formie wtedy też nazwienictwo klas cssow u by się bardziej kupy trzymało, jeżeli starasz się w bramie pisać to staraj się formy trzymać w oddzielnym bloku bo nie zawsze będą w mainie, flex column na pierwszy rzut oka też nie wygląda jak modyfikator a jak element layoutu i powinien być oddzielna klasa, ogólnie strasznie długie nazwy klas masz nie wystarczyłby form lub form-email żeby było jaśniej
There was a problem hiding this comment.
Poprawione, jednak to z całą świadomością pozostawiam do ponownej oceny - nie jestem pewien nazw.
Owy flex--column służy jako pośrednik w uzyskaniu napisu "Invalid email".
index.php
Outdated
| <h2>Leave your email here</h2> | ||
| <form action="backend/mailPushing.php" method="post"> | ||
| <div class="main__form--flex-column"> | ||
| <label for="mail"><?php if(isset($invalidEmail)) echo $invalidEmail['errorMessage'] ?></label> |
There was a problem hiding this comment.
Przy tym jak pisałem że bonus za rozwiązanie bez jsa bardziej chodziło mi o wersję cssow tego, ale fakt o phpie nie wspomniałem sprytnie to obraziłeś.
There was a problem hiding this comment.
Owy php już nie istnieje. Użycie ciastek by nie działało w deep web ;)
stylesheets/main.css
Outdated
| @@ -0,0 +1,140 @@ | |||
| @import url('https://fonts.googleapis.com/css?family=Lato:300'); | |||
There was a problem hiding this comment.
Lepiej nie importować czcionek za pomocą cssa
There was a problem hiding this comment.
Poprawione. Wiadomość wysyłam w celu zapamiętania co do poprawy :)
stylesheets/main.css
Outdated
| top: 0; | ||
| } | ||
|
|
||
| .container__coming-soon figure{ |
There was a problem hiding this comment.
Staraj się nie stylowac po tagach tym bardziej że możesz to połączyć z klasą wyżej w ogóle dość często powtarzasz margin 0 może lepiej to dać w * i stworzyć Simple reset
There was a problem hiding this comment.
Z jednej strony lepiej. Jednak strona była tworzona na defaultowych marginach i paddingach, które mają dużą tutaj przewagę. Póki co zostawiam.
There was a problem hiding this comment.
Co do stylowania po tagach poprawione ;)
stylesheets/main.css
Outdated
|
|
||
| .header figure{ | ||
| /* width: 100vw; */ | ||
| object-fit: cover; |
There was a problem hiding this comment.
Poprawione. Wiadomość wysyłam w celu zapamiętania co do poprawy :)
Moja propozycja (zawartość body) <main class="page-content"> <!-- tutaj twój .container -->
<header>
<figure class="coming-soon">
<img src="assets/coming-soon-ribbon.png" alt="Coming Soon">
</figure>
<figure class="logo">
<img src="assets/undraw_developer_activity_bv83.svg" alt>
</figure>
<h1 class="page-title">Code Academy</h1>
</header>
<section class="contact-section">
<h2 class="contact-section__title">Leave your email here</h2>
<form action="#" class="contact-section__form form form--inline"> <!-- .contact-section__form dla stylowania zależnego od miejsca, czyli np margin. .form po prostu dla ostylowania formularza, .form--inline modyfikator sprawiający, że pola formularza są obok siebie -->
<div class="form__group">
<label for="mail">Your email</label>
<input type="email" name="mail">
</div>
<div class="form__group">
<button type="submit" class="btn">Get early access</button>
</div>
</form>
</section>
<footer class="footer">
<p class="footer__text">MK© 2019.</p>
<p class="footer__text">Made with <img src="assets/love.png" alt="love"> in Poland</p>
<p class="footer__text">We are using cookies to improve your experience.</p>
</footer>
</main> |
|
@mateuszszmytko poprawione |
Wszelkie informacje dodatkowe ode mnie podane w pliku README.md