├── design
├── active-states.jpg
├── desktop-design.jpg
├── mobile-design.jpg
└── desktop-preview.jpg
├── images
├── favicon-32x32.png
├── icon-email.svg
├── bg-footer-top-mobile.svg
├── icon-phone.svg
├── bg-footer-top-desktop.svg
├── bg-section-bottom-mobile-1.svg
├── bg-section-top-mobile-1.svg
├── bg-section-top-desktop-1.svg
├── bg-section-bottom-mobile-2.svg
├── bg-section-bottom-desktop-1.svg
├── bg-section-top-mobile-2.svg
├── bg-section-top-desktop-2.svg
├── bg-section-bottom-desktop-2.svg
├── icon-messages.svg
├── icon-communities.svg
├── screen-mockups.svg
├── logo.svg
├── illustration-grow-together.svg
├── illustration-your-users.svg
└── illustration-flowing-conversation.svg
├── .gitignore
├── script.js
├── style-guide.md
├── LICENSE
├── README.md
├── index.html
└── style.css
/design/active-states.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/all-my-frontend-mini-projects/Huddle-curved-section-landing-page_frontend_project/HEAD/design/active-states.jpg
--------------------------------------------------------------------------------
/design/desktop-design.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/all-my-frontend-mini-projects/Huddle-curved-section-landing-page_frontend_project/HEAD/design/desktop-design.jpg
--------------------------------------------------------------------------------
/design/mobile-design.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/all-my-frontend-mini-projects/Huddle-curved-section-landing-page_frontend_project/HEAD/design/mobile-design.jpg
--------------------------------------------------------------------------------
/images/favicon-32x32.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/all-my-frontend-mini-projects/Huddle-curved-section-landing-page_frontend_project/HEAD/images/favicon-32x32.png
--------------------------------------------------------------------------------
/design/desktop-preview.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/all-my-frontend-mini-projects/Huddle-curved-section-landing-page_frontend_project/HEAD/design/desktop-preview.jpg
--------------------------------------------------------------------------------
/images/icon-email.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/images/bg-footer-top-mobile.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/images/icon-phone.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/images/bg-footer-top-desktop.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/images/bg-section-bottom-mobile-1.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/images/bg-section-top-mobile-1.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/images/bg-section-top-desktop-1.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | # Avoid accidental Sketch file upload
2 | ###############################################
3 | ## Please do not remove line 5 - thanks! 🙂 ##
4 | ###############################################
5 | *.sketch
6 |
7 | # Avoid accidental XD or Figma upload if you convert the design file
8 | #######################################################
9 | ## Please do not remove lines 11 and 12 - thanks! 🙂 ##
10 | #######################################################
11 | *.xd
12 | *.fig
13 |
14 | # Avoid your project being littered with annoying .DS_Store files!
15 | .DS_Store
16 |
--------------------------------------------------------------------------------
/images/bg-section-bottom-mobile-2.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/images/bg-section-bottom-desktop-1.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/images/bg-section-top-mobile-2.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/images/bg-section-top-desktop-2.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/images/bg-section-bottom-desktop-2.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/script.js:
--------------------------------------------------------------------------------
1 | const form = document.querySelector("#form")
2 | const mail = document.querySelector("#mail")
3 | const errorText = document.querySelector("#error")
4 |
5 |
6 | function validateEmail(email) {
7 | const re = /^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;
8 | return re.test(String(email).toLowerCase());
9 | }
10 |
11 | form.addEventListener("submit", (e) => {
12 | let emailValue = mail.value
13 | if (validateEmail(emailValue)) {
14 | errorText.style.display = "none";
15 | }
16 | else {
17 | errorText.style.display = "block";
18 | mail.style.border = "1px solid hsl(0, 6%, 24%)"
19 | e.preventDefault();
20 | }
21 | })
--------------------------------------------------------------------------------
/style-guide.md:
--------------------------------------------------------------------------------
1 | # Front-end Style Guide
2 |
3 | ## Layout
4 |
5 | The designs were created to the following widths:
6 |
7 | - Mobile: 375px
8 | - Desktop: 1440px
9 |
10 | ## Colors
11 |
12 | ### Primary
13 |
14 | - Pink: hsl(322, 100%, 66%)
15 | - Light Pink: hsl(321, 100%, 78%)
16 | - Light Red: hsl(0, 100%, 63%)
17 |
18 | ### Neutral
19 |
20 | - Very Dark Cyan: hsl(192, 100%, 9%)
21 | - Very Pale Blue: hsl(207, 100%, 98%)
22 |
23 | ## Typography
24 |
25 | ### Headings
26 |
27 | - Family: [Poppins](https://fonts.google.com/specimen/Poppins)
28 | - Weights: 700
29 |
30 | ### Body
31 |
32 | - Family: [Open Sans](https://fonts.google.com/specimen/Open+Sans)
33 | - Weights: 400, 600, 700
34 |
35 | ## Icons
36 |
37 | For the social icons, you can use a font icon library. Some suggestions can be found below:
38 |
39 | - [Font Awesome](https://fontawesome.com/)
40 | - [IcoMoon](https://icomoon.io/)
41 | - [Ionicons](https://ionicons.com/)
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | BSD 3-Clause License
2 |
3 | Copyright (c) 2024, Sarthak Sachdev
4 |
5 | Redistribution and use in source and binary forms, with or without
6 | modification, are permitted provided that the following conditions are met:
7 |
8 | 1. Redistributions of source code must retain the above copyright notice, this
9 | list of conditions and the following disclaimer.
10 |
11 | 2. Redistributions in binary form must reproduce the above copyright notice,
12 | this list of conditions and the following disclaimer in the documentation
13 | and/or other materials provided with the distribution.
14 |
15 | 3. Neither the name of the copyright holder nor the names of its
16 | contributors may be used to endorse or promote products derived from
17 | this software without specific prior written permission.
18 |
19 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
20 | AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
21 | IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
22 | DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
23 | FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
24 | DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
25 | SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
26 | CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
27 | OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
28 | OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 |
--------------------------------------------------------------------------------
/images/icon-messages.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/images/icon-communities.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # Huddle Landing Page with Curved Section
2 |
3 | ## Welcome! 👋
4 |
5 | ## Table of contents
6 |
7 | - [Overview](#overview)
8 | - [The challenge](#the-challenge)
9 | - [How to setup the project](#how-to-setup-the-project)
10 | - [Screenshot](#screenshot)
11 | - [Links](#links)
12 | - [My process](#my-process)
13 | - [Built with](#built-with)
14 | - [What I learned](#what-i-learned)
15 | - [Continued development](#continued-development)
16 | - [Useful resources](#useful-resources)
17 | - [Author](#author)
18 | - [Acknowledgments](#acknowledgments)
19 |
20 | ## Overview
21 |
22 | ### The challenge
23 |
24 | The challenge is to create the Huddle Landing Page with Curved Section, a landing page for the Huddle website with a unique curved section divider.
25 |
26 | Users should be able to
27 | - View the optimal layout for the site depending on their device's screen size
28 | - See hover states for all interactive elements on the page.
29 |
30 | ### How to setup the project
31 |
32 | To set up the project locally, follow these steps:
33 |
34 | 1. Clone the repository using GitHub Desktop or Git Bash:
35 | ```bash
36 | git clone https://github.com/SartHak-0-Sach/Huddle-curved-section-landing-page_frontend_project.git
37 | ```
38 | 2. Open the project folder in your code editor.
39 | 3. Run the project using a live server extension or deploy it using Netlify, Vercel, or another web hosting and deployment service.
40 |
41 | ### Screenshot
42 |
43 | 
44 |
45 | ### Links
46 |
47 | - Solution URL: [GitHub Repository](https://github.com/SartHak-0-Sach/Huddle-curved-section-landing-page_frontend_project)
48 | - Live Site URL: [Live Site](https://huddle-curved-section-app.netlify.app/)
49 |
50 | ## My process
51 |
52 | ### Built with
53 |
54 | - HTML5
55 | - CSS3
56 | - Vanilla JavaScript
57 |
58 | You will find all the required assets in the `/images` folder. The assets are already optimized.
59 |
60 | There is also a `style-guide.md` file containing the information you'll need, such as color palette and fonts.
61 |
62 | ### What I learned
63 |
64 | Through this project, one gets to revise a lot of CSS and JS concepts, one of them can be input validation as shown below-
65 |
66 | ```js
67 | function validateEmail(email) {
68 | const re = /^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;
69 | return re.test(String(email).toLowerCase());
70 | }
71 |
72 | form.addEventListener("submit", (e) => {
73 | let emailValue = mail.value
74 | if (validateEmail(emailValue)) {
75 | errorText.style.display = "none";
76 | }
77 | else {
78 | errorText.style.display = "block";
79 | mail.style.border = "1px solid hsl(0, 6%, 24%)"
80 | e.preventDefault();
81 | }
82 | })
83 | ```
84 |
85 | ### Continued development
86 |
87 | The continuously learning journey of a programmer never ends. This project made me realize that there are many concepts that I need to work upon including fundamentals like flex-box and its properties, to more complex concepts like working with fetch and async await in javascript. These areas are some that I think I need to work more upon in the upcoming future as they highlight some of the most significant regions of web development that are important for every developer to know of.
88 |
89 | These key points mentioned here will help me grow accountable and consistent towards improving at writing good quality code and be a successful full stack developer one day.
90 |
91 | ### Useful resources
92 |
93 | - [Harkirat Singh course notes](https://github.com/SartHak-0-Sach/harkirat-singh-course_code_and_notes) - I have added notes of all lectures along with code and lecture insights of all weeks along with bonus lectures to help you all as much as I can.
94 | - [My development code and notes](https://github.com/SartHak-0-Sach/cwh-web-dev-playlist_code_and_notes) - These are my notes that I made while working on my development skills in initial days and did these courses. Make sure to star the repository if you like it.✨💫
95 | - [mdn documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/async_function) - This is an amazing article which helped me finally understand promises, async and await syntax. I'd recommend it to anyone still learning this concept.
96 |
97 | ## Author
98 |
99 | Sarthak Sachdev
100 | - Website - [Sarthak Sachdev](https://itsmesarthak.netlify.app/)
101 | - LeetCode - [@sarthak_sachdev](https://leetcode.com/u/sarthak_sachdev/)
102 | - Twitter - [@sarthak_sach69](https://www.twitter.com/sarthak_sach69)
103 |
104 | ## Acknowledgments
105 |
106 | I feel like the solutions provided on the website and the continuous doubt solving by industry experts on discord for free is something that is unmatched by anyone else and need to be acknowledged for their efforts in improving me as a developer by suggesting the best practices in your respective tech stack.
107 |
108 | ## Got feedback for me?
109 |
110 | I love receiving feedback! I am always looking to improve my code and take up new innovative ideas to work upon. So if you have anything you'd like to mention, please email 'hi' at saarsaach30[at]gmail[dot]com.
111 |
112 | If you found this project helpful, consider sharing it with others to spread the knowledge!
113 |
114 | **Happy exploring Huddle!** 🚀🌈
--------------------------------------------------------------------------------
/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
Huddle re-imagines the way we build communities. You have a voice, but so does your audience.
27 | Create connections with your users as you engage in genuine discussion.
28 |
29 |
30 |
31 |
32 |
33 |
34 |
1.4k+
35 |
Communities Formed
36 |
37 |
38 |
39 |
2.7m+
40 |
Messages Sent
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 |
Grow Together
54 |
Generate meaningful discussions with your audience and build a strong, loyal community.
55 | Think of the insightful conversations you miss out on with a feedback form.
56 |
57 |
58 |
59 |
60 |
61 |
62 |
63 |
64 |
65 |
Flowing Conversations
66 |
You wouldn't paginate a conversation in real life, so why do it online? Our threads
67 | have just-in-time loading for a more natural flow.
68 |
69 |
70 |
71 |
72 |
73 |
74 |
75 |
76 |
77 |
Your Users
78 |
It takes no time at all to integrate Huddle with your app's authentication solution.
79 | This means, once signed in to your app, your users can start chatting immediately.