format with prettier

This commit is contained in:
Andreas Zweili 2021-01-18 21:54:10 +01:00
parent 4af49eac9e
commit 3dfa4512bc
2 changed files with 56 additions and 56 deletions

View File

@ -1,29 +1,29 @@
<!DOCTYPE html> <!DOCTYPE html>
<html lang="en"> <html lang="en">
<head>
<head>
<meta charset="UTF-8" /> <meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Vue Basics</title> <title>Vue Basics</title>
<link <link href="https://fonts.googleapis.com/css2?family=Jost:wght@400;700&display=swap" rel="stylesheet" />
href="https://fonts.googleapis.com/css2?family=Jost:wght@400;700&display=swap"
rel="stylesheet"
/>
<link rel="stylesheet" href="styles.css" /> <link rel="stylesheet" href="styles.css" />
<script src="https://unpkg.com/vue@next" defer></script> <script src="https://unpkg.com/vue@next" defer></script>
<script src="app.js" defer></script> <script src="app.js" defer></script>
</head> </head>
<body>
<body>
<header> <header>
<h1>Reactivity in Action</h1> <h1>Reactivity in Action</h1>
</header> </header>
<section id="assignment"> <section id="assignment">
<button>Add 5</button> <button>Add 5</button>
<button>Add 1</button> <button>Add 1</button>
<!-- 1) Connect the buttons and calculate a value (a number) --> <!-- 1) Connect the buttons and calculate a value (a number) -->
<!-- Show "Not there yet" until you reach a result of exactly 37 --> <!-- Show "Not there yet" until you reach a result of exactly 37 -->
<!-- Show "Too much!" if the result is greater than 37 --> <!-- Show "Too much!" if the result is greater than 37 -->
<p>Result: RESULT</p> <p>Result: RESULT</p>
<!-- 2) Watch for changes in "result" and reset the value to 0 after 5 seconds --> <!-- 2) Watch for changes in "result" and reset the value to 0 after 5 seconds -->
</section> </section>
</body> </body>
</html> </html>

View File

@ -1,73 +1,73 @@
* { * {
box-sizing: border-box; box-sizing: border-box;
} }
html { html {
font-family: 'Jost', sans-serif; font-family: "Jost", sans-serif;
} }
body { body {
margin: 0; margin: 0;
} }
header { header {
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.26); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.26);
margin: 3rem; margin: 3rem;
border-radius: 10px; border-radius: 10px;
padding: 1rem; padding: 1rem;
background-color: #1b995e; background-color: #1b995e;
color: white; color: white;
text-align: center; text-align: center;
} }
#assignment { #assignment {
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.26); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.26);
margin: 3rem; margin: 3rem;
border-radius: 10px; border-radius: 10px;
padding: 1rem; padding: 1rem;
text-align: center; text-align: center;
} }
#assignment h2 { #assignment h2 {
font-size: 2rem; font-size: 2rem;
border-bottom: 4px solid #ccc; border-bottom: 4px solid #ccc;
color: #1b995e; color: #1b995e;
margin: 0 0 1rem 0; margin: 0 0 1rem 0;
} }
#assignment p { #assignment p {
font-size: 1.25rem; font-size: 1.25rem;
font-weight: bold; font-weight: bold;
background-color: #8ddba4; background-color: #8ddba4;
padding: 0.5rem; padding: 0.5rem;
color: #1f1f1f; color: #1f1f1f;
border-radius: 25px; border-radius: 25px;
} }
#assignment input { #assignment input {
font: inherit; font: inherit;
border: 1px solid #ccc; border: 1px solid #ccc;
} }
#assignment input:focus { #assignment input:focus {
outline: none; outline: none;
border-color: #1b995e; border-color: #1b995e;
background-color: #d7fdeb; background-color: #d7fdeb;
} }
#assignment button { #assignment button {
font: inherit; font: inherit;
cursor: pointer; cursor: pointer;
border: 1px solid #ff0077; border: 1px solid #ff0077;
background-color: #ff0077; background-color: #ff0077;
color: white; color: white;
padding: 0.05rem 1rem; padding: 0.05rem 1rem;
box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.26); box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.26);
} }
#assignment button:hover, #assignment button:hover,
#assignment button:active { #assignment button:active {
background-color: #ec3169; background-color: #ec3169;
border-color: #ec3169; border-color: #ec3169;
box-shadow: 1px 1px 4px rgba(0, 0, 0, 0.26); box-shadow: 1px 1px 4px rgba(0, 0, 0, 0.26);
} }