Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
Binary file added Lato/Lato-Black.ttf
Binary file not shown.
Binary file added Lato/Lato-BlackItalic.ttf
Binary file not shown.
Binary file added Lato/Lato-Bold.ttf
Binary file not shown.
Binary file added Lato/Lato-BoldItalic.ttf
Binary file not shown.
Binary file added Lato/Lato-Hairline.ttf
Binary file not shown.
Binary file added Lato/Lato-HairlineItalic.ttf
Binary file not shown.
Binary file added Lato/Lato-Italic.ttf
Binary file not shown.
Binary file added Lato/Lato-Light.ttf
Binary file not shown.
Binary file added Lato/Lato-LightItalic.ttf
Binary file not shown.
Binary file added Lato/Lato-Regular.ttf
Binary file not shown.
93 changes: 93 additions & 0 deletions Lato/OFL.txt
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.
44 changes: 44 additions & 0 deletions formularz.php
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
}
?>
Copy link

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

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if (count($_POST))

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

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

echo mail

tutaj się zgubiłem :D wysyłasz maila czy wyświetlasz wynik?

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

<button>GET EARLY ACCESS</button>

Get early access ;) W pliku html zachowuj poprawną pisownię, w css użyj uppercase ;)

45 changes: 45 additions & 0 deletions index1.html
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">

Choose a reason for hiding this comment

The 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.

Copy link

Choose a reason for hiding this comment

The 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">

Choose a reason for hiding this comment

The 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.

Copy link

Choose a reason for hiding this comment

The 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" />

Choose a reason for hiding this comment

The 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>

Choose a reason for hiding this comment

The 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.

Copy link

@mzastue mzastue Jan 22, 2019

Choose a reason for hiding this comment

The 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ć text-transform; uppercase

Choose a reason for hiding this comment

The 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>

Choose a reason for hiding this comment

The 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

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yyy? Po co Ci był plik php skoro go nie używasz?

Copy link

Choose a reason for hiding this comment

The 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>
Copy link

Choose a reason for hiding this comment

The 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 &copy 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>
Loading