Skip to content

First pull request for solo project #27

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

Open
wants to merge 31 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
b369f21
git commit -m "first updates"
Bianka2112 Feb 6, 2025
f999f92
some improvements
Bianka2112 Feb 6, 2025
250b508
update cards
Bianka2112 Feb 6, 2025
061f04e
photos
Bianka2112 Feb 6, 2025
d23502c
borders off
Bianka2112 Feb 6, 2025
26633dd
css update
Bianka2112 Feb 7, 2025
b04d567
css fix
Bianka2112 Feb 7, 2025
7db6772
header, cleanup
Bianka2112 Feb 7, 2025
b7712ea
updates
Bianka2112 Feb 7, 2025
adfc820
photos reloaded
Bianka2112 Feb 7, 2025
118d6fd
html nav
Bianka2112 Feb 12, 2025
5b7a409
fix banner
Bianka2112 Feb 12, 2025
35e3054
hero video
Bianka2112 Feb 13, 2025
f2cfc3d
fix hero, change footer
Bianka2112 Feb 13, 2025
2493dd9
clean up code
Bianka2112 Feb 13, 2025
b93125e
touchup nav
Bianka2112 Feb 13, 2025
a911082
update assets
Bianka2112 Feb 13, 2025
d3b9be5
code cleanup
Bianka2112 Feb 13, 2025
10391e8
fix everything breaking, responsive ok
Bianka2112 Feb 14, 2025
a9e4cf0
form and formatting
Bianka2112 Feb 14, 2025
ea79c43
form action
Bianka2112 Feb 14, 2025
c7f3e44
code clean up, added js file
Bianka2112 Feb 20, 2025
3910efd
ham menu, finally
Bianka2112 Feb 20, 2025
392bfab
clean code comments, remove console.log
Bianka2112 Feb 23, 2025
3371237
code comments, photos, remove console.log
Bianka2112 Feb 23, 2025
cd57d85
ham menu colors
Bianka2112 Feb 23, 2025
72c59e0
added label for= to form inputs
Bianka2112 Mar 25, 2025
4b690de
added contrast, fonts bigger/bold, shadows to improve color contrast
Bianka2112 Mar 25, 2025
71e0eaa
adjust mobile menu color contrast and check sizing h2
Bianka2112 Mar 25, 2025
15074a0
adjusted form text sizing
Bianka2112 Mar 25, 2025
3d78e80
nav menu border instead of bg change for improved color contrast
Bianka2112 Mar 25, 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.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
# js-project-business-site
# js-project-business-site

Deployed site:
https://thestockholmbuzz.netlify.app/
1 change: 1 addition & 0 deletions assets/2.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions assets/3.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions assets/4.svg
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 assets/Logo-transparent.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 assets/bees-transparent.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 assets/brunch.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 assets/burger2.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 assets/burgers.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 assets/dog-cafe.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 assets/drinks-group.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 assets/eat-happy.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 assets/favorite.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 assets/hero-video.mp4
Binary file not shown.
Binary file added assets/honey-line.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 assets/honey-stick.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 assets/logo-large-transparent.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 assets/pizza.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 assets/ramen.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 assets/semla.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 assets/tacos.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
271 changes: 271 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,271 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<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=La+Belle+Aurore&display=swap" rel="stylesheet">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<html>
<title>The Stockholm Buzz</title>
</head>

<body>
<!-- Header and Nav -->
<header>
<nav class="navbar">
<img
class="nav-logo"
src="./assets/logo-large-transparent.png"
alt="The Stockholm Buzz logo"
style="width: 100px;">

<div class="hamburger-menu">
<a href="javascript:void(0);" class="hamburger-icon">
<i class="fa fa-bars"></i></a>
</div>
<div class="nav-links">
<a href="#">Home</a>
<a href="#">About</a>
<a href="#">Contact</a>
</div>

<img
class="bees"
src="./assets/3.svg"
alt="decorative bees"
style="width: 100px;">
</nav>
</header>

<!-- Hero Video/Image -->
<section class="hero-container">
<div class="overlay"></div>
<video
autoplay
loop
muted
playsinline
class="hero-video"
poster="./assets/drinks-group.jpg">
<source
src="./assets/hero-video.mp4" type="video/mp4">
Your browser doesn't support the video tag
</video>
<h1 class="hero-heading">What's the buzz around town
</h1>
</section>

<hr>

<div class="article-heading">
<h2>Buzzing Topics
<img
class="bees"
src="./assets/3.svg"
alt="decorative bees"
style="width: 100px;">
</h2>
</div>

<!-- Article cards -->
<section class="grid-container">
<div class="grid-item article">
<h3> Tastiest Ramen in town</h3>
<img
src="./assets/ramen.jpg"
alt="bowl of ramen soup"
style="width: 100%;">
<a class="article-button" href="#">Read more...</a>
</div>

<div class="grid-item article">
<h3> Finally, Semla season!</h3>
<img
src="./assets/semla.jpg"
alt="swedish semla bun"
style="width: 100%;">
<a class="article-button" href="#">Read more...</a>
</div>

<div class="grid-item article">
<h3> Pizza. Say less.</h3>
<img
src="./assets/pizza.jpg"
alt="pizza"
style="width: 100%;">
<a class="article-button" href="#">Read more...</a>
</div>

<div class="grid-item article">
<h3> In search of the perfect burger</h3>
<img
src="./assets/burger2.jpg" alt="burger"
style="width: 100%;">
<a class="article-button" href="#">Read more...</a>
</div>

<div class="grid-item article">
<h3> Dog-approved and pet-positive</h3>
<img
src="./assets/dog-cafe.jpg" alt="happy dog cafe"
style="width: 100%;">
<a class="article-button" href="#">Read more...</a>
</div>

<div class="grid-item article">
<h3> Boozy Brunches for that thing you did, woo!</h3>
<img
src="./assets/drinks-group.jpg" alt="group brunch"
style="width: 100%;">
<a class="article-button" href="#">Read more...</a>
</div>

<div class="grid-item article">
<h3> My #1 favorite restaurant </h3>
<img
src="./assets/favorite.jpg" alt="barbro restaurant"
style="width: 100%;">
<a class="article-button" href="#">Read more...</a>
</div>

<div class="grid-item article">
<h3> Don't be fooled, eat real tacos</h3>
<img
src="./assets/tacos.jpg"
alt="tacos"
style="width: 100%;">
<a class="article-button" href="#">Read more...</a>
</div>
</section>

<!-- Form -->
<form action="https://httpbin.org/anything" method="POST">
<fieldset>
<legend>Let's keep you up-to-buzz</legend>
<div>
<label for="name">Your Name</label>
<input
id="name"
class="form-input"
type="text"
placeholder="Your Name"
name="name"
required>
</div>
<div>
<label for="email">Email Address</label>
<input
id="email"
class="form-input"
type="email"
placeholder="[email protected]"
name="email"
required>
</div>

<section class="content-options">
<h3>What type of content would you like to see more of?</h3>

<div class="checkbox-card">
<label>
<input
class="form-checkbox"
type="checkbox"
name="content_trending_shops">
<span class="card-text">Trending Shops</span>
</label>
</div>

<div class="checkbox-card">
<label>
<input
class="form-checkbox"
type="checkbox"
name="content_video_reviews">
<span class="card-text">Video Reviews</span>
</label>
</div>

<div class="checkbox-card">
<label>
<input
class="form-checkbox"
type="checkbox"
name="content_community_stories">
<span class="card-text">Community Stories</span>
</label>
</div>
</section>

<section class="content-options">
<h3>Would you like to participate in:</h3>

<div class="checkbox-card">
<label>
<input
class="form-checkbox"
type="checkbox"
name="participate_testing_new_features">
<span class="card-text">Testing New Features</span>
</label>
</div>

<div class="checkbox-card">
<label>
<input
class="form-checkbox"
type="checkbox"
name="participate_early_access_offers">
<span class="card-text">Exclusive Early Access Offers</span>
</label>
</div>
</section>

<button
class="form-button"
type="submit">
I want in 🍯 🐝
</button>

</fieldset>
</form>

<footer>
<section class="lower-banner">
<h1>The latest and greatest buzz about food. drinks. & more.</h1>
</section>

<hr>

<div class="footer-container">
<img
src="./assets/logo-large-transparent.png"
alt="The Stockholm Buzz logo"
style="width: 100px;">
<h2 class="footer-h2">Follow the honey...
<img
class="img-footer"
alt="dripping honey image"
src="./assets/4.svg"
style="width: 50px;">
</h2>
</div>

<section class="footer-socials">
<link
href="//netdna.bootstrapcdn.com/font-awesome/4.1.0/css/font-awesome.min.css"
rel="stylesheet">

<div class='demopadding'>
<div class='icon social fb'><i class='fa fa-facebook'></i></div>
<div class='icon social tw'><i class='fa fa-twitter'></i></div>
<div class='icon social in'><i class='fa fa-linkedin'></i></div>
</div>
</section>
</footer>
<script src="script.js"></script>
</body>
</html>
10 changes: 10 additions & 0 deletions script.js

Choose a reason for hiding this comment

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

You've done this in your CSS so I'm sure you're aware of it as a tactic but thought to throw a comment in here anyway. You can also use comments in JS to separate your JS code (when it gets longer of course).

Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
// Variable selectors
const getMenu = document.querySelector(".hamburger-icon")
const navMenu = document.querySelector(".nav-links")

// Hamburger menu
getMenu.addEventListener("click", () => {
getMenu.classList.toggle("open")
navMenu.classList.toggle("open")
})

Loading