Skip to content
Open
Show file tree
Hide file tree
Changes from 13 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
153 changes: 153 additions & 0 deletions Form/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,153 @@
<!DOCTYPE html>
<html lang="en">

<head>
<meta charset="UTF-8">
<meta
name="viewport"
content="width=device-width, initial-scale=1.0"
>
<title>my-project</title>

Choose a reason for hiding this comment

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

Maybe want to change this one to the same title as the main page is using!

<link
rel="stylesheet"
href="style.css"
>
<link
rel="stylesheet"
href="/style.css"
>
<script type="text/javascript" src="/script.js"></script>
</head>




<body>

<div class="hero-image">
<div class="hero-text">
<h1>TailTales</h1>
</div>
</div>




<nav class="navbar">
<div class="nav-container" onclick="myFunction(this)">
<div class="bar1"></div>
<div class="bar2"></div>
<div class="bar3"></div>
</div>
<ul>
<li class="nav-text"><a href="/">Home</a></li>
<li class="nav-text"><a href="/#cat-cards">Cats</a></li>
<li class="nav-text"><a href="#footer">Contact</a></li>
</ul>
</nav>

<form
action="http://httpbin.org/anything"
Copy link
Contributor

Choose a reason for hiding this comment

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

Make sure you're using the https method, otherwise most browsers will block this action

method="post"
>
<link
rel="stylesheet"
href="style.css"
>

Choose a reason for hiding this comment

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

Is there a reason to link the CSS stylesheet for the form again inside the form tag and not just in the head? 👀

Copy link
Author

Choose a reason for hiding this comment

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

No, that was an experiment I hadn't deleted yet! Thanks for noticing!


<h2>Adoption application</h2>

<p>We want you to write your information and select the cat you are interested in adopting. We will then send you the
questions we want answered and then if everything aligns we can book a meeting.</p>

<fieldset class="form-input">

<label>
<span>Name</span>
<input
type="name"
name="name"
id="name"
autofocus="name"
required="text"
>
</label>


<label>
<span>Number</span>
<input
type="text"
name="number"
id="number"
required="text"

Choose a reason for hiding this comment

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

I would look a bit into refactoring this part! required = "text" looks like it might be a typo. And preferably the type = "text" could be changed to type = "number" for the number input field, to make sure that you can actually only submit numbers in that field!

>
</label>

<label>
<span>E-mail</span>
<input
type="email"
name="email"
id="email"
placeholder="[email protected]"
required
>
</label>

<label>
<span>Cat</span>
<select
name="cat"
id="cat"
required
>
<option
value=""
disabled
selected
hidden
></option>
<option value="Marmalade">Marmalade</option>
<option value="Snowball">Snowball</option>
<option value="Ashlyn">Ashlyn</option>
<option value="Tess">Tess</option>
</select>
</label>


<label class="checkbox">I confirm that I am 18 years or older
<input
id="checkbox"
type="checkbox"
required=""
>
</label>

</fieldset>

<button class="submit">Apply</button>

<div class="button-back">
<a href="/">
<button type="button">Back</button>
</a>
</div>


</form>



<div id="footer" class="footer-container">
<div class="footer-main">
<p>All rights reserved</p>
<p>+46 123 45 67</p>
<p>Tailroad 5, Sweden</p>
</div>
</div>


</body>

</html>
85 changes: 85 additions & 0 deletions Form/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
body {
font-family: sans-serif;
background: rgb(248, 248, 234);
}


form {
border-radius: 30px;
padding: 40px;
max-width: 400px;
margin: 50px auto;
background: rgb(62, 102, 62);
color: beige;
box-shadow: 0 1px 3px 0 black, 0 4px 6px 0 black;
}


fieldset {
display: flex;
flex-direction: column;
border: none;
padding: 5px;
background: rgb(255, 255, 255);
color: black;
font-size: 15px;
border-radius: 5px;
box-shadow: 0 1px 3px 0 black, 0 4px 6px 0 black;
}

:focus {
outline: none;
border: 2px solid rgb(166, 190, 166);
border-radius: 3px;
}

h2 {
text-transform: uppercase;
text-align: center;
margin-top: 10px;
}


label {
display: flex;
flex-direction: column;
padding: 2px;
margin-top: 5px;
}


.checkbox input {
width: 18px;
height: 18px;
margin-left: 1px;
align-self: flex-start;
}

.checkbox input:checked {
accent-color: rgb(62, 102, 62);
}

button {
background: rgb(166, 190, 166);
border: none;
appearance: none;
border-radius: 4px;
/* width: 400px; */
font-size: 20px;
color: black;
font-weight: bold;
padding: 10px;
margin-top: 20px;
box-shadow: 0 1px 3px 0 black, 0 4px 6px 0 black;
transition: transform 0.3s ease, box-shadow 0.3s ease;
}

button:hover {
transform: translateY(-2px);
box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
box-shadow: 10px 10px 5px black;
}

.button-back {
text-align: center;
}
Binary file added Pictures/Adopt1.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Pictures/Adopt2.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Pictures/Adopt3.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Pictures/Adopt4.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Pictures/Article1.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Pictures/Article2.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Pictures/Header-cat2.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
# js-project-business-site
# js-project-business-site

Project: [Tail Tales](https://technigo-tailtales.app/)
Binary file added favicon.ico
Binary file not shown.
Loading