adding styles
This commit is contained in:
commit
e31bdd9c2b
21
LICENSE
Normal file
21
LICENSE
Normal file
|
@ -0,0 +1,21 @@
|
|||
MIT License
|
||||
|
||||
Copyright (c) 2020 Gabriel de Jesus
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
|
@ -1,3 +1,3 @@
|
|||
📚 Dedicated project to test what I'm learning with PHP.
|
||||
🐘 Dedicated project to test what I'm learning with PHP .
|
||||
|
||||
![](web-preview.gif)
|
||||
![](web-preview.gif)
|
||||
|
|
13
note.php
13
note.php
|
@ -1,3 +1,4 @@
|
|||
<<<<<<< HEAD
|
||||
<html lang="pt-br">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
|
@ -19,4 +20,14 @@
|
|||
</div>
|
||||
</main>
|
||||
</body>
|
||||
</html>
|
||||
</html>
|
||||
=======
|
||||
<h1>Lista de nomes</h1>
|
||||
|
||||
<?php
|
||||
$titles = file_get_contents('note.txt'); // ler arquivo
|
||||
$titles = explode("\n", $titles); // quebrar texto por linhas
|
||||
$titles = implode(' ', $titles); // transformando em string
|
||||
echo $titles;
|
||||
?>
|
||||
>>>>>>> c2624cf3f08ec43e111fad914944b5361ebe88a4
|
||||
|
|
7
note.txt
7
note.txt
|
@ -1,3 +1,4 @@
|
|||
<<<<<<< HEAD
|
||||
<h1>Lorem Ipsum is simply dummy text of the</h1>
|
||||
<span>Lorem Ipsum is simply dummy text of the printing and typesetting
|
||||
industry. Lorem Ipsum has been the industry's standard dummy text
|
||||
|
@ -7,4 +8,8 @@ only five centuries, but also the leap into electronic typesetting
|
|||
remaining essentially unchanged. It was popularised in the 1960s
|
||||
with the release of Letraset sheets containing Lorem Ipsum passages,
|
||||
and more recently with desktop publishing software like Aldus
|
||||
PageMaker including versions of Lorem Ipsum.</span>
|
||||
PageMaker including versions of Lorem Ipsum.</span>
|
||||
=======
|
||||
|
||||
<li>Aula de hoje 20/02/20</li>
|
||||
>>>>>>> c2624cf3f08ec43e111fad914944b5361ebe88a4
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
<?php
|
||||
$title = filter_input(INPUT_POST, 'title', FILTER_SANITIZE_SPECIAL_CHARS); // pegando o titulo digitado e validando
|
||||
<<<<<<< HEAD
|
||||
$text = filter_input(INPUT_POST, 'text'); // pegando o texto digitado
|
||||
|
||||
// verificar se title está preenchido
|
||||
|
@ -7,6 +8,14 @@ if($title) {
|
|||
$contents = file_get_contents('note.txt'); // ler o texto
|
||||
$contents .= "<h1>$title</h1> \n<span>$text</span>"; // adicionar titulo e texto
|
||||
file_put_contents('note.txt', $contents); // adicionar o contéudo novo
|
||||
=======
|
||||
|
||||
// verificar se title está preenchido
|
||||
if($title) {
|
||||
$titles = file_get_contents('note.txt'); // ler o texto
|
||||
$titles .= "\n<li>$title</li>"; // adicionar nova linha
|
||||
file_put_contents('note.txt', $titles); // adicionar o contéudo novo
|
||||
>>>>>>> c2624cf3f08ec43e111fad914944b5361ebe88a4
|
||||
|
||||
header("Location: note.php"); // depois de adicionar envia para a página note;
|
||||
exit;
|
||||
|
|
30
style.css
30
style.css
|
@ -6,7 +6,10 @@
|
|||
body {
|
||||
margin:0;
|
||||
padding:0;
|
||||
<<<<<<< HEAD
|
||||
background-color:#222;
|
||||
=======
|
||||
>>>>>>> c2624cf3f08ec43e111fad914944b5361ebe88a4
|
||||
}
|
||||
/* ================================================== default ================================================= */
|
||||
:root {
|
||||
|
@ -19,7 +22,10 @@ body {
|
|||
display:flex;
|
||||
border-radius:10px;
|
||||
background-color:#FEFEFE;
|
||||
<<<<<<< HEAD
|
||||
margin:83px 0px 83px 0px;
|
||||
=======
|
||||
>>>>>>> c2624cf3f08ec43e111fad914944b5361ebe88a4
|
||||
box-shadow:-1px 10px 20px #2dc5ff33;
|
||||
}
|
||||
.column {
|
||||
|
@ -34,6 +40,7 @@ h1 {
|
|||
margin-left:30px;
|
||||
margin-bottom:20px;
|
||||
}
|
||||
<<<<<<< HEAD
|
||||
span {
|
||||
max-width:692px;
|
||||
font-size:20px;
|
||||
|
@ -54,6 +61,22 @@ form {
|
|||
}
|
||||
input[type="text"] {
|
||||
max-width:705px;
|
||||
=======
|
||||
/* ================================================== main ================================================= */
|
||||
main {
|
||||
width:100vw;
|
||||
height:100vh;
|
||||
display:flex;
|
||||
align-items:center;
|
||||
justify-content:center;
|
||||
background-color:#222;
|
||||
}
|
||||
/* ================================================== form ================================================= */
|
||||
form {
|
||||
display:flex;
|
||||
}
|
||||
input[type="text"] {
|
||||
>>>>>>> c2624cf3f08ec43e111fad914944b5361ebe88a4
|
||||
height:50px;
|
||||
font-size:20px;
|
||||
font-weight:400;
|
||||
|
@ -65,9 +88,13 @@ input[type="text"] {
|
|||
margin:0px 30px 0px 30px;
|
||||
}
|
||||
textarea {
|
||||
<<<<<<< HEAD
|
||||
max-width:705px;
|
||||
max-height:242px;
|
||||
min-height:242px;
|
||||
=======
|
||||
height:242px;
|
||||
>>>>>>> c2624cf3f08ec43e111fad914944b5361ebe88a4
|
||||
font-size:20px;
|
||||
font-weight:400;
|
||||
color:var(--text);
|
||||
|
@ -91,6 +118,7 @@ input[type="submit"] {
|
|||
margin:0px 30px 30px 30px;
|
||||
background-color:var(--primary);
|
||||
box-shadow:-2px 10px 20px #3ba8fb33;
|
||||
<<<<<<< HEAD
|
||||
}
|
||||
a {
|
||||
text-align:center;
|
||||
|
@ -120,4 +148,6 @@ a {
|
|||
font-size:30px;
|
||||
padding:20px;
|
||||
}
|
||||
=======
|
||||
>>>>>>> c2624cf3f08ec43e111fad914944b5361ebe88a4
|
||||
}
|
Loading…
Reference in New Issue
Block a user