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

Business site project - Jenny Andersén #374

Open
wants to merge 10 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 9 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
Binary file added .DS_Store
Binary file not shown.
10 changes: 2 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,6 @@
# Business Site

Replace this readme with your own information about your project.

Start by briefly describing the assignment in a sentence or two. Keep it short and to the point.

## The problem

Describe how you approached to problem, and what tools and techniques you used to solve it. How did you plan? What technologies did you use? If you had more time, what would be next?
The task was to create a business one-pager website that contains an image or video header and a signup form. The main focus is practising what you've learned about HTML forms. You can make up your own fantasy company or use an existing one.

## View it live
Every project should be deployed somewhere. Be sure to include the link to the deployed project so that the viewer can click around and see what it's all about.
https://binge-streaming-business-site.netlify.app/
Binary file added code/.DS_Store
Binary file not shown.
Binary file added code/assets/.DS_Store
Binary file not shown.
Binary file added code/assets/logo-binge2.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 code/assets/logo-example.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 code/assets/pool-hang-2.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 code/assets/pool-hang.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
59 changes: 43 additions & 16 deletions code/index.html
Original file line number Diff line number Diff line change
@@ -1,17 +1,44 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Business Site</title>
<!-- dont forget to add a css file and link it here! -->
</head>
<body>
<h1>Business name 🌻</h1>

<!-- video or image as a header is cool :) -->

<!-- Signup form -->

</body>
</html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Binge Streaming Service</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&display=swap" rel="stylesheet">
</head>
<body>
<main class="container">
<section class="video-background">
<video autoplay loop muted playsinline>
<source src="https://videos.pexels.com/video-files/6976213/6976213-uhd_1920_1440_25fps.mp4" type="video/mp4">
</video>
<h1 class="overlay-text">Watched everything? <br>Don't worry - we've got more!</h1>
</section>

<section class="form-container">
<img src="./assets/logo-binge2.png" alt="Binge logo">
<form action="https://httpbin.org/anything" method="POST">
<h2>Your new favorite streaming service</h2>
<p>Sign up now to try it out for free!</p>
<input type="text" placeholder="Name" required>
<input type="email" placeholder="Email" required>
<input type="password" placeholder="Password" required>
<input type="password" placeholder="Repeat password" required>

<div class="radio-group">
<label><input type="radio" name="length" value="Monthly"> Monthly</label>
<label><input type="radio" name="length" value="Yearly"> Yearly</label>
</div>
<div class="checkbox-group">
<input type="checkbox" id="terms" required>
<label for="terms">I accept the terms & conditions.</label>
</div>
<button type="submit">START STREAMING</button>
</form>
</section>
</main>
</body>
</html>
160 changes: 156 additions & 4 deletions code/style.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,157 @@
/* After you've linked the CSS file in the HTML,
this should turn the background blue ;) */
body {
background: blue;
/* Base styles */
body, html {
margin: 0;
padding: 0;
font-family: "Montserrat", sans-serif;
height: 100%;
background-color: rgb(250, 243, 102);
}

/* Layout */
.container {
display: flex;
height: 100%;
min-height: 100vh;
}

/* Video background styles */
.video-background {
flex: 1;
position: relative;
overflow: hidden;
}

video {
position: absolute;
top: 50%;
left: 50%;
min-width: 100%;
min-height: 100%;
transform: translate(-50%, -50%);
object-fit: cover;
}

.overlay-text {
position: absolute;
top: 45%;
left: 50%;
transform: translate(-50%, -50%);
color: white;
text-align: center;
font-size: 2rem;
}

/* Form container styles */
.form-container {
flex: 1;
padding: 2rem;
display: flex;
flex-direction: column;
justify-content: center;
}

.container img {
max-width: 200px;
margin: 0 auto;
padding-bottom: 20px;
}

/* Form styles */
form {
max-width: 380px;
margin: 0 auto;
}

h2 {
text-align: center;
margin-bottom: 2rem;
font-size: 1.7rem;
}

p {
text-align: center;
margin-bottom: 2rem;
font-size: 1rem;
}

/* Form input styles */
input[type="text"],
input[type="email"],
input[type="password"] {
width: 95%;
padding: 0.8rem;
margin-bottom: 1rem;
border: 1px solid #ccc;
border-radius: 4px;
}

.radio-group {
display: flex;
justify-content: space-around;
margin-bottom: 1rem;
}

.checkbox-group {
display: flex;
align-items: center;
margin-bottom: 1rem;
}

.checkbox-group label {
margin-left: 0.5rem;
}

button {
width: 100%;
padding: 0.75rem;
background-color: black;
color: white;
border: none;
border-radius: 4px;
cursor: pointer;
font-size: 1rem;
font-family: "Montserrat", sans-serif;
}

/* Responsive styles */

/* Tablet or Desktop */
@media (max-width: 768px) {
.container {
flex-direction: column;
}

.video-background {
height: 30vh;
}

.form-container {
padding: 1rem;
}
}

/* Mobile */
@media (min-width: 300px) and (max-width: 768px) {
.form-container {
width: 87%;
margin-top: 10px;
margin-bottom: 50px;
}

.overlay-text {
text-align: center;
margin-bottom: 2rem;
font-size: 1.2rem;
}

.video-background {
height: 100vh;
}

video {
width: 100%;
height: 100%;
transform: translate(-50%, -50%) scale(1.2);
object-position: center;
}
}