└── whatsapp ├── .vscode └── settings.json ├── Screenshot (7).png ├── Screenshot (8).png ├── Screenshot (9).png ├── 8888-removebg-preview.png ├── 9999-removebg-preview.png ├── Black Geometric Depop Profile Picture.png ├── README.md ├── script.js ├── style.css └── index.html /whatsapp/.vscode/settings.json: -------------------------------------------------------------------------------- 1 | { 2 | "liveServer.settings.port": 5501 3 | } -------------------------------------------------------------------------------- /whatsapp/Screenshot (7).png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Vinaykumarmahato/whatsapp-ui-clone-/HEAD/whatsapp/Screenshot (7).png -------------------------------------------------------------------------------- /whatsapp/Screenshot (8).png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Vinaykumarmahato/whatsapp-ui-clone-/HEAD/whatsapp/Screenshot (8).png -------------------------------------------------------------------------------- /whatsapp/Screenshot (9).png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Vinaykumarmahato/whatsapp-ui-clone-/HEAD/whatsapp/Screenshot (9).png -------------------------------------------------------------------------------- /whatsapp/8888-removebg-preview.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Vinaykumarmahato/whatsapp-ui-clone-/HEAD/whatsapp/8888-removebg-preview.png -------------------------------------------------------------------------------- /whatsapp/9999-removebg-preview.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Vinaykumarmahato/whatsapp-ui-clone-/HEAD/whatsapp/9999-removebg-preview.png -------------------------------------------------------------------------------- /whatsapp/Black Geometric Depop Profile Picture.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Vinaykumarmahato/whatsapp-ui-clone-/HEAD/whatsapp/Black Geometric Depop Profile Picture.png -------------------------------------------------------------------------------- /whatsapp/README.md: -------------------------------------------------------------------------------- 1 | # WhatsApp UI Clone 2 | 3 | This project is a clone of the WhatsApp user interface (UI). It replicates the design and layout of the WhatsApp mobile application. 4 | 5 | ## Description 6 | 7 | The WhatsApp UI clone is built using HTML, CSS, and JavaScript. It aims to mimic the look and feel of the official WhatsApp app, providing a similar user experience. The clone includes features such as a chat list, contact profiles, last chat times, and a menu bar with different tabs for chats, status, and calls. 8 | 9 | ## Installation 10 | 11 | To run this project locally, follow these steps: 12 | 13 | 1. Clone the repository: 14 | git clone https://github.com/ADVindiancoder/whatsapp-ui-clone.git 15 | 16 | ## Usage 17 | The WhatsApp UI clone can be used to explore and understand the layout and design of the WhatsApp mobile application. It can also serve as a starting point for building your own messaging application. 18 | 19 | ## Contributing 20 | Contributions are welcome! If you have any suggestions or improvements for the project, please submit a pull request. Make sure to follow the contribution guidelines. 21 | 22 | ## License 23 | This project is licensed under the MIT License. 24 | -------------------------------------------------------------------------------- /whatsapp/script.js: -------------------------------------------------------------------------------- 1 | 2 | let menuBar; 3 | let fixedMenu; 4 | let statusBar; 5 | let chartBar; 6 | let active; 7 | let callBar; 8 | let chatCallStatus; 9 | 10 | window.onload = function () { 11 | 12 | setTimeout(() => { 13 | document.querySelector('body').style.opacity = '1'; 14 | }, 500); 15 | 16 | menuBar = document.querySelector('.menu-bar'); 17 | fixedMenu = menuBar.offsetTop; 18 | statusBar = document.querySelector('.status-container'); 19 | chartBar = document.querySelector('.chat-container'); 20 | active = document.getElementsByClassName('menu-bar__list-item'); 21 | callBar = document.querySelector('.call-container'); 22 | chatCallStatus = document.querySelector('.chat-status-call'); 23 | statusBar.remove(); 24 | callBar.remove(); 25 | changeTab(1); 26 | 27 | 28 | window.onscroll = function () { 29 | 30 | if (window.pageYOffset >= fixedMenu) { 31 | menuBar.classList.add("fixed-menu") 32 | } else { 33 | menuBar.classList.remove("fixed-menu"); 34 | } 35 | } 36 | } 37 | 38 | function changeTab(index) { 39 | 40 | for (var i = 0; i < 3; i++) 41 | active[i].classList.remove('active-select-menu'); 42 | active[index - 1].classList.add('active-select-menu'); 43 | if (index == 1) { 44 | statusBar.remove(); 45 | callBar.remove() 46 | $(chatCallStatus).append(chartBar); 47 | 48 | } 49 | else if (index == 2) { 50 | chartBar.remove(); 51 | callBar.remove(); 52 | $(chatCallStatus).append(statusBar); 53 | 54 | } 55 | 56 | else if (index == 3) { 57 | chartBar.remove(); 58 | statusBar.remove(); 59 | $(chatCallStatus).append(callBar); 60 | } 61 | 62 | } -------------------------------------------------------------------------------- /whatsapp/style.css: -------------------------------------------------------------------------------- 1 | @import url('https://fonts.googleapis.com/css?family=Lato&display=swap'); 2 | 3 | *{ 4 | margin: 0; 5 | padding: 0; 6 | } 7 | 8 | body{ 9 | font-family: 'Roboto'; 10 | opacity: 0; 11 | transition: all .6s; 12 | } 13 | 14 | .phone-status-bar{ 15 | background-color: #128C7E; 16 | padding: 1rem; 17 | display: flex; 18 | justify-content: space-between; 19 | align-items: center; 20 | color: #fff; 21 | font-weight: 200; 22 | position: relative; 23 | } 24 | .phone-status-bar i{ 25 | padding-right: 1rem; 26 | font-size: 1.3rem; 27 | cursor: pointer; 28 | } 29 | .heading-primary{ 30 | font-family: 'Lato', sans-serif; 31 | font-size: 1.5rem; 32 | } 33 | 34 | .menu-bar{ 35 | background-color: #128C7E; 36 | display: flex; 37 | justify-content: space-between; 38 | align-items: center; 39 | color: #fff; 40 | position: relative; 41 | z-index: 6; 42 | box-shadow: 0 2px 6px rgba(0,0,0,.2); 43 | } 44 | 45 | .fixed-menu { 46 | position: fixed; 47 | top: 0; 48 | width: 100%; 49 | } 50 | 51 | .menu-bar i{ 52 | margin: 0 10px; 53 | opacity: .8; 54 | } 55 | 56 | .menu-bar__list{ 57 | width: 100%; 58 | text-transform: uppercase; 59 | font-weight: 800; 60 | list-style: none; 61 | display: flex; 62 | justify-content:space-between; 63 | } 64 | 65 | .menu-bar__list-item{ 66 | opacity: .8; 67 | padding: .8rem 1rem; 68 | border-bottom: 2px solid transparent; 69 | transition: all .2s ease-in-out; 70 | } 71 | 72 | 73 | 74 | .active-select-menu ,.menu-bar__list-item:hover{ 75 | opacity: 1; 76 | cursor: pointer; 77 | border-bottom: 3px solid #fff; 78 | } 79 | 80 | 81 | 82 | .chat-container{ 83 | padding:.6rem 0; 84 | } 85 | 86 | .chat-list{ 87 | display: flex; 88 | align-items: center; 89 | justify-content: space-between; 90 | padding: 6px 0; 91 | font-size: 62.5%; 92 | position: relative; 93 | } 94 | 95 | .chat-list::after{ 96 | content: ""; 97 | position: absolute; 98 | bottom: 0; 99 | right:1rem; 100 | width: 76%; 101 | height: 1px; 102 | background: rgba(0,0,0,.2); 103 | } 104 | .person-chat{ 105 | font-size:20px; 106 | } 107 | .tick{ 108 | color:blue; 109 | font-weight: bold; 110 | } 111 | .tick2{ 112 | color:blue; 113 | margin-left:-10px; 114 | font-weight:bold; 115 | } 116 | @media only screen and (max-width: 360px) { 117 | .chat-list::after{ 118 | width: 64%; 119 | } 120 | 121 | } 122 | 123 | @media only screen and (min-width: 540px) { 124 | .chat-list::after{ 125 | width: 78%; 126 | } 127 | 128 | } 129 | 130 | @media only screen and (min-width: 1100px) { 131 | .chat-list::after{ 132 | width: 92%; 133 | } 134 | 135 | } 136 | 137 | 138 | 139 | 140 | .user-img{ 141 | width: 5rem; 142 | height: 5rem; 143 | border-radius: 50%; 144 | margin: 0 1rem; 145 | 146 | } 147 | 148 | .person-profile{ 149 | display: flex; 150 | align-items: center; 151 | } 152 | 153 | .last-chat-time{ 154 | margin-right:2rem; 155 | } 156 | 157 | 158 | /* Status */ 159 | 160 | .status-container{ 161 | padding: 1rem 0; 162 | } 163 | 164 | 165 | .person-profile-status{ 166 | position: relative; 167 | border-bottom: 1px solid rgba(0,0,0,.2); 168 | padding-bottom: 1rem; 169 | } 170 | 171 | .user-img-status{ 172 | border: 2px solid #25D366; 173 | padding:2px; 174 | } 175 | 176 | .recent-update{ 177 | font-size: 1rem; 178 | background: #ECE5DD; 179 | padding: 8px; 180 | margin-bottom: 1rem; 181 | } 182 | 183 | .add-icon{ 184 | position: absolute; 185 | left: 4rem; 186 | bottom: 20px; 187 | color: #fff; 188 | background:#25D366; 189 | padding: 6px 7.5px; 190 | border-radius: 50%; 191 | } 192 | 193 | .call-icon{ 194 | font-size: 1.5rem !important; 195 | color: #128C7E; 196 | } 197 | 198 | 199 | .status-list-fixed,.contact-list,.call-list{ 200 | width: 80px; 201 | height: 80px; 202 | position: fixed; 203 | bottom: 4rem; 204 | right: 5px; 205 | z-index: 1; 206 | } 207 | 208 | .status-list-fixed i,.contact-list i,.call-list i{ 209 | color: dimgrey; 210 | background: #ECE5DD; 211 | padding: 1rem 1.1rem; 212 | border-radius: 50%; 213 | margin-bottom: 5px; 214 | } 215 | 216 | .contact-list,.call-list{ 217 | bottom: 5px; 218 | } 219 | 220 | 221 | 222 | .call-list i{ 223 | background-color: #25D366; 224 | color: #fff; 225 | padding: 1rem 1.2rem; 226 | } 227 | 228 | .contact-list i{ 229 | background-color: #25D366; 230 | color: #fff; 231 | padding: 1rem; 232 | } 233 | 234 | .status-list-fixed i:last-child{ 235 | background-color: #25D366; 236 | color: #fff; 237 | } -------------------------------------------------------------------------------- /whatsapp/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 |
5 | 6 | 7 |
48 | How are you brother
53 |12:00 pm
56 |
64 | Answer my phone! I need your help...
69 |2:30 am
72 |
78 | please create some new video sir
84 |1:00 am
87 |Bhai, Mars kab chale...
98 |2:00 am
101 |
107 | Yalgaar Ho..✓✓
113 | 114 |12:00 pm
117 |
124 | Mere 20 lakh carore kab milenge...✓✓
130 |12:00 pm
133 |Nayi company banai toh main baat nahin karta..
144 |12:00 pm
147 |Ek Baar bahar to aake dekh...
158 |12:00 pm
161 |Bhidu, China Pr Hamla Kab Karna Hai...
172 |12:00 pm
175 |
190 | Tap to see add status upadte
193 |42 minutes ago
207 |Today, 1:22am
227 |230 |
236 | Today, 2 :22am
241 |244 |