-
Notifications
You must be signed in to change notification settings - Fork 10
Moje wypociny #13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
Moje wypociny #13
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,93 @@ | ||
| Copyright (c) 2010-2014 by tyPoland Lukasz Dziedzic (team@latofonts.com) with Reserved Font Name "Lato" | ||
|
|
||
| This Font Software is licensed under the SIL Open Font License, Version 1.1. | ||
| This license is copied below, and is also available with a FAQ at: | ||
| http://scripts.sil.org/OFL | ||
|
|
||
|
|
||
| ----------------------------------------------------------- | ||
| SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007 | ||
| ----------------------------------------------------------- | ||
|
|
||
| PREAMBLE | ||
| The goals of the Open Font License (OFL) are to stimulate worldwide | ||
| development of collaborative font projects, to support the font creation | ||
| efforts of academic and linguistic communities, and to provide a free and | ||
| open framework in which fonts may be shared and improved in partnership | ||
| with others. | ||
|
|
||
| The OFL allows the licensed fonts to be used, studied, modified and | ||
| redistributed freely as long as they are not sold by themselves. The | ||
| fonts, including any derivative works, can be bundled, embedded, | ||
| redistributed and/or sold with any software provided that any reserved | ||
| names are not used by derivative works. The fonts and derivatives, | ||
| however, cannot be released under any other type of license. The | ||
| requirement for fonts to remain under this license does not apply | ||
| to any document created using the fonts or their derivatives. | ||
|
|
||
| DEFINITIONS | ||
| "Font Software" refers to the set of files released by the Copyright | ||
| Holder(s) under this license and clearly marked as such. This may | ||
| include source files, build scripts and documentation. | ||
|
|
||
| "Reserved Font Name" refers to any names specified as such after the | ||
| copyright statement(s). | ||
|
|
||
| "Original Version" refers to the collection of Font Software components as | ||
| distributed by the Copyright Holder(s). | ||
|
|
||
| "Modified Version" refers to any derivative made by adding to, deleting, | ||
| or substituting -- in part or in whole -- any of the components of the | ||
| Original Version, by changing formats or by porting the Font Software to a | ||
| new environment. | ||
|
|
||
| "Author" refers to any designer, engineer, programmer, technical | ||
| writer or other person who contributed to the Font Software. | ||
|
|
||
| PERMISSION & CONDITIONS | ||
| Permission is hereby granted, free of charge, to any person obtaining | ||
| a copy of the Font Software, to use, study, copy, merge, embed, modify, | ||
| redistribute, and sell modified and unmodified copies of the Font | ||
| Software, subject to the following conditions: | ||
|
|
||
| 1) Neither the Font Software nor any of its individual components, | ||
| in Original or Modified Versions, may be sold by itself. | ||
|
|
||
| 2) Original or Modified Versions of the Font Software may be bundled, | ||
| redistributed and/or sold with any software, provided that each copy | ||
| contains the above copyright notice and this license. These can be | ||
| included either as stand-alone text files, human-readable headers or | ||
| in the appropriate machine-readable metadata fields within text or | ||
| binary files as long as those fields can be easily viewed by the user. | ||
|
|
||
| 3) No Modified Version of the Font Software may use the Reserved Font | ||
| Name(s) unless explicit written permission is granted by the corresponding | ||
| Copyright Holder. This restriction only applies to the primary font name as | ||
| presented to the users. | ||
|
|
||
| 4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font | ||
| Software shall not be used to promote, endorse or advertise any | ||
| Modified Version, except to acknowledge the contribution(s) of the | ||
| Copyright Holder(s) and the Author(s) or with their explicit written | ||
| permission. | ||
|
|
||
| 5) The Font Software, modified or unmodified, in part or in whole, | ||
| must be distributed entirely under this license, and must not be | ||
| distributed under any other license. The requirement for fonts to | ||
| remain under this license does not apply to any document created | ||
| using the Font Software. | ||
|
|
||
| TERMINATION | ||
| This license becomes null and void if any of the above conditions are | ||
| not met. | ||
|
|
||
| DISCLAIMER | ||
| THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, | ||
| EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF | ||
| MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT | ||
| OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE | ||
| COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, | ||
| INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL | ||
| DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING | ||
| FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM | ||
| OTHER DEALINGS IN THE FONT SOFTWARE. |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,44 @@ | ||
| <?php | ||
| if (count($_POST)) | ||
| { | ||
| ////////// USTAWIENIA ////////// | ||
| $email = 'anna@gmail.com'; // Adres e-mail adresata | ||
| $subject = 'Formularz'; // Temat listu | ||
| $message = 'Dziękujemy za wysłanie formularza'; // Komunikat | ||
| $error = 'Wystąpił błąd podczas wysyłania formularza'; // Komunikat błędu | ||
| $charset = 'utf-8'; // Strona kodowa | ||
| ////////////////////////////// | ||
|
|
||
| $head = | ||
| "MIME-Version: 1.0\r\n" . | ||
| "Content-Type: text/plain; charset=$charset\r\n" . | ||
| "Content-Transfer-Encoding: 8bit"; | ||
| $body = ''; | ||
| foreach ($_POST as $name => $value) | ||
| { | ||
| if (is_array($value)) | ||
| { | ||
| for ($i = 0; $i < count($value); $i++) | ||
| { | ||
| $body .= "$name=" . (get_magic_quotes_gpc() ? stripslashes($value[$i]) : $value[$i]) . "\r\n"; | ||
| } | ||
| } | ||
| else $body .= "$name=" . (get_magic_quotes_gpc() ? stripslashes($value) : $value) . "\r\n"; | ||
| } | ||
| echo mail($email, "=?$charset?B?" . base64_encode($subject) . "?=", $body, $head) ? $message : $error; | ||
| } | ||
| else | ||
| { | ||
| ?> | ||
| <form action="#" method="post"> | ||
|
|
||
| <p>Leave your E-mail</p> | ||
| <label for="pole"> | ||
| <input type="text" id="pole" placeholder="E-mail"> | ||
| </label> | ||
| <button>GET EARLY ACCESS</button> | ||
|
|
||
| </form> | ||
| <?php | ||
| } | ||
| ?> | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,45 @@ | ||
| <!DOCTYPE html> | ||
| <html lang="en"> | ||
|
|
||
| <head> | ||
| <meta charset="UTF-8"> | ||
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
| <meta http-equiv="X-UA-Compatible" content="ie=edge"> | ||
| <link url="../Academy/Lato/" rel="stylesheet"> | ||
| <link href="https://fonts.googleapis.com/css?family=Lato:100,100i,300,300i,400,400i,700,700i,900,900i" rel="stylesheet"> | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. W zupełności wystarczy link z Google Fonts. I nie potrzebnie ładujesz wszystkie style tego fonta skoro ich nie wykorzystujesz. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Nazwa pliku. Narażasz bezpieczeństwo strony choćby faktem że nie masz pliku index i udostępniasz strukturę katalogów. |
||
| <link href="../Academy/style1.css" rel="stylesheet"> | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. W przypadku Twojej struktury plików, która jest w repozytorium, ten zapis jest błędny, bo po ściągnięciu szuka css w folderze wyżej. Pewnie lokalnie działało, bo wyżej w katalogu też miałaś pliki. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. W skrócie wraca do folderu wcześniejszego i... na serwerze jest zwykle public. Dajesz <link href="style1.css" rel="stylesheet">I nazwę pliku zmień na taką bez 1 :D |
||
|
|
||
| <title>Landing Page</title> | ||
|
|
||
| </head> | ||
|
|
||
| <body> | ||
| <div class="container"> | ||
| <img class="coming-soon" src="../Academy/assets/coming-soon-ribbon.png" alt="coming soon" /> | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. W przypadku zdjęć ta sama sytuacja co z ładowaniem styli. Też ich szuka w folderze wyżej. |
||
|
|
||
| <header class="clearfix"> | ||
| <img class="header_image" src="../Academy/assets/undraw_developer_activity_bv83.svg" alt="undraw_developer" /> | ||
| <h1>CODE ACADEMY</h1> | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Zdecydowanie lepiej napisać normalnie Code Academy, a wielkie litery zrobić za pomocą text-transform: uppercase. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ale wtedy trzeba skorelować dodatkowy styl z danym elementem, po co? można wtedy też napisać CodE aCADemY, a to jest statyczny plik html, więc nie ma sensu dodawać There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Wydaje mi się, że to nie kwestia rozpatrywania tego jako dodatkowego stylowania, czy rozgraniczania co jest wydajniejsze, a co nie. Ale zastosowanie text-transform jest wygodne i estetyczniejsze, imho. O ile w tym przypadku to nie ma znaczenia, bo jest to małe, jest to statyczne, to chyba chodzi o to żeby się uczyć dobrych praktyk, które przeniesiemy do większych i bardziej zaawansowanych projektów. Nie wydaje mi się żebyś na jakimś dużym projekcie walił nagłówki capslockiem w HTMLu. |
||
| </header> | ||
|
|
||
| <div> | ||
| <form action="#" method="post" enctype="text/plain"> | ||
| <p>Leave your E-mail</p> | ||
| <label for="email"></label> | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. To samo co u mnie. Label nie powinien być pusty, można go ukryć w CSSie There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yyy? Po co Ci był plik php skoro go nie używasz? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Musi tu być ten div? |
||
| <input type="email" id="email" placeholder="E-mail"> | ||
|
|
||
| <button> | ||
| <p>GET EARLY ACCESS</p> | ||
| </button> | ||
| </form> | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. To samo co wcześniej. Get early access ;) |
||
| </div> | ||
| </div> | ||
|
|
||
| <footer> | ||
| <p class="user">Endi © 2019.</p> | ||
| <p class="made">Made with<svg>love</svg>in Poland</p> | ||
| <p class="cookies">We're using cookies to improve your experience.</p> | ||
| </footer> | ||
| </body> | ||
|
|
||
| </html> | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Zastanawia mnie, czy konieczne jest nazywanie inputa pole. To bez sensu, zwłaszcza zimą... Nazywaj elementy po imieniu, tzn. tak, że widząc stronę i w kod przynajmniej mniej więcej możesz określić co gdzie jest ;) W większych projektach się na 100% odwdzięczy takie podejście
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nie mówię że źle, chociaż zazwyczaj ludzie używają isset :D przynajmniej za moich czasów tak było, czyt. 3-4 lata temu
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
echo mailtutaj się zgubiłem :D wysyłasz maila czy wyświetlasz wynik?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Get early access ;) W pliku html zachowuj poprawną pisownię, w css użyj uppercase ;)