Skip to content
Open
Show file tree
Hide file tree
Changes from 24 commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
73cfc7b
added html file, css file and photo folder
Sep 1, 2025
58fed4f
Added some basic structure in html file
Sep 1, 2025
7858e20
added initial grid layout
Sep 1, 2025
598c99a
Worked with layout using grid
Sep 1, 2025
daa0960
worked with grid and flexbox
Sep 2, 2025
402ae73
Redid html structure, commented out old css and started from scratch …
Sep 3, 2025
e643b29
worked on making the website responsive
Sep 3, 2025
a994b8a
worked on layout
Sep 4, 2025
1567a6a
made photos look like polaroids, added navigation bar
Nicolinabl Sep 4, 2025
1bc6754
Update README.md
Nicolinabl Sep 4, 2025
8d7daa9
test
Nicolinabl Sep 4, 2025
d586c4a
test
Nicolinabl Sep 4, 2025
d4a68f0
added some hover effects on the polaroids
Nicolinabl Sep 5, 2025
b3bdc4f
small tweaks on media querie
Nicolinabl Sep 5, 2025
2e112fd
tweaks with media queries
Nicolinabl Sep 5, 2025
121c3ec
minor tweaks
Nicolinabl Sep 5, 2025
a1575fb
Changed media queries on grid, moved part of grid and made into flexbox
Nicolinabl Sep 6, 2025
e7d3a47
changed font size
Nicolinabl Sep 6, 2025
5300233
Added basic structure an input types for form
Nicolinabl Sep 9, 2025
8ea19d2
worked on form, added hero image, played around with styling and colors
Nicolinabl Sep 9, 2025
4fbcc9e
changed colors and hero image
Nicolinabl Sep 10, 2025
968f4fd
Added radio buttons on form, made form responsive, changed some of th…
Nicolinabl Sep 12, 2025
2cb848b
added hamburger menu
Nicolinabl Sep 16, 2025
a504751
worked on styling
Nicolinabl Sep 16, 2025
c2a0ad6
Added party mode toggle with javascript, changed hamburger menu, adde…
Nicolinabl Sep 18, 2025
8419fb9
added more javaScript to add on to party mode
Nicolinabl Sep 18, 2025
6a36865
Made hamburger nav menu close when link is clicked
Nicolinabl Sep 19, 2025
79a31af
added text to readme, made links smaller, added margin to main sectio…
Nicolinabl Sep 19, 2025
e6355f9
small changes after code review, delet3ed code not in use that was co…
Nicolinabl Sep 27, 2025
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 .DS_Store
Binary file not shown.
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

https://willz-models.netlify.app/
Binary file added images/.DS_Store
Binary file not shown.
Binary file added images/Willz-catwalk.jpeg
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 images/Willz-dreaming.jpeg
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 images/Willz-fancy.jpeg
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 images/Willz-fun.jpeg
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 images/blue-paint.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 images/willz-cowboy.jpeg
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 images/willz-dress.jpeg
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 images/willz-glasses.png
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 images/willz-jacket.jpeg
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 images/willz-manicure.jpeg
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 images/willz-nature.jpeg
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 images/willz-potato.jpeg
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 images/willz-princess.jpeg
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 images/willz-zara.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
269 changes: 269 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,269 @@
<!DOCTYPE html>
<html lang="en">

<head>
<meta charset="UTF-8">
<meta
name="viewport"
content="width=device-width, initial-scale=1.0"
>
<title>Willz agency</title>
<link
rel="stylesheet"
href="style.css"
/>
<link
rel="preconnect"
href="https://fonts.googleapis.com"
>
<link
rel="preconnect"
href="https://fonts.gstatic.com"
crossorigin
>
<link
href="https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&family=Open+Sans:ital,wght@0,300..800;1,300..800&family=Sansation:ital,wght@0,300;0,400;0,700;1,300;1,400;1,700&display=swap"
rel="stylesheet"
>
<link
rel="stylesheet"
href="https://fonts.googleapis.com/icon?family=Material+Icons"
rel="stylesheet"
>
</head>

<body>
<!---NAVBAR------------->
<ul class="nav-list">
<li><a href="#">Home </a></li>
<li><a href="#">Models </a></li>
<li><a href="#">About us </a></li>
<li><a href="#">Contact </a></li>
</ul>

<!---HAMBURGER MENU-->

Choose a reason for hiding this comment

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

superbra användning av kommentarer - det ska jag ta med mig till mitt projekt!

<ul
id="menu"
class="menu"
>
<span class="hamburger-links">
<li class="hamburger-text"><a
class="menuItem"
href="#"
>Home</a></li>
</span>
<span class="hamburger-links">
<li class="hamburger-text"><a
class="menuItem"
href="#"
>Models</a></li>
</span>
<span class="hamburger-links">
<li class="hamburger-text"><a
class="menuItem"
href="#"
>About us</a></li>
</span>
<span class="hamburger-links">
<li class="hamburger-text"><a
class="menuItem"
href="#"
>Contact</a></li>
</span>
</ul>
<button
id="hamburger"
class="hamburger"
>
<i
id="menuIcon"
class="menuIcon material-icons"
>menu</i>
<i
id="closeIcon"
class="closeIcon material-icons"
>close</i>
</button>

Choose a reason for hiding this comment

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

snyggt jobbat med att skriva bra och beskrivande id/class namn - men var lite nyfiken över att nav-desktop och nav-mobil inte ligger i varsin div? blir nyfiken då jag själv har ganska många div och isåfall kanske kan ta bort några av mina.


<header class="hero">
<div class="header-text">
<h1>WILLZ MODELS</h1>
<p class="header-paragraph">Feline model agency</p>
</div>
</header>

<!----MAIN section GRID--------->
<section class="main-section">

Choose a reason for hiding this comment

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

finns det någon anledning till att section tagen används istället för main tagen? skulle gärna vilja höra om hur det funkade för dig.

<div class="card 1">
<img src="images/willz-zara.jpeg" />
<h3>Fashionable Willz</h3>
</div>

<div class="card 2">
<img src="images/Willz-fancy.jpeg" />
<h3>Fancy Willz</h3>
</div>

<div class="card 3">
<img src="images/willz-cowboy.jpeg" />
<h3>Cowboy Willz</h3>
</div>

<div class="card 4">
<img src="images/Willz-catwalk.jpeg" />
<h3>Catwalk Willz</h3>
</div>

<div class="card 5">
<img src="images/willz-manicure.jpeg" />
<h3>Manicure Willz</h3>
</div>

<div class="card 6">
<img src="images/willz-potato.jpeg" />
<h3>Potato lover Willz</h3>
</div>

<div class="card 7">
<img src="images/willz-nature.jpeg" />
<h3>Nature Willz</h3>
</div>

<div class="card 8">
<img src="images/willz-jacket.jpeg" />
<h3>Suit jacket Willz</h3>
</div>

<div class="card 9">
<img src="images/willz-princess.jpeg" />
<h3>BLABLA 8</h3>
</div>

<div class="card 10">
<img src="images/Willz-fancy.jpeg" />
<h3>BLABLA 10</h3>
</div>

<div class="card 11">
<img src="images/willz-potato.jpeg" />
<h3>BLABLA 11</h3>
</div>

<div class="card 12">
<img src="images/Willz-catwalk.jpeg" />
<h3>BLABLA 12</h3>
</div>
</section>


<!--INFO + FORM section------->

Choose a reason for hiding this comment

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

igen bra kommentar !!

<section class="info-section">
<div class="info-text">
<h2>About us</h2>

<Professional>Forget about casting calls, multiple models, or diva drama. Willz is the one-cat wonder your brand
Copy link
Contributor

Choose a reason for hiding this comment

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

What HTML element is this? 👀

has been dreaming of. From slick fashion to casual cool, Willz can pull off any look, any pose and any vibe. All
without a single hiss. Professional Purr-fectionist: Takes direction better than most humans. Multi-Look Maven:
From suave sunglasses to cozy sweater vibes, Willz does it all. Flexible & Focused: Stretches, yawns, or stares
dramatically — all on cue. Why hire a dozen cats when Willz has mastered them all? Book a shoot and let this
feline phenom turn you project into a paw-some masterpiece.
</div>

<div class="form-section">
<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 to use the https method, as some browser will otherwise block this action

method="post"
>
<h3>Request a booking with willz</h3>
<fieldset>
<label>
<span class="customer-name">Name</span>

Choose a reason for hiding this comment

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

här används span - är nyfiken över det, själv använde jag label och lade namnet i den, hade varit kul att veta hur det funkat med span och om det blir någon skillnad beroende på vilken man använder :)

<input
type="text"
name="name"
placeholder="Your name"
required

Choose a reason for hiding this comment

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

Snyggt jobbat med att lägga in ”required” på formuläret, är mer realistiskt då!

>
</label>

<label>

Choose a reason for hiding this comment

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

ser lite ut som att du använder label lite som en div, hur har det funkat? hade varit intressant att veta hur det påverkar hur man exempelvis stylar koden sen :)

<span class="customer-email">Email</span>
<input
type="text"
name="email"
placeholder="[email protected]"
required
>
</label>
Comment on lines 212 to 220

Choose a reason for hiding this comment

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

en idé: i formuläret under email, skulle man kunna lägga till så att bara texter som ser ut som en email kan skrivas in


<label>
<span class="version-willz">Version of Willz</span>
<select
name="willz-version"
id="willz-version"
required
>
<option
value="Choose your version"
selected
disabled
>Choose your version</option>

Choose a reason for hiding this comment

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

coolt att du lagt till ett "värde" som är disabled och bara blir lite som en placeholder! visste inte att man kunde göra det - snyggt!

<option value="Sophisticated Willz">Sophisticated Willz</option>
<option value="Cowboy Willz">Cowboy Willz</option>
<option value="Fun Willz">Fun Willz</option>
</select>
</label>

<label>
<span class="requested-date">Requested date</span>
<input
type="date"
name="day"
id="day"
required
>
</label>
Comment on lines +240 to +248

Choose a reason for hiding this comment

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

Coolt med datum rutan, visste inte hur man gjorde det.


<div class="radiobutton-row">
<label class="radiobutton-container">Full day
<input
type="radio"
name="time"
value="Full day"
>
<span class="custom-radiobutton"></span>
</label>
<label class="radiobutton-container">Half day
<input
type="radio"
name="time"
value="Half day"
>
<span class="custom-radiobutton"></span>
</label>
</div>
<div class="button-box">
<button
id="submit-button"
class="submit-button"
type="submit"
>Submit</button>
</div>
</fieldset>



</form>
</div>

</section>

<!---FOOTER----------->
<footer>
<p>Created by Nicolina Bäcklin Löwenberg</p>
</footer>

<script src="script.js"></script>
</body>

</html>
28 changes: 28 additions & 0 deletions script.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
const menu = document.getElementById("menu")
const menuItems = document.getElementsByClassName("menuItem")
const hamburger = document.getElementById("hamburger")
const closeIcon = document.getElementById("closeIcon")
const menuIcon = document.getElementById("menuIcon")

function toggleMenu() {
if (menu.classList.contains("showMenu")) {
menu.classList.remove("showMenu")
closeIcon.style.display = "none"
menuIcon.style.display = "block"
} else {
menu.classList.add("showMenu")
closeIcon.style.display = "block"
menuIcon.style.display = "none"
}
}

hamburger.addEventListener("click", toggleMenu)

Choose a reason for hiding this comment

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

har lite svårt att förstå javascript helt och hållet, så förstår inte helt denna kod - men jag tycker det är intressant att du använt function toggleMenu( )+ resten av koden, då jag själv använt hamMenu.addEventListener("click", () => { hamMenu.classList.toggle("active") hamMenuLinks.classList.toggle("show") })

/*const submitButton = document.getElementById("submit-button")

const bookingRequest = () => {
alert("Great choice.We will get back to you shortly with more details".)
}

submitButton.addEventListener("click", bookingRequest)*/

Choose a reason for hiding this comment

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

trr jag förstår vad du försökt göra här med att ge en popup efter submit - kul idé!!, ska nog själv lägga till något liknande på min :)


Loading