├── images ├── dots.png ├── avatar.jpg ├── dog-image-1.jpg ├── dog-image-2.jpg ├── dog-image-3.jpg ├── left-arrow.png └── favicon-32x32.png ├── design ├── desktop-design.jpg ├── mobile-design.jpg └── desktop-preview.jpg ├── .gitignore ├── LICENSE ├── style-guide.md ├── index.html ├── README.md └── style.css /images/dots.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/all-my-frontend-mini-projects/chat-app-css-illustration_frontend_project/HEAD/images/dots.png -------------------------------------------------------------------------------- /images/avatar.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/all-my-frontend-mini-projects/chat-app-css-illustration_frontend_project/HEAD/images/avatar.jpg -------------------------------------------------------------------------------- /images/dog-image-1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/all-my-frontend-mini-projects/chat-app-css-illustration_frontend_project/HEAD/images/dog-image-1.jpg -------------------------------------------------------------------------------- /images/dog-image-2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/all-my-frontend-mini-projects/chat-app-css-illustration_frontend_project/HEAD/images/dog-image-2.jpg -------------------------------------------------------------------------------- /images/dog-image-3.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/all-my-frontend-mini-projects/chat-app-css-illustration_frontend_project/HEAD/images/dog-image-3.jpg -------------------------------------------------------------------------------- /images/left-arrow.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/all-my-frontend-mini-projects/chat-app-css-illustration_frontend_project/HEAD/images/left-arrow.png -------------------------------------------------------------------------------- /design/desktop-design.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/all-my-frontend-mini-projects/chat-app-css-illustration_frontend_project/HEAD/design/desktop-design.jpg -------------------------------------------------------------------------------- /design/mobile-design.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/all-my-frontend-mini-projects/chat-app-css-illustration_frontend_project/HEAD/design/mobile-design.jpg -------------------------------------------------------------------------------- /images/favicon-32x32.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/all-my-frontend-mini-projects/chat-app-css-illustration_frontend_project/HEAD/images/favicon-32x32.png -------------------------------------------------------------------------------- /design/desktop-preview.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/all-my-frontend-mini-projects/chat-app-css-illustration_frontend_project/HEAD/design/desktop-preview.jpg -------------------------------------------------------------------------------- /.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 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2024 Sarthak Sachdev 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /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 | #### Text 15 | 16 | - Pale Violet (sub-heading at the top of the app UI): hsl(276, 100%, 81%) 17 | - Moderate Violet (chat on the left): hsl(276, 55%, 52%) 18 | - Desaturated Dark Violet (chat on the right): hsl(271, 15%, 43%) 19 | - Grayish Blue (placeholder text): hsl(206, 6%, 79%) 20 | - Very Dark Desaturated Violet (main heading): hsl(271, 36%, 24%) 21 | - Dark Grayish Violet (paragraph): hsl(270, 7%, 64%) 22 | 23 | #### Gradients 24 | 25 | These two colors are the vibrant background colors you see throughout the design and are applied as a linear gradient: 26 | 27 | - Light Magenta: hsl(293, 100%, 63%) 28 | - Light Violet: hsl(264, 100%, 61%) 29 | 30 | ### Secondary 31 | 32 | - White: hsl(0, 0%, 100%) 33 | - Light Grayish Violet (app background): hsl(270, 20%, 96%) 34 | - Very Dark Desaturated Violet (submit button background): hsl(271, 36%, 24%) 35 | - Very Light Magenta (radio button outline): hsl(289, 100%, 72%) 36 | 37 | ## Typography 38 | 39 | ### Body Copy 40 | 41 | - Font size: 16px 42 | 43 | ### Font 44 | 45 | - Family: [Rubik](https://fonts.google.com/specimen/Rubik) 46 | - Weights: 400, 500, 700 47 | -------------------------------------------------------------------------------- /index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | chat app illustration 11 | 12 | 13 | 14 | 15 | 16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 | arrow 26 | avatar 27 |
28 |

Samuel Green

29 | Available to Walk 30 |
31 |
32 | dots 33 |
34 |
35 |

That sounds great. I'd be happy with that.

36 | 37 |

Could you send over some pictures of your dog, please?

38 |
39 | dog1 40 | dog2 41 | dog3 42 |
43 |
44 |

Here are a few pictures. She's a happy girl!

45 |

Can you make it?

46 |
47 |

She looks so happy! The time we discussed works. How long shall I take her out for? 48 |

49 | 50 |
51 |
52 |
53 |

30 minute walk

54 |
55 | $29 56 |
57 | 58 |
59 |
60 |
61 |

1 hour walk

62 |
63 | $49 64 |
65 | 66 |
67 |

Type a message…

68 |
69 |
70 |
71 |
72 |
73 |

Simple booking

74 | 75 |

Stay in touch with our dog walkers through the chat interface. This makes it easy to 76 | discuss arrangements and make bookings. Once the walk has been completed you can rate 77 | your walker and book again all through the chat.

78 |
79 |
80 | 83 | 84 | 85 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Chat App CSS Illustration 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 a visually appealing illustration of a chat app interface using HTML and CSS. The component should provide 25 | - View the optimal layout for the app depending on their device's screen size. 26 | - A bonus would be to add animation to the chat interface upon initial load. 27 | 28 | ### How to setup the project 29 | 30 | To set up the project locally, follow these steps: 31 | 32 | 1. Clone the repository using GitHub Desktop or Git Bash: 33 | ```bash 34 | git clone https://github.com/SartHak-0-Sach/chat-app-css-illustration_frontend_project.git 35 | ``` 36 | 2. Open the project folder in your code editor. 37 | 3. Run the project using a live server extension or deploy it using Netlify, Vercel, or another web hosting and deployment service. 38 | 39 | ### Screenshot 40 | 41 | ![Design Preview](./design/desktop-design.jpg) 42 | 43 | ### Links 44 | 45 | - Solution URL: [GitHub Repository](https://github.com/SartHak-0-Sach/chat-app-css-illustration_frontend_project) 46 | - Live Site URL: [Live Site](https://chat-illustration-frontend-app.netlify.app/) 47 | 48 | ## My process 49 | 50 | ### Built with 51 | 52 | - HTML5 53 | - CSS3 54 | 55 | You will find all the required assets in the `/images` folder. The assets are already optimized. 56 | 57 | There is also a `style-guide.md` file containing the information you'll need, such as color palette and fonts. 58 | 59 | ### What I learned 60 | 61 | To make this project successfully, one needs to have a mastery in commmand over CSS, as placing every element precisely at desired place and that too made responsive for all screen sizes is not at all easy, such as design of mobile as shown- 62 | 63 | ``` 64 | .mobile_top-part { 65 | position: relative; 66 | display: flex; 67 | align-items: flex-end; 68 | gap: 4.4rem; 69 | height: 4.2rem; 70 | overflow-y: hidden; 71 | 72 | background: linear-gradient(90deg, rgba(136, 56, 255, 1) 20%, rgba(233, 66, 255, 1) 90%); 73 | border-radius: 20px 20px 5px 5px; 74 | } 75 | 76 | .mobile_top-part_notch { 77 | background: var(--White); 78 | position: absolute; 79 | top: -0.65rem; 80 | position: absolute; 81 | margin-left: auto; 82 | margin-right: auto; 83 | left: 0; 84 | right: 0; 85 | text-align: center; 86 | border-radius: .8rem; 87 | width: 8rem; 88 | height: 1.8rem; 89 | } 90 | ``` 91 | 92 | ### Continued development 93 | 94 | 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. 95 | 96 | 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. 97 | 98 | ### Useful resources 99 | 100 | - [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. 101 | - [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.✨💫 102 | - [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. 103 | 104 | ## Author 105 | 106 | Sarthak Sachdev 107 | - Website - [Sarthak Sachdev](https://itsmesarthak.netlify.app/) 108 | - LeetCode - [@sarthak_sachdev](https://leetcode.com/u/sarthak_sachdev/) 109 | - Twitter - [@sarthak_sach69](https://www.twitter.com/sarthak_sach69) 110 | 111 | ## Acknowledgments 112 | 113 | 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. 114 | 115 | ## Got feedback for me? 116 | 117 | 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. 118 | 119 | If you found this project helpful, consider sharing it with others to spread the knowledge! 120 | 121 | **Happy coding!** ☺️🚀 -------------------------------------------------------------------------------- /style.css: -------------------------------------------------------------------------------- 1 | @import url('https://fonts.googleapis.com/css2?family=Rubik:wght@400;500;700&display=swap'); 2 | 3 | :root { 4 | --PaleViolet: hsl(276, 100%, 81%); 5 | /* (sub-heading at the top of the app UI) */ 6 | --ModerateViolet: hsl(276, 55%, 52%); 7 | /* (chat on the left) */ 8 | --DesaturatedDarkViolet: hsl(271, 15%, 43%); 9 | /* (chat on the right) */ 10 | --GrayishBlue: hsl(206, 6%, 79%); 11 | /* (placeholder text) */ 12 | --VeryDarkDesaturatedViolet: hsl(271, 36%, 24%); 13 | /* (main heading) */ 14 | --DarkGrayishViolet: hsl(270, 7%, 64%); 15 | /* (paragraph) */ 16 | 17 | /* #### Gradients */ 18 | 19 | /* These two colors are the vibrant background colors you see throughout the design and are applied as a linear gradient: */ 20 | 21 | --LightMagenta: #e942ff; 22 | --LightViolet: #8838ff; 23 | 24 | /* ### Secondary */ 25 | 26 | --White: hsl(0, 0%, 100%); 27 | --LightGrayishViolet: hsl(270, 20%, 96%); 28 | /* (app background) */ 29 | --VeryDarkDesaturatedViolet: hsl(271, 36%, 24%); 30 | /* (submit button background) */ 31 | --VeryLightMagenta: hsl(289, 100%, 72%); 32 | /* (radio button outline) */ 33 | } 34 | 35 | * { 36 | box-sizing: border-box; 37 | } 38 | 39 | body { 40 | font-family: "Rubik", sans-serif; 41 | margin: 0; 42 | 43 | } 44 | 45 | main { 46 | display: flex; 47 | min-height: 100vh; 48 | align-items: center; 49 | justify-content: center; 50 | gap: 8rem; 51 | transition: 150ms ease; 52 | } 53 | 54 | .gradient-panel { 55 | height: 39.7rem; 56 | width: 32rem; 57 | background: linear-gradient(19deg, rgba(136, 56, 255, 1) -1%, rgba(233, 66, 255, 1) 151%); 58 | position: absolute; 59 | z-index: -1; 60 | top: 0; 61 | left: -5.9rem; 62 | border-radius: 0 0 17rem 17rem; 63 | } 64 | 65 | .gradient-panel-light { 66 | transform: rotate(180deg); 67 | opacity: .05; 68 | height: 38.3rem; 69 | width: 32rem; 70 | background: var(--DarkGrayishViolet); 71 | position: absolute; 72 | right: -11.3rem; 73 | bottom: 0; 74 | border-radius: 0 0 17rem 17rem; 75 | } 76 | 77 | .panel-wrapper { 78 | z-index: -1; 79 | width: 100%; 80 | height: 100%; 81 | position: fixed; 82 | right: 0; 83 | bottom: 0; 84 | overflow-x: hidden; 85 | } 86 | 87 | .mobile { 88 | width: 15.4rem; 89 | height: auto; 90 | border-radius: 2rem; 91 | border: solid white .7rem; 92 | background: var(--LightGrayishViolet); 93 | 94 | -webkit-box-shadow: 0px 0px 106px -40px rgba(0, 0, 0, 0.75); 95 | -moz-box-shadow: 0px 0px 106px -40px rgba(0, 0, 0, 0.75); 96 | box-shadow: 0px 0px 106px -40px rgba(0, 0, 0, 0.75); 97 | 98 | margin-left: 6.1rem; 99 | min-width: 15.4rem; 100 | } 101 | 102 | .mobile_top-part { 103 | position: relative; 104 | display: flex; 105 | align-items: flex-end; 106 | gap: 4.4rem; 107 | height: 4.2rem; 108 | overflow-y: hidden; 109 | 110 | background: linear-gradient(90deg, rgba(136, 56, 255, 1) 20%, rgba(233, 66, 255, 1) 90%); 111 | border-radius: 20px 20px 5px 5px; 112 | } 113 | 114 | .mobile_top-part_notch { 115 | background: var(--White); 116 | position: absolute; 117 | top: -0.65rem; 118 | position: absolute; 119 | margin-left: auto; 120 | margin-right: auto; 121 | left: 0; 122 | right: 0; 123 | text-align: center; 124 | border-radius: .8rem; 125 | width: 8rem; 126 | height: 1.8rem; 127 | } 128 | 129 | .arrow { 130 | width: .8rem; 131 | margin-top: 6px; 132 | } 133 | 134 | .avatar { 135 | width: 1.5rem; 136 | border-radius: 100%; 137 | border: 1px solid white; 138 | } 139 | 140 | h2 { 141 | color: var(--White); 142 | font-size: .7rem; 143 | font-weight: 400; 144 | margin: 0; 145 | } 146 | 147 | small { 148 | font-size: .5rem; 149 | color: var(--PaleViolet); 150 | margin-top: 3px; 151 | display: block; 152 | } 153 | 154 | .dots { 155 | position: relative; 156 | top: -.8rem; 157 | width: 1rem; 158 | filter: invert(100%); 159 | } 160 | 161 | .mobile_bottom-part { 162 | padding: 0.1rem 0.4rem; 163 | } 164 | 165 | .message-received { 166 | width: 8rem; 167 | color: var(--ModerateViolet); 168 | background: #ede5f4; 169 | border-radius: .6rem .6rem .6rem .2rem; 170 | padding: .5rem; 171 | font-size: .5rem; 172 | line-height: 0.6rem; 173 | } 174 | 175 | .message-sent { 176 | background: white; 177 | border-radius: .6rem .6rem .2rem .6rem; 178 | padding: .5rem; 179 | font-size: .5rem; 180 | line-height: 0.6rem; 181 | 182 | max-width: 8rem; 183 | margin-bottom: 0.1rem; 184 | 185 | -webkit-box-shadow: 6px 6px 46px -15px rgba(0, 0, 0, 0.75); 186 | -moz-box-shadow: 6px 6px 46px -15px rgba(0, 0, 0, 0.75); 187 | box-shadow: 6px 6px 46px -15px rgba(0, 0, 0, 0.75); 188 | } 189 | 190 | .photos { 191 | display: flex; 192 | gap: .5rem; 193 | justify-content: flex-end; 194 | margin-top: 0.9rem; 195 | } 196 | 197 | .photos-sent { 198 | width: 2.5rem; 199 | border-radius: .7rem; 200 | } 201 | 202 | .walk-offer { 203 | background: linear-gradient(271deg, rgba(136, 56, 255, 1) 20%, rgba(233, 66, 255, 1) 90%); 204 | border-radius: .6rem .6rem .6rem .2rem; 205 | padding: .5rem; 206 | font-size: .5rem; 207 | margin-bottom: .5rem; 208 | color: #ffbeff; 209 | 210 | display: flex; 211 | align-items: center; 212 | justify-content: space-between; 213 | max-width: 10rem; 214 | } 215 | 216 | .walk-offer_text { 217 | margin: 0; 218 | } 219 | 220 | .circle { 221 | width: .75rem; 222 | height: .75rem; 223 | border-radius: 100%; 224 | border: solid 1px white; 225 | opacity: .3; 226 | margin-right: .5rem; 227 | } 228 | 229 | span { 230 | color: var(--White); 231 | font-size: .8rem; 232 | font-weight: 700; 233 | margin-right: 0.5rem; 234 | } 235 | 236 | .input { 237 | display: flex; 238 | background: var(--White); 239 | color: var(--GrayishBlue); 240 | font-size: .6rem; 241 | padding: 0.2rem 0.1rem 0.1rem 1.1rem; 242 | border-radius: 1rem; 243 | letter-spacing: -0.3px; 244 | align-items: center; 245 | margin-top: 1.2rem; 246 | justify-content: space-between; 247 | } 248 | 249 | .button { 250 | width: 1.5rem; 251 | height: 1.5rem; 252 | background: url(images/left-arrow.png) no-repeat center var(--VeryDarkDesaturatedViolet); 253 | transform: rotate(180deg); 254 | border-radius: 100%; 255 | background-size: 65%; 256 | margin-top: -0.2rem; 257 | } 258 | 259 | .text { 260 | width: 28rem; 261 | margin-top: -.6rem; 262 | } 263 | 264 | h1 { 265 | font-size: 2.5rem; 266 | color: var(--VeryDarkDesaturatedViolet); 267 | font-weight: 500; 268 | } 269 | 270 | .main-text { 271 | color: var(--DarkGrayishViolet); 272 | line-height: 1.7rem; 273 | } 274 | 275 | .flex { 276 | display: flex; 277 | gap: .4rem; 278 | position: relative; 279 | margin-left: 0.5rem; 280 | top: -0.4rem; 281 | } 282 | 283 | .flex-end { 284 | display: flex; 285 | flex-direction: column; 286 | align-items: flex-end; 287 | } 288 | 289 | .flex-row { 290 | display: flex; 291 | align-items: center; 292 | } 293 | 294 | /* Footer */ 295 | .attribution { 296 | left: 50%; 297 | font-size: 11px; 298 | text-align: center; 299 | } 300 | 301 | .attribution a { 302 | color: hsl(228, 45%, 44%); 303 | } 304 | 305 | 306 | @media (max-width:1000px) { 307 | main { 308 | flex-direction: column; 309 | gap: 4rem; 310 | padding: 2rem 0; 311 | } 312 | 313 | .mobile { 314 | margin: 0; 315 | } 316 | 317 | .mobile_bottom-part { 318 | padding-bottom: 0.5rem; 319 | } 320 | 321 | .text { 322 | text-align: center; 323 | padding: 0 1rem; 324 | } 325 | 326 | .gradient-panel { 327 | left: -20rem; 328 | } 329 | } 330 | 331 | @media (max-width: 500px) { 332 | .text { 333 | width: auto; 334 | } 335 | } 336 | 337 | ::selection { 338 | background: rgba(233, 66, 255, .3); 339 | } --------------------------------------------------------------------------------