-
Notifications
You must be signed in to change notification settings - Fork 471
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
Week 3: Project Business Site #383
base: master
Are you sure you want to change the base?
Changes from 6 commits
c25374a
cb23de3
7889672
4cc6509
e76af21
648f8fb
ed27435
58a288d
a86c2de
12ce808
7f8315b
b617b0a
ae450c2
aff16d6
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,12 +1,18 @@ | ||
# 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. | ||
This project involved creating a responsive and visually appealing sign-up page for the one-page "Balanced Body" website. The goal was to design a user-friendly interface that captures user information and preferences, particularly focusing on forms - aligning radio buttons and checkboxes with their respective labels and also to include a header featuring a responsive image or video. | ||
|
||
## 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 primary challenge was ensuring that form elements, such as radio buttons and checkboxes, were perfectly aligned with their associated labels, both vertically and horizontally. To tackle this problem, I employed a combination of HTML and CSS. I started by mapping out the layout, ensuring that each element was placed logically and aesthetically on the page. The goal was to create a clean, minimalist design that would work well on both desktop and mobile devices. Technologies used: | ||
|
||
|
||
HTML5: Structured the content of the sign-up page, ensuring semantic accuracy. | ||
|
||
|
||
CSS3: Applied styling to ensure the page was visually appealing and that elements such as radio buttons and checkboxes were correctly aligned. Flexbox was used extensively to handle layout tasks, and specific adjustments were made using properties like align-items, justify-content, and transform for fine-tuning. | ||
|
||
## 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://balancedbodies.netlify.app | ||
|
||
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,77 @@ | ||
<!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> | ||
<html lang="en"> | ||
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. HTML: The code is well structured and clearly classes clearly labeled. For me as a reader not familiar with your code is it easier to have comments showing me where the different code sections start/end. |
||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<title>Sign up to start painting</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=Prata&display=swap" rel="stylesheet"> | ||
</head> | ||
<body> | ||
<header class="site-header"> | ||
<div class="logo-container"> | ||
<img src="balanced-body-high-resolution-logo-white.png" alt="Balanced Body Logo" class="logo-image"> | ||
</div> | ||
</header> | ||
|
||
<!-- video or image as a header is cool :) --> | ||
<section class="hero-section"> | ||
<img src="Screenshot 2024-08-27 at 21.49.14.png" alt="Hero Image" class="hero-image"> | ||
<div class="hero-overlay"> | ||
<h1> | ||
<span class="white-text">Balance</span> <span class="yellow-text">Your Body</span> | ||
</h1> | ||
<p>Introducing the new workout collection, a line of productive exercises designed specifically for busy professionals.</p> | ||
</div> | ||
</section> | ||
|
||
<main> | ||
<div class="main-content"> | ||
<div class="signup-container"> | ||
<h2>Sign up to start transforming into a new era with Balanced Body</h2> | ||
<form action="https://httpbin.org/anything" method="post"> | ||
<label for="name">Name</label> | ||
<input type="text" id="name" name="name" placeholder="Your name" required> | ||
|
||
<!-- Signup form --> | ||
<label for="email">Email address</label> | ||
<input type="email" id="email" name="email" placeholder="[email protected]" required> | ||
|
||
<label for="phone">Phone number</label> | ||
<input type="tel" id="phone" name="phone" placeholder="Your phone number" required> | ||
|
||
</body> | ||
<div class="radio-group"> | ||
<p>Please select your preferred time for receiving notifications:</p> | ||
<div class="radio-options"> | ||
<label for="morning"> | ||
<input type="radio" id="morning" name="time" value="morning"> Morning | ||
</label> | ||
<label for="afternoon"> | ||
<input type="radio" id="afternoon" name="time" value="afternoon"> Afternoon | ||
</label> | ||
<label for="evening"> | ||
<input type="radio" id="evening" name="time" value="evening"> Evening | ||
</label> | ||
</div> | ||
</div> | ||
|
||
<div class="checkbox-group"> | ||
<label for="terms">I agree to the Terms & Conditions</label> | ||
<input type="checkbox" id="terms" name="terms" required> | ||
</div> | ||
|
||
<button type="submit" class="submit-button">Next</button> | ||
</form> | ||
<div class="divider">or</div> | ||
<div class="social-signup"> | ||
<button class="social-button google">Sign up with Google</button> | ||
<button class="social-button facebook">Sign up with Facebook</button> | ||
<button class="social-button apple">Sign up with Apple</button> | ||
</div> | ||
<p class="login-link">Already have an account? <a href="#">Log in here</a>.</p> | ||
</div> | ||
</div> | ||
</main> | ||
</body> | ||
</html> | ||
s |
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.
Well done! You included a hero image and a form to your website and your website is responsive. I think you structured the website well!
Looking at your files, I think it could be good to have extra folder for the images in future especially if you have more images.