-
Notifications
You must be signed in to change notification settings - Fork 62
Sandra - Business site #43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from 23 commits
6eb3ab0
b904ec4
9c6f69b
e63c519
4d7051b
17e390b
8c68db6
3055dab
dbb73d1
9c234de
6b214b4
0e2e19f
92845bc
62fa3a5
24d9718
b9da36a
1b8fd37
c54e0de
2ff3583
c69bc4d
712a4dd
193f5bd
64a9661
a4edfef
616b77c
6a7d856
dd960c6
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1,6 @@ | ||
| # js-project-business-site | ||
| # js-project-business-site | ||
|
|
||
| Project business site, build with HTML and CSS | ||
|
|
||
| ## Live-demo | ||
| Project: [Skin Expert](https://skinexpert.netlify.app/) |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,154 @@ | ||
| <!DOCTYPE html> | ||
| <html lang="en"> | ||
|
|
||
| <head> | ||
| <meta charset="UTF-8"> | ||
| <meta | ||
| name="viewport" | ||
| content="width=device-width, initial-scale=1.0" | ||
| > | ||
| <title>Skin Expert</title> | ||
| <link | ||
| href="https://fonts.googleapis.com/css2?family=Barlow+Semi+Condensed:wght@400;600&family=Julius+Sans+One&display=swap" | ||
| rel="stylesheet" | ||
| > | ||
| <link | ||
| rel="stylesheet" | ||
| href="style.css" | ||
| > | ||
| </head> | ||
|
|
||
| <body> | ||
| <header> | ||
| <nav class="navbar"> | ||
| <div class="navbar-left"> | ||
| <a href="index.html"> | ||
| <img | ||
| class="logo" | ||
| src="images/logga1.jpg" | ||
| alt="Skin Expert Logo" | ||
| > | ||
| </a> | ||
| </div> | ||
|
|
||
| <div class="navbar-right"> | ||
| <button class="hamburger"> | ||
| <span></span> | ||
| <span></span> | ||
| <span></span> | ||
| </button> | ||
|
|
||
| <div class="nav-links"> | ||
| <a | ||
| href="#" | ||
| class="header-nav-link" | ||
| >SKIN EXPERT</a> | ||
| <a | ||
| href="#" | ||
| class="header-nav-link" | ||
| >BUTIK</a> | ||
| <a | ||
| href="#" | ||
| class="header-nav-link" | ||
| >OM</a> | ||
| <a | ||
| href="kontakt.html" | ||
| class="header-nav-link" | ||
| >KONTAKT</a> | ||
| </div> | ||
| </div> | ||
| </nav> | ||
|
|
||
| <div class="hero-image"> | ||
| <div class="hero-text"> | ||
| <h1>Welcome to Skin Expert</h1> | ||
| <p>Your one-stop solution for all skin care needs.</p> | ||
| <button class="btn">Läs mer</button> | ||
| </div> | ||
| </div> | ||
| </header> | ||
|
|
||
| <main> | ||
| <section class="grid-container"> | ||
| <article class="grid-card"> | ||
| <img | ||
| class="card-image" | ||
| src="images/Felicia.jpg" | ||
| alt="Product 1" | ||
| > | ||
| <div class="card-text"> | ||
| <h3>OM FELICIA</h3> | ||
| <p>Lorem ipsum dolor sit amet consectetur, adipisicing elit. Voluptatibus quos deleniti quidem ea quod laborum | ||
| commodi cupiditate ex odio soluta sit sequi cumque nobis tempora veniam recusandae necessitatibus, enim at! | ||
| <a | ||
| href="#" | ||
| class="info-link" | ||
| >Läs mer</a> | ||
| </p> | ||
| </div> | ||
| </article> | ||
| <article class="grid-card"> | ||
| <img | ||
| class="card-image" | ||
| src="images/hud.jpg" | ||
| alt="Product 1" | ||
| > | ||
| <p>Lorem ipsum dolor sit amet consectetur, adipisicing elit. Voluptatibus quos deleniti quidem ea quod laborum | ||
| commodi cupiditate ex odio soluta sit sequi cumque nobis tempora veniam recusandae necessitatibus, enim at! | ||
| </p> | ||
| </article> | ||
| <article class="grid-card"> | ||
| <img | ||
| class="card-image" | ||
| src="images/hud2.jpg" | ||
| alt="Product 1" | ||
| > | ||
| <p>Lorem ipsum dolor sit amet consectetur, adipisicing elit. Voluptatibus quos deleniti quidem ea quod laborum | ||
| commodi cupiditate ex odio soluta sit sequi cumque nobis tempora veniam recusandae necessitatibus, enim at! | ||
| </p> | ||
| </article> | ||
| <article class="grid-card"> | ||
| <img | ||
| class="card-image" | ||
| src="images/lillakortet.jpg" | ||
| alt="Product 1" | ||
| > | ||
| <p>Lorem ipsum dolor sit amet consectetur, adipisicing elit. Voluptatibus quos deleniti quidem ea quod laborum | ||
| commodi cupiditate ex odio soluta sit sequi cumque nobis tempora veniam recusandae necessitatibus, enim at! | ||
| </p> | ||
| </article> | ||
| <article class="grid-card"> | ||
| <img | ||
| class="card-image" | ||
| src="images/hud.jpg" | ||
| alt="Product 1" | ||
| > | ||
| <p>Lorem ipsum dolor sit amet consectetur, adipisicing elit. Voluptatibus quos deleniti quidem ea quod laborum | ||
| commodi cupiditate ex odio soluta sit sequi cumque nobis tempora veniam recusandae necessitatibus, enim at! | ||
| </p> | ||
| </article> | ||
| </section> | ||
| </main> | ||
|
|
||
|
|
||
| <footer> | ||
| <div class="social-media"> | ||
| <a href="#"><img | ||
| src="images/facebook-icon.png" | ||
| alt="Facebook" | ||
| ></a> | ||
| <a href="#"><img | ||
| src="images/Instagram-icon.png" | ||
| alt="Instagram" | ||
| ></a> | ||
| <a href="#"><img | ||
| src="images/linkedin.webp" | ||
| alt="LinkedIn" | ||
| ></a> | ||
| </div> | ||
| <p>© 2025 Skin Expert. All rights reserved.</p> | ||
| </footer> | ||
| <script src="script.js"></script> | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Maybe consider adding <script src="script.js"></script> to the beginning of the document, in the head, where you have the link to the css file as well. Makes it a bit easier to find. |
||
| </body> | ||
|
|
||
| </html> | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,182 @@ | ||
| <!DOCTYPE html> | ||
| <html lang="en"> | ||
|
|
||
| <head> | ||
| <meta charset="UTF-8"> | ||
| <meta | ||
| name="viewport" | ||
| content="width=device-width, initial-scale=1.0" | ||
| > | ||
| <title>KONTAKT</title> | ||
| <link | ||
| href="https://fonts.googleapis.com/css2?family=Barlow+Semi+Condensed:wght@400;600&family=Julius+Sans+One&display=swap" | ||
| rel="stylesheet" | ||
| > | ||
| <link | ||
| rel="stylesheet" | ||
| href="style.css" | ||
| > | ||
| </head> | ||
|
|
||
| <body> | ||
| <header> | ||
| <nav class="navbar"> | ||
| <div class="navbar-left"> | ||
| <a href="index.html"> | ||
| <img | ||
| class="logo" | ||
| src="images/logga1.jpg" | ||
| alt="Skin Expert Logo" | ||
| > | ||
| </a> | ||
| </div> | ||
|
|
||
| <div class="navbar-right"> | ||
| <button class="hamburger"> | ||
| <span></span> | ||
| <span></span> | ||
| <span></span> | ||
| </button> | ||
|
|
||
| <div class="nav-links"> | ||
| <a | ||
| href="#" | ||
| class="header-nav-link" | ||
| >SKIN EXPERT</a> | ||
| <a | ||
| href="#" | ||
| class="header-nav-link" | ||
| >BUTIK</a> | ||
| <a | ||
| href="#" | ||
| class="header-nav-link" | ||
| >OM</a> | ||
| <a | ||
| href="kontakt.html" | ||
| class="header-nav-link" | ||
| >KONTAKT</a> | ||
| </div> | ||
| </div> | ||
| </nav> | ||
|
|
||
| <div class="hero-image"> | ||
| <div class="hero-text"> | ||
| <h1>Welcome to Skin Expert</h1> | ||
| <p>Your one-stop solution for all skin care needs.</p> | ||
| <button class="btn">Läs mer</button> | ||
| </div> | ||
| </div> | ||
| </header> | ||
|
|
||
| <main> | ||
| <h1 class="form-title">Kontakt</h1> | ||
|
|
||
| <div class="content-wrapper"> | ||
| <form | ||
| action="https://httpbin.org/anything" | ||
| method="post" | ||
| > | ||
|
|
||
| <fieldset> | ||
| <legend>Dina kontaktuppgifter</legend> | ||
|
|
||
| <label for="name">Namn</label> | ||
| <input | ||
| type="text" | ||
| id="name" | ||
| name="name" | ||
| required | ||
| > | ||
|
|
||
| <label for="email">E-post</label> | ||
| <input | ||
| type="email" | ||
| id="email" | ||
| name="email" | ||
| required | ||
| placeholder="[email protected]" | ||
| > | ||
|
|
||
| <label for="message">Meddelande</label> | ||
| <textarea | ||
| id="message" | ||
| name="message" | ||
| rows="4" | ||
| required | ||
| ></textarea> | ||
| </fieldset> | ||
|
|
||
| <fieldset> | ||
| <legend>Välj tjänster</legend> | ||
|
|
||
| <label for="service1"> | ||
| <input | ||
| type="checkbox" | ||
| id="service1" | ||
| name="services" | ||
| value="service1" | ||
| > | ||
| Tjänst 1 | ||
| </label> | ||
|
|
||
| <label for="service2"> | ||
| <input | ||
| type="checkbox" | ||
| id="service2" | ||
| name="services" | ||
| value="service2" | ||
| > | ||
| Tjänst 2 | ||
| </label> | ||
|
|
||
| <label for="service3"> | ||
| <input | ||
| type="checkbox" | ||
| id="service3" | ||
| name="services" | ||
| value="service3" | ||
| > | ||
| Tjänst 3 | ||
| </label> | ||
| </fieldset> | ||
|
|
||
| <div class="button-wrapper"> | ||
| <input | ||
| type="submit" | ||
| class="contact-btn" | ||
| value="Skicka" | ||
| > | ||
| </div> | ||
| </form> | ||
|
|
||
| <div class="side-content"> | ||
| <h2>Hitta oss</h2> | ||
| <p>Adress: Hudvårdsgatan 12, 123 45 Skönhetsstad</p> | ||
| <p>Telefon: 012-345 67 89</p> | ||
| <p>E-post: [email protected]</p> | ||
| </div> | ||
| </div> | ||
|
|
||
| </main> | ||
|
|
||
| <footer> | ||
| <div class="social-media"> | ||
| <a href="#"><img | ||
| src="images/facebook-icon.png" | ||
| alt="Facebook" | ||
| ></a> | ||
| <a href="#"><img | ||
| src="images/Instagram-icon.png" | ||
| alt="Instagram" | ||
| ></a> | ||
| <a href="#"><img | ||
| src="images/linkedin.webp" | ||
| alt="LinkedIn" | ||
| ></a> | ||
| </div> | ||
| <p>© 2025 Skin Expert. All rights reserved.</p> | ||
| </footer> | ||
| <script src="script.js"></script> | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Maybe consider adding <script src="script.js"></script> to the beginning of the document, in the head, where you have the link to the css file as well. Makes it a bit easier to find. |
||
| </body> | ||
|
|
||
| </html> | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| const hamburger = document.querySelector(".hamburger") | ||
| const navLinks = document.querySelector(".nav-links") | ||
| const body = document.body; | ||
|
|
||
| hamburger.addEventListener("click", () => { | ||
| navLinks.classList.toggle("active") | ||
| hamburger.classList.toggle("open") | ||
| body.classList.toggle("no-scroll") | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Great feature! Will definitely look into adding no scroll to my own site! |
||
| }) | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The code looks very clean in the html files! Great job!