Skip to content
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

Add license 1 #26

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all 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
2 changes: 2 additions & 0 deletions README.MD
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
This project is tested with [BrowserStack](https://www.browserstack.com/)

# Supplementary Course Resources

This repository contains course code and other resources (e.g. slides) that are shown, created or used in our [complete web development course](https://acad.link/web-dev).
Expand Down
Empty file added code/00-starting-project/app.js
Empty file.
53 changes: 53 additions & 0 deletions code/00-starting-project/frontend-site/about.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Eatwell - Make The World A Tastier Place</title>
<link rel="preconnect" href="https://fonts.gstatic.com" />
<link
href="https://fonts.googleapis.com/css2?family=Roboto+Condensed:wght@700&family=Roboto:wght@400;700&display=swap"
rel="stylesheet"
/>
<link rel="stylesheet" href="styles/shared.css" />
<script src="scripts/responsive.js" defer></script>
</head>
<body>
<header id="main-header">
<div id="logo"><a href="index.html">Eatwell</a></div>
<nav>
<ul>
<li class="nav-item"><a href="restaurants.html">Browse Restaurants</a></li>
<li class="nav-item"><a href="recommend.html">Share a Restaurant</a></li>
<li class="nav-item"><a href="about.html">About Eatwell</a></li>
</ul>
</nav>
<button id="drawer-btn">
<span></span>
<span></span>
<span></span>
</button>
</header>
<aside id="mobile-drawer">
<nav>
<ul>
<li class="nav-item"><a href="restaurants.html">Browse Restaurants</a></li>
<li class="nav-item"><a href="recommend.html">Share a Restaurant</a></li>
<li class="nav-item"><a href="about.html">About Eatwell</a></li>
</ul>
</nav>
</aside>
<main>
<h1>Make the world a tastier place!</h1>
<p>
Eatwell is a website for food enthusiasts that allows you to share and
discover amazing restaurants from all over the world!
</p>
<p>
You don't need to sign up or create any account - you can simply start
sharing right away!
</p>
</main>
</body>
</html>
54 changes: 54 additions & 0 deletions code/00-starting-project/frontend-site/confirm.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Eatwell - Make The World A Tastier Place</title>
<link rel="preconnect" href="https://fonts.gstatic.com" />
<link
href="https://fonts.googleapis.com/css2?family=Roboto+Condensed:wght@700&family=Roboto:wght@400;700&display=swap"
rel="stylesheet"
/>
<link rel="stylesheet" href="styles/shared.css" />
<script src="scripts/responsive.js" defer></script>
</head>
<body>
<header id="main-header">
<div id="logo"><a href="index.html">Eatwell</a></div>
<nav>
<ul>
<li class="nav-item">
<a href="restaurants.html">Browse Restaurants</a>
</li>
<li class="nav-item">
<a href="recommend.html">Share a Restaurant</a>
</li>
<li class="nav-item"><a href="about.html">About Eatwell</a></li>
</ul>
</nav>
<button id="drawer-btn">
<span></span>
<span></span>
<span></span>
</button>
</header>
<aside id="mobile-drawer">
<nav>
<ul>
<li class="nav-item">
<a href="restaurants.html">Browse Restaurants</a>
</li>
<li class="nav-item">
<a href="recommend.html">Share a Restaurant</a>
</li>
<li class="nav-item"><a href="about.html">About Eatwell</a></li>
</ul>
</nav>
</aside>
<main>
<h1>Success!</h1>
<p>Your restaurant was successfully added to our list!</p>
</main>
</body>
</html>
57 changes: 57 additions & 0 deletions code/00-starting-project/frontend-site/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Eatwell - Make The World A Tastier Place</title>
<link rel="preconnect" href="https://fonts.gstatic.com" />
<link
href="https://fonts.googleapis.com/css2?family=Roboto+Condensed:wght@700&family=Roboto:wght@400;700&display=swap"
rel="stylesheet"
/>
<link rel="stylesheet" href="styles/shared.css" />
<link rel="stylesheet" href="styles/index.css" />
<script src="scripts/responsive.js" defer></script>
</head>
<body>
<header id="main-header">
<div id="logo"><a href="index.html">Eatwell</a></div>
<nav>
<ul>
<li class="nav-item"><a href="restaurants.html">Browse Restaurants</a></li>
<li class="nav-item"><a href="recommend.html">Share a Restaurant</a></li>
<li class="nav-item"><a href="about.html">About Eatwell</a></li>
</ul>
</nav>
<button id="drawer-btn">
<span></span>
<span></span>
<span></span>
</button>
</header>
<aside id="mobile-drawer">
<nav>
<ul>
<li class="nav-item"><a href="restaurants.html">Browse Restaurants</a></li>
<li class="nav-item"><a href="recommend.html">Share a Restaurant</a></li>
<li class="nav-item"><a href="about.html">About Eatwell</a></li>
</ul>
</nav>
</aside>
<main>
<h1>Make the world a tastier place!</h1>
<p>
Share your favorite restaurants or find recommendations of other users!
</p>
<ul id="actions">
<li>
<a href="restaurants.html">Browse Shared Restaurants</a>
</li>
<li>
<a href="recommend.html">Share Your Favorite Restaurant</a>
</li>
</ul>
</main>
</body>
</html>
88 changes: 88 additions & 0 deletions code/00-starting-project/frontend-site/recommend.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Eatwell - Make The World A Tastier Place</title>
<link rel="preconnect" href="https://fonts.gstatic.com" />
<link
href="https://fonts.googleapis.com/css2?family=Roboto+Condensed:wght@700&family=Roboto:wght@400;700&display=swap"
rel="stylesheet"
/>
<link rel="stylesheet" href="styles/shared.css" />
<link rel="stylesheet" href="styles/recommend.css" />
<script src="scripts/responsive.js" defer></script>
</head>
<body>
<header id="main-header">
<div id="logo"><a href="index.html">Eatwell</a></div>
<nav>
<ul>
<li class="nav-item">
<a href="restaurants.html">Browse Restaurants</a>
</li>
<li class="nav-item">
<a href="recommend.html">Share a Restaurant</a>
</li>
<li class="nav-item"><a href="about.html">About Eatwell</a></li>
</ul>
</nav>
<button id="drawer-btn">
<span></span>
<span></span>
<span></span>
</button>
</header>
<aside id="mobile-drawer">
<nav>
<ul>
<li class="nav-item">
<a href="restaurants.html">Browse Restaurants</a>
</li>
<li class="nav-item">
<a href="recommend.html">Share a Restaurant</a>
</li>
<li class="nav-item"><a href="about.html">About Eatwell</a></li>
</ul>
</nav>
</aside>
<main>
<h1>Share your favorite restaurant!</h1>
<form>
<div class="form-control">
<label for="name">Restaurant name</label>
<input type="text" id="name" name="name" required />
</div>
<div class="form-control">
<label for="address">Address</label>
<input type="text" id="address" name="address" required />
</div>
<div class="form-control">
<label for="cuisine">Type of cuisine</label>
<input
type="text"
id="cuisine"
name="cuisine"
placeholder="e.g. Mexican"
required
/>
</div>
<div class="form-control">
<label for="website">Restaurant website</label>
<input type="url" id="website" name="website" />
</div>
<div class="form-control">
<label for="description">Why do you recommend it?</label>
<textarea
name="description"
id="description"
rows="5"
required
></textarea>
</div>
<button>Share Restaurant</button>
</form>
</main>
</body>
</html>
73 changes: 73 additions & 0 deletions code/00-starting-project/frontend-site/restaurants.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Eatwell - Make The World A Tastier Place</title>
<link rel="preconnect" href="https://fonts.gstatic.com" />
<link
href="https://fonts.googleapis.com/css2?family=Roboto+Condensed:wght@700&family=Roboto:wght@400;700&display=swap"
rel="stylesheet"
/>
<link rel="stylesheet" href="styles/shared.css" />
<link rel="stylesheet" href="styles/restaurants.css" />
<script src="scripts/responsive.js" defer></script>
</head>
<body>
<header id="main-header">
<div id="logo"><a href="index.html">Eatwell</a></div>
<nav>
<ul>
<li class="nav-item">
<a href="restaurants.html">Browse Restaurants</a>
</li>
<li class="nav-item">
<a href="recommend.html">Share a Restaurant</a>
</li>
<li class="nav-item"><a href="about.html">About Eatwell</a></li>
</ul>
</nav>
<button id="drawer-btn">
<span></span>
<span></span>
<span></span>
</button>
</header>
<aside id="mobile-drawer">
<nav>
<ul>
<li class="nav-item">
<a href="restaurants.html">Browse Restaurants</a>
</li>
<li class="nav-item">
<a href="recommend.html">Share a Restaurant</a>
</li>
<li class="nav-item"><a href="about.html">About Eatwell</a></li>
</ul>
</nav>
</aside>
<main>
<h1>Recommended restaurants</h1>
<p>Find your next favorite restaurants with help of our other users!</p>
<ul id="restaurants-list">
<li class="restaurant-item">
<article>
<h2>Restaurant Title</h2>
<div class="restaurant-meta">
<p>Mexican</p>
<p>Address of the restaurant, including city</p>
</div>
<p>
A short description, explaining why this restaurant is awesome!
</p>
<div class="restaurant-actions">
<a href="">View Website</a>
</div>
</article>
</li>

</ul>
</main>
</body>
</html>
8 changes: 8 additions & 0 deletions code/00-starting-project/frontend-site/scripts/responsive.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
const drawerBtnElement = document.getElementById('drawer-btn');
const mobileDarwerElement = document.getElementById('mobile-drawer');

function toggleDrawer() {
mobileDarwerElement.classList.toggle('open');
}

drawerBtnElement.addEventListener('click', toggleDrawer);
45 changes: 45 additions & 0 deletions code/00-starting-project/frontend-site/styles/index.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
main {
width: 95%;
max-width: 50rem;
margin: 3rem auto;
text-align: center;
}

main h1 {
font-family: 'Roboto Condensed', 'Roboto', sans-serif;
color:rgb(202, 158, 62);
}

main ul {
list-style: none;
margin: 3rem 0;
padding: 0;
display: flex;
}

main li {
width: 20rem;
height: 10rem;
border-radius: 6px;
margin: 0 1rem;
overflow: hidden;
}

main li a {
height: 100%;
width: 100%;
display: flex;
background-color: rgb(48, 42, 31);
justify-content: center;
align-items: center;
text-decoration: none;
color: rgb(218, 205, 183);
font-size: 1.25rem;
padding: 1rem;
box-sizing: border-box;
}

main li a:hover,
main li a:active {
background-color: rgb(100, 81, 43);
}
Loading