Creazione

This commit is contained in:
La Programmatrice Verde 2025-04-14 17:03:34 +02:00
parent f5c3dbb87a
commit f6d3153d0c
9 changed files with 338 additions and 10 deletions

BIN
img/Curiosita.JPG Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

BIN
img/Felicita1.JPG Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

BIN
img/Paura.JPG Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

BIN
img/Rabbia1.JPG Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

BIN
img/footer.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.5 MiB

View File

@ -1,12 +1,63 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html" charset="utf-8">
<title>Titolo</title>
<link rel="stylesheet" href="style.css">
<script src="script.js"></script>
</head>
<body>
</body>
<head>
<meta charset="utf-8" />
<link rel="stylesheet" href="style.css" />
<script src="script.js"></script>
<title>LE MIE EMOZIONI</title>
</head>
<body>
<div class="titolo">LE MIE EMOZIONI</div>
<br />
<div class="topnav">
<a class="active" href="index.html">Home</a>
<a href="sentimenti.html">Sentimenti</a>
</div>
<div class="content">
<h2>Definizione generale</h2>
<p>
I sentimenti sono disposizioni d'animo relativamente stabili, mentre le
emozioni tendono ad essere temporalmente circoscritte. Emozioni e
sentimenti sono oggetto di ampio dibattito in campo psicologico (<a
href="https://it.wikipedia.org/wiki/Psicologia"
>https://it.wikipedia.org/wiki/Psicologia</a
>) e talvolta questi due termini vengono equivocati. Sebbene condividano
aspetti simili, vi è una marcata differenza di essi.
</p>
<h2>Indice dei sentimenti:</h2>
<ul>
<li>Felicità</li>
<li>Rabbia</li>
<li>Paura</li>
<li>Curiosità</li>
</ul>
</div>
<div class="voto">
<label for="nome">Come ti chiami?</label>
<input type="text" name="nome" />
<br />
<label for="voti">Che voto daresti alla pagina?</label>
<select name="voti">
<option>0</option>
<option>1</option>
<option>2</option>
<option>3</option>
<option>4</option>
<option>5</option>
</select>
<br />
<br />
<button onclick="Votazione()">Invia</button>
<button onclick="Cancella()">Invia</button>
<br />
<div id="output"></div>
</div>
<div class="footer">
<marquee direction="right"
>Bassanetti Brian<img class="immagineFooter" src="img/footer.gif"
/></marquee>
</div>
</body>
</html>

View File

@ -0,0 +1,11 @@
function Votazione() {
let child = document.createElement("p");
if (document.getElementsByName("nome")[0].value !== "") {
child.innerHTML = `Ciao ${document.getElementsByName("nome")[0].value} sono contenta che il mio sito ti piaccia. Grazie per il tuo voto: ${document.getElementsByName("voti")[0].value}`;
}
document.getElementById("output").appendChild(child);
}
function Cancella() {
document.getElementById("output").innerHTML = "";
}

87
sentimenti.html Normal file
View File

@ -0,0 +1,87 @@
<html>
<head>
<meta charset="utf-8">
<link rel="stylesheet" href="style.css">
<script src="script.js"></script>
<title>LE MIE EMOZIONI</title>
</head>
<body>
<div class="titolo">LE MIE EMOZIONI</div>
<br>
<div class="topnav">
<a href="index.html">Home</a>
<a class="active" href="sentimenti.html">Sentimenti</a>
</div>
<div class="griglia">
<div class="felicità">
<h2 class="felicità">Felicità</h2>
<p class="felicità">
La felicità è lo stato d'animo (sentimento) positivo di chi ritiene soddisfatti i propri desideri.
Esempio: Sono felice se mangio un gelato
</p>
<br>
<img src="img/Felicita1.JPG">
</div>
<br>
<div class="paura">
<h2 class="paura">Paura</h2>
<p class="paura">
La paura è un'emozione primaria, intensamente spiacevole, che deriva in presenza di rischio o minaccia.
Esempio: Ho paura del luoghi scuri
</p>
<br>
<img src="img/Paura.JPG">
</div>
<br>
<div class="rabbia">
<h2 class="rabbia">Rabbia</h2>
<p class="rabbia">
La rabbia è una risposta naturale a situazioni percepite come minacciose o ingiuste e può fungere da
segnale
che qualcosa non va e che è necessario un cambiamento.
</p>
<br>
<img src="img/Rabbia1.JPG">
</div>
<div class="curiosità">
<br>
<h2 class="curiosità">Curiosità</h2>
<p class="curiosità">
La curiosità è un istinto che nasce dal desiderio di sapere qualcosa, come funzionano le cose esplorando
e
investigando.
</p>
<br>
<img src="img/Curiosita.JPG">
</div>
</div>
<div class="voto">
<label for="nome">Come ti chiami?</label>
<input type="text" name="nome">
<br>
<label for="voti">Che voto daresti alla pagina?</label>
<select name="voti">
<option>0</option>
<option>1</option>
<option>2</option>
<option>3</option>
<option>4</option>
<option>5</option>
</select>
<br>
<br>
<button onclick="Votazione()">Invia</button>
<button onclick="Cancella()">Cancella</button>
<br>
<div id="output">
</div>
</div>
<div class="footer">
<marquee direction="right">Bassanetti Brian<img class="immagineFooter" src="img/footer.gif"></marquee>
</div>
</body>
</html>

179
style.css
View File

@ -0,0 +1,179 @@
body {
background-color: rgb(47, 94, 95);
color: white;
font-family: Comic Sans MS;
font-size: 18pt;
}
div {
box-shadow: rgb(38, 57, 77) 0px 20px 30px -10px;
}
a {
color: blue;
}
.titolo {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
font-size: 55px;
text-align: center;
font-style: italic;
font-weight: bold;
}
.footer {
text-align: center;
margin-top: 25px;
}
.topnav {
overflow: hidden;
background-color: rgb(28, 57, 58);
}
.topnav a {
float: left;
color: #f2f2f2;
text-align: center;
padding: 14px 16px;
text-decoration: none;
font-size: 17px;
}
.topnav a:hover {
background-color: #ddd;
color: black;
}
.topnav a.active {
background-color: #04AA6D;
color: white;
}
.immagineFooter {
transform: scaleX(-1);
height: 55px;
}
.griglia {
display: grid;
grid-template-columns: repeat(2, 1fr);
grid-template-rows: repeat(2, 1fr);
grid-column-gap: 25px;
grid-row-gap: 25px;
padding-top: 25px;
margin-bottom: 25px;
}
.paura,
.curiosità {
text-align: right;
}
.felicità,
.paura,
.rabbia,
.curiosità {
font-size: 25pt;
margin-left: 5%;
margin-right: 5%;
border-radius: 25px;
transition: transform .2s;
}
.felicità:hover,
.paura:hover,
.rabbia:hover,
.curiosità:hover {
transform: scale(1.03);
}
.felicità {
background-color: rgb(202, 202, 26);
grid-area: 1 / 1 / 2 / 2;
}
.rabbia {
background-color: rgb(182, 8, 8);
grid-area: 2 / 1 / 3 / 2;
}
.paura {
background-color: rgb(60, 15, 104);
grid-area: 1 / 2 / 2 / 3;
}
.curiosità {
background-color: rgb(132, 199, 33);
grid-area: 2 / 2 / 3 / 3;
}
.felicità>img,
.paura>img,
.rabbia>img,
.curiosità>img {
height: 250px;
transition: transform .2s;
}
.felicità>img:hover,
.paura>img:hover,
.rabbia>img:hover,
.curiosità>img:hover {
transform: scale(1.03);
}
.felicità>img,
.rabbia>img {
padding-left: 300px;
padding-bottom: 45px;
}
.paura>img,
.curiosità>img {
padding-right: 300px;
padding-bottom: 45px;
}
.voto {
text-align: center;
}
button {
appearance: none;
background-color: #2ea44f;
border: 1px solid rgba(27, 31, 35, .15);
border-radius: 6px;
box-shadow: rgba(27, 31, 35, .1) 0 1px 0;
box-sizing: border-box;
color: #fff;
cursor: pointer;
display: inline-block;
font-family: -apple-system, system-ui, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
font-size: 14px;
font-weight: 600;
line-height: 20px;
padding: 6px 16px;
position: relative;
text-align: center;
text-decoration: none;
user-select: none;
-webkit-user-select: none;
touch-action: manipulation;
vertical-align: middle;
white-space: nowrap;
}
button:hover {
background-color: #2c974b;
}
button:focus {
box-shadow: rgba(46, 164, 79, .4) 0 0 0 3px;
outline: none;
}
button:active {
background-color: #298e46;
box-shadow: rgba(20, 70, 32, .2) 0 1px 0 inset;
}