Skip to content

Commit

Permalink
Added Sign-up page in Marketing Website (#304)
Browse files Browse the repository at this point in the history
## Related Issue
Add Sign-up Page in Marketing Web Project

write issue no. here fix #295 

## Email id used to register for VSoc'24
devdabrajraj90@gmail.com

## Description
I have added the sign-up page to the marketing web project.
Additionally, I wrote the JavaScript for data submission to a specific
location.

## Type of PR

- [ ] Bug fix
- [ x] Feature enhancement
- [ ] Documentation update
- [ ] Security enhancement
- [ ] Other (specify): _______________


check in issue by entering [X] in boxes

## Screenshots / Videos (if applicable)
Sign-up page


https://github.com/user-attachments/assets/c44b5f8e-1cf7-4fe6-bddd-9b3b46ac9e33


video

https://github.com/user-attachments/assets/6378ab38-be11-4618-9c81-2a493a2f56ca


[Attach any relevant screenshots or videos demonstrating the changes]

## Checklist
- [x ] I have performed a self-review of my code.
- [x ] I have read and followed the Contribution Guidelines.
- [ x] I have tested the changes thoroughly before submitting this pull
request.
- [x ] I have provided relevant issue numbers, screenshots, and videos
after making the changes.
- [x ] I have commented my code, particularly in hard-to-understand
areas.
- [x ] I have followed the code style guidelines of this project.
- [x ] I have checked for any existing open issues that my pull request
may address.
- [x ] I have ensured that my changes do not break any existing
functionality.
- [x ] Each contributor is allowed to create a maximum of 4 issues per
day. This helps us manage and address issues efficiently.
- [x ] I have read the resources for guidance listed below.
- [ x] I have followed security best practices in my code changes.

check in issue by entering [X] in boxes
## Additional Context

[Include any additional information or context that might be helpful for
reviewers.]

## Contribution Guidelines

Thank you for considering contributing to our project! To ensure smooth
collaboration and effective contribution management, please adhere to
the following guidelines:

### Issue Creation

1. **Limit on Issues:**
- Each contributor is allowed to create a maximum of **4 issues per
day**. This helps us manage and address issues efficiently.

### Contribution Levels

2. **Basic Contributions:**
- This project is primarily focused on documentation. Most of the setup
has been completed, so contributors will generally need to work on basic
code tasks, such as writing tests.
   - For these tasks, issues will be assigned the **Easy** label.

3. **Acknowledging Hard Work:**
- If a contributor puts in significant effort on a task, the issue will
be upgraded to **Medium**. This is our way of recognizing and
appreciating extra effort.

4. **Feature Additions and Component Work:**
- Contributors working on new features or components using JSX/TSX will
be assigned a level based on the complexity and quality of their work.
- The more complex and valuable the contribution, the higher the level
assigned.

### Level Definitions

- **Easy:**
- Tasks are straightforward, such as fixing minor bugs, writing tests,
or making simple documentation updates.
- **Medium:**
- Tasks require more effort, such as addressing complex bugs, improving
existing features, or making substantial documentation improvements.
- **Hard:**
- Tasks are highly complex and involve significant new feature
development, major refactoring, or extensive contributions to the
project’s core components.

We look forward to your contributions and appreciate your effort in
helping us improve the project!
  • Loading branch information
dhairyagothi authored Jul 17, 2024
2 parents e2f96e1 + 8b447db commit 040ef4d
Show file tree
Hide file tree
Showing 3 changed files with 180 additions and 4 deletions.
3 changes: 2 additions & 1 deletion public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -440,7 +440,8 @@
<div class="project-name">Insect-Catch_Game</div>
<a href="public/Insect-Catch-Game/index.html" class="demo-link">Demo</a>
</div>


</div>
<div class="table">
<div class="day-number">Day 71</div>
<div class="project-name">Quotely Laughs</div>
Expand Down
6 changes: 3 additions & 3 deletions public/marketing_website/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -45,21 +45,21 @@ <h2>Services We Provide</h2>
<div class="col-md-4">
<div class="service-box">
<img src="rocket.jpg" alt="SEO" class="img-fluid">
<h3>Search Engine Optimization</h3>
<h3><a href="index2.html">Search Engine Optimization</a></h3>
<p>Lorem ipsum dolor sit amet consectetur adipisicing elit.</p>
</div>
</div>
<div class="col-md-4">
<div class="service-box">
<img src="content marketing.jpg" alt="Content Marketing" class="img-fluid">
<h3>Content Marketing</h3>
<h3><a href="index2.html">Content Marketing</a></h3>
<p>Sed pellentesque malesuada sodales semper porttitor ante imperdiet.</p>
</div>
</div>
<div class="col-md-4">
<div class="service-box">
<img src="webdevlopement.jpg" alt="Web Design" class="img-fluid">
<h3>Web Design & Development</h3>
<h3><a href="index2.html">Web Design & Development</a></h3>
<p>Pellentesque finibus convallis fringilla lorem id orci dictum ipsumsanmaximus.</p>
</div>
</div>
Expand Down
175 changes: 175 additions & 0 deletions public/marketing_website/index2.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,175 @@
<!DOCTYPE html>
<html lang="en">

<head>
<meta charset="utf-8">
<title>Sign Up</title>
<meta content="width=device-width, initial-scale=1.0" name="viewport">

<!-- Google Web Fonts -->
<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=Open+Sans:wght@400;500;600;700&display=swap" rel="stylesheet">

<!-- Icon Font Stylesheet -->
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.10.0/css/all.min.css" rel="stylesheet">

<!-- Customized Bootstrap Stylesheet -->
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0/dist/css/bootstrap.min.css" rel="stylesheet">

<!-- Template Stylesheet -->
<link href="css/style.css" rel="stylesheet">

<style>
body {
background-image: url(".vscode\imGW.jpg"); /* Replace with your image path */
background-repeat: no-repeat; /* Optional: set how the image repeats */
background-position: center; /* Optional: set the position of the image */
background-size: cover; /* Optional: set the size of the image */
font-family: 'Open Sans', sans-serif;
background-color:rgb(220, 220, 220);
}

main {
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
}

.signup {
background-color:#FAF9F6;
padding: 40px;
border-radius: 8px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
max-width: 500px;
width: 100%;
background-image: url(".vscode\imGW.jpg"); /* Replace with your image path */
background-size: cover;
background-position: center;
background-repeat: no-repeat;
}

.signup h2 {
text-align: center;
margin-bottom: 20px;
}

.signup form {
display: flex;
flex-direction: column;
}

.signup label {
margin-bottom: 5px;
}

.signup input {
padding: 10px;
margin-bottom: 10px;
border: 1px solid #ccc;
border-radius: 4px;
}


.signup button {
padding: 10px 20px;
border: none;
border-radius: 4px;
background: #333;
color: #fff;
cursor: pointer;
transition: background 0.3s;
}

.signup button:hover {
background: #555;
}

.password-info {
font-size: 12px;
color: #666;
}

.social-buttons {
display: flex;
justify-content: space-between;
}

.social-buttons a,
.social-buttons button {
flex: 1;
margin: 5px;
padding: 10px;
border: none;
border-radius: 4px;
background: #4285F4; /* Default to Google Blue */
color: #fff;
cursor: pointer;
text-align: center;
text-decoration: none;
transition: background 0.3s;
}

.social-buttons button {
background: #3b5998; /* Facebook Blue */
}

.social-buttons a:hover,
.social-buttons button:hover {
background: #666;
}

#success {
color: green;
font-size: 14px;
text-align: center;
margin-top: 10px;
}

</style>
</head>

<body>
<main>
<section class="signup">
<h2>Sign Up</h2>
<form name="submit-to-google-sheet">
<label for="name">Full Name:</label>
<input type="text" id="name" name="name" required placeholder="Enter your full name">
<label for="email">Email:</label>
<input type="email" id="email" name="email" required placeholder="name@email.com">
<label for="password">Password:</label>
<input type="password" id="password" name="password" required placeholder="Create password">
<p class="password-info">Between 8 and 72 characters</p>
<button type="submit">submit</button>
<span id="success"></span>
</form>
<p>or</p>
<div class="social-buttons">
<a href="#"><i class="fab fa-google"></i> Continue with Google</a>
<button><i class="fab fa-facebook"></i> Continue with Facebook</button>
</div>
<h7><a href="index.html">back Homepage</a></h7>
</section>
</main>

<!-- JavaScript for form submission -->
<script>
const scriptURL = 'put the url'; // Change this URL to point to the desired endpoint
const form = document.forms['submit-to-google-sheet'];
const success = document.getElementById("success");

form.addEventListener('submit', e => {
e.preventDefault();
fetch(scriptURL, { method: 'POST', body: new FormData(form)})
.then(response => {
success.innerHTML = "Data successfully submitted";
setTimeout(() => success.innerHTML = "", 7000);
form.reset();
})
.catch(error => console.error('Error!', error.message));
});
</script>
</body>
</html>

0 comments on commit 040ef4d

Please sign in to comment.