Bootstrap 4 ile web sayfası tasarım örneğine ait html, css ve bootstrap css kodları.
Örnek üzerinde modal, menü, form kullanımını göreceksiniz.
HTML + CSS Kodları:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 | <!doctype html> <html lang="tr"> <head> <link href="https://fonts.googleapis.com/css?family=Sacramento|Sigmar+One|Ubuntu|ZCOOL+KuaiLe" rel="stylesheet"> <!-- Required meta tags --> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> <!-- Bootstrap CSS --> <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO" crossorigin="anonymous"> <link href="stil.css" rel="stylesheet" type="text/css"> <title>tasarimkodlama.com</title> </head> <body> <div class="baslik" style="background-color: black"> <nav class="navbar navbar-expand-lg navbar-dark bg-custom"> <a class="navbar-brand" href="#">Bootstrap Örnek</a> <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation"> <span class="navbar-toggler-icon"></span> </button> <div class="collapse navbar-collapse" id="navbarSupportedContent"> <ul class="navbar-nav mx-auto"> <li class="nav-item active"> <a class="nav-link" href="#anasayfa">Anasayfa <span class="sr-only">(current)</span></a> </li> <li class="nav-item"> <a class="nav-link" href="#hakkimizda">Hakkımızda</a> </li> <li class="nav-item"> <a class="nav-link" href="#referanslar">Referanslar</a> </li> <li class="nav-item"> <a class="nav-link" href="#iletisim">İletişim</a> </li> </ul> <form class="form-inline my-2 my-lg-0"> <!-- Button trigger modal --> <button type="button" class="btn btn-dark" data-toggle="modal" data-target="#exampleModal"> Üye Girişi </button> </form> </div> </nav> <div class="container-fluid" id="anasayfa"> <div class="row justify-content-center mt-5"> <h1 class="display-1 text-light text-center pt-3" style="font-family: 'Sacramento', cursive !important;">www.tasarimkodlama.com</h1> </div> </div> </div> <div class="container"> <div class="row" style="margin-top: 30px;"> <div class="col-lg-4 col-md-12 col-sm-12"> <div class="row"> <div class="col-lg-12 col-md-4 col-sm-12"> <img src="images/ic1.jpeg" class="img-fluid rounded"> </div> <div class="col-lg-12 col-md-8 col-sm-12"> <h3>Lorem</h3> <p class="text-justify">Lorem ipsum dolor sit amet, consectetur adipisicing elit. Vel voluptate accusantium non similique harum, illum minus incidunt distinctio possimus odio hic quam totam ut officia sunt assumenda ad quae sit!</p> </div> </div> </div> <div class="col-lg-4 col-md-12 col-sm-12"> <div class="row"> <div class="col-lg-12 col-md-4 col-sm-12 order-lg-1 order-md-2"> <img src="images/ic2.jpeg" class="img-fluid rounded"> </div> <div class="col-lg-12 col-md-8 col-sm-12 order-lg-2 order-md-1"> <h3>Lorem</h3> <p class="text-justify">Lorem ipsum dolor sit amet, consectetur adipisicing elit. Vel voluptate accusantium non similique harum, illum minus incidunt distinctio possimus odio hic quam totam ut officia sunt assumenda ad quae sit!</p> </div> </div> </div> <div class="col-lg-4 col-md-12 col-sm-12"> <div class="row"> <div class="col-lg-12 col-md-4 col-sm-12"> <img src="images/ic3.jpg" class="img-fluid rounded"> </div> <div class="col-lg-12 col-md-8 col-sm-12"> <h3>Lorem</h3> <p class="text-justify">Lorem ipsum dolor sit amet, consectetur adipisicing elit. Vel voluptate accusantium non similique harum, illum minus incidunt distinctio possimus odio hic quam totam ut officia sunt assumenda ad quae sit!</p> </div> </div> </div> </div> </div> <div class="row bolum1 align-items-center" id="hakkimizda"> <div class="col"> <h1 class="display-1 text-center text-light" style="font-family: 'Sacramento', cursive !important;">Hakkımızda</h1> </div> </div> <div class="container"> <div class="row"> <div class="col"> <h2>Lorem ipsum dolor</h2> <img src="images/hakkimizda.jpg" class="img-fluid rounded float-left m-3 d-lg-inline d-md-none" style="width: 300px"> <p class="text-justify">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed placerat eu eros eget hendrerit. Quisque ornare eros quis ligula vestibulum faucibus. Etiam id rutrum nisl. Nunc rutrum eros tincidunt luctus pulvinar. Proin imperdiet risus at feugiat sagittis. Aenean quis justo nec est egestas malesuada. Vestibulum non mi turpis. Curabitur eget ex rutrum, dignissim eros posuere, pellentesque urna. Nunc felis turpis, suscipit eu tempus lacinia, congue non turpis. Mauris elementum maximus sapien, viverra molestie odio elementum convallis. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Quisque posuere enim ut efficitur fermentum. In hac habitasse platea dictumst. Donec consequat euismod quam, sit amet luctus nibh commodo a. Pellentesque tortor dolor, gravida a sapien vel, maximus vestibulum urna. Nunc ultrices, nulla vel ullamcorper faucibus, est ante bibendum dolor, vel gravida lacus nulla non diam. Quisque lacinia, ipsum a viverra elementum, arcu leo rhoncus tortor, vel iaculis massa tellus ut orci. Interdum et malesuada fames ac ante ipsum primis in faucibus. Maecenas et turpis quis enim elementum malesuada non non ex. Ut quis maximus dolor. Vivamus vitae pulvinar libero. Etiam purus felis, dignissim eu leo finibus, rhoncus rhoncus leo. In dapibus arcu eu ex egestas, ullamcorper dignissim nunc feugiat. Ut dui tellus, varius nec accumsan et, fermentum nec quam. Integer dui risus, posuere vitae aliquet quis, viverra nec orci. Integer placerat suscipit bibendum. Nunc dignissim accumsan nunc, in vulputate lectus. Vestibulum non iaculis ante. Vivamus elementum viverra nisl a sollicitudin. Phasellus id odio vel turpis volutpat tincidunt et ut nisi. Curabitur lacinia ante vitae lectus gravida tempor. Sed et augue eu felis vulputate fermentum vitae at nibh. Integer mattis elit nec varius sollicitudin. Suspendisse varius imperdiet mauris, sed rutrum nulla pretium a. Fusce egestas mattis odio, non dapibus mi dignissim ac. Phasellus ante tellus, iaculis a sapien vitae, imperdiet dapibus justo. Donec fermentum ac orci nec mattis. Aliquam erat volutpat. Quisque quis lacus faucibus justo tempus placerat. Aenean pulvinar porttitor hendrerit. Mauris ac faucibus sem. Integer faucibus, diam et luctus faucibus, purus ipsum lacinia lorem, nec pharetra purus nisi maximus lorem. Fusce euismod malesuada elit ac vulputate. Etiam auctor, enim id semper rhoncus, mi tortor placerat nisi, quis consequat dolor leo sed ligula. Proin non facilisis elit. Praesent non metus a ante ornare elementum. Morbi dictum elit non vestibulum gravida. Integer blandit ac tortor sed faucibus. Integer aliquet porta consectetur. Morbi eu velit accumsan dui fringilla lobortis sit amet in turpis. Nullam tincidunt sed nunc quis pulvinar. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Curabitur tincidunt elementum nibh. Quisque at rutrum risus. Donec non massa mollis, volutpat tellus at, iaculis sem. Praesent vel sapien a augue ornare convallis. Suspendisse augue nisi, auctor eu rutrum eget, lobortis at nisl. Cras eget posuere quam, eget commodo augue.</p> </div> </div> </div> <div class="row bolum2 align-items-center" id="referanslar"> <div class="col"> <h1 class="display-1 text-center text-dark" style="font-family: 'Sacramento', cursive !important;">Referanslar</h1> </div> </div> <div class="container"> <div class="row"> <div class="col"> <div class="accordion" id="accordionExample"> <div class="card"> <div class="card-header" id="headingOne"> <h5 class="mb-0"> <button class="btn btn-link" type="button" data-toggle="collapse" data-target="#collapseOne" aria-expanded="true" aria-controls="collapseOne"> WEB SİTELER </button> </h5> </div> <div id="collapseOne" class="collapse show" aria-labelledby="headingOne" data-parent="#accordionExample"> <div class="card-body"> <p> Anim pariatur cliche reprehenderit, enim eiusmod high life accusamus terry richardson ad squid. 3 wolf moon officia aute, non cupidatat skateboard dolor brunch. Food truck quinoa nesciunt laborum eiusmod. Brunch 3 wolf moon tempor, sunt aliqua put a bird on it squid single-origin coffee nulla assumenda shoreditch et. Nihil anim keffiyeh helvetica, craft beer labore wes anderson cred nesciunt sapiente ea proident. Ad vegan excepteur butcher vice lomo. Leggings occaecat craft beer farm-to-table, raw denim aesthetic synth nesciunt you probably haven't heard of them accusamus labore sustainable VHS.</p> <img src="images/logo1.jpg" class="img-fluid" style="width: 300px;"> <img src="images/logo2.jpg" class="img-fluid" style="width: 300px;"> <img src="images/logo3.jpg" class="img-fluid" style="width: 300px;"> </div> </div> </div> <div class="card"> <div class="card-header" id="headingTwo"> <h5 class="mb-0"> <button class="btn btn-link collapsed" type="button" data-toggle="collapse" data-target="#collapseTwo" aria-expanded="false" aria-controls="collapseTwo"> GRAFİK TASARIMLAR </button> </h5> </div> <div id="collapseTwo" class="collapse" aria-labelledby="headingTwo" data-parent="#accordionExample"> <div class="card-body"> <p> Anim pariatur cliche reprehenderit, enim eiusmod high life accusamus terry richardson ad squid. 3 wolf moon officia aute, non cupidatat skateboard dolor brunch. Food truck quinoa nesciunt laborum eiusmod. Brunch 3 wolf moon tempor, sunt aliqua put a bird on it squid single-origin coffee nulla assumenda shoreditch et. Nihil anim keffiyeh helvetica, craft beer labore wes anderson cred nesciunt sapiente ea proident. Ad vegan excepteur butcher vice lomo. Leggings occaecat craft beer farm-to-table, raw denim aesthetic synth nesciunt you probably haven't heard of them accusamus labore sustainable VHS.</p> <img src="images/logo3.jpg" class="img-fluid" style="width: 300px;"> <img src="images/logo2.jpg" class="img-fluid" style="width: 300px;"> <img src="images/logo4.jpg" class="img-fluid" style="width: 300px;"> </div> </div> </div> </div> </div> </div> </div> <div class="row bolum3 align-items-center" id="iletisim"> <div class="col"> <h1 class="display-1 text-center text-dark" style="font-family: 'Sacramento', cursive !important;">İletişim</h1> </div> </div> <div class="container"> <div class="row"> <div class="col"> <iframe src="https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d3009.717970869983!2d28.823355114843213!3d41.031425779298395!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x14caa4e4a654838f%3A0xebe75d25b108b26a!2sHikmet+Nazif+Kur%C5%9Funo%C4%9Flu+Mesleki+ve+Teknik+Anadolu+Lisesi!5e0!3m2!1str!2str!4v1545837587316" width="100%" height="450" frameborder="0" style="border:0" allowfullscreen></iframe> </div> </div> <div class="row"> <div class="col"> <form class="needs-validation" novalidate> <div class="form-group"> <div class="row"> <label for="validationCustom01">İsim</label> <input type="text" placeholder="İsim" class="form-control" id="validationCustom01" required> <div class="invalid-feedback"> Lütfen Doldurunuz! </div> </div> <div class="row"> <label for="validationCustom02">E Posta</label> <input type="email" placeholder="E posta" class="form-control" id="validationCustom02" required> <div class="invalid-feedback"> Lütfen Doldurunuz! </div> </div> <div class="row"> <label for="validationCustom03">Mesajınız</label> <textarea class="form-control" id="validationCustom03" rows="6" required></textarea> <div class="invalid-feedback"> Lütfen Doldurunuz! </div> </div> </div> <div class="row"> <button class="btn btn-dark" type="submit">GÖNDER</button> </div> </form> <script> // Example starter JavaScript for disabling form submissions if there are invalid fields (function() { 'use strict'; window.addEventListener('load', function() { // Fetch all the forms we want to apply custom Bootstrap validation styles to var forms = document.getElementsByClassName('needs-validation'); // Loop over them and prevent submission var validation = Array.prototype.filter.call(forms, function(form) { form.addEventListener('submit', function(event) { if (form.checkValidity() === false) { event.preventDefault(); event.stopPropagation(); } form.classList.add('was-validated'); }, false); }); }, false); })(); </script> </div> </div> </div> <div class="row bolum4 align-items-end"> <div class="col"> <small class="text-center text-dark" style="font-family: 'Sacramento', cursive !important;">Web Tasarım ve Programlama Uygulama Sınavı 2018</small> </div> </div> </div> <div class="modal fade" id="exampleModal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true"> <div class="modal-dialog" role="document"> <div class="modal-content"> <div class="modal-header"> <h5 class="modal-title" id="exampleModalLabel">Üye Girişi</h5> <button type="button" class="close" data-dismiss="modal" aria-label="Close"> <span aria-hidden="true">×</span> </button> </div> <div class="modal-body"> <form class="needs-validation"> <label for="exampleInputEmail1"></label> <div class="row m-3"> <input type="email" class="form-control w-100" id="exampleInputEmail1" aria-describedby="emailHelp" placeholder="E Posta" required> <div class="invalid-feedback"> Lütfen Geçerli Bir E-Posta Giriniz! </div> </div> <div class="row m-3"> <label for="exampleInputPassword1"></label> <input type="password" class="form-control w-100" id="exampleInputPassword1" placeholder="Şifre" required> <div class="invalid-feedback"> Lütfen Şifrenizi Giriniz! </div> </div> <div class="row m-3"> <input type="checkbox" class="form-check-input " id="exampleCheck1" required> <label class="form-check-label" for="exampleCheck1">Üyelik Şartlarını Kabul Ediyorum</label> </div> <button type="submit" class="btn btn-primary ml-3">Giriş</button> </form> </div> </div> </div> </div> <!-- Optional JavaScript --> <!-- jQuery first, then Popper.js, then Bootstrap JS --> <script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.3/umd/popper.min.js" integrity="sha384-ZMP7rVo3mIykV+2+9J3UJ46jBk0WLaUAdn689aCwoqbBJiSnjAK/l8WvCWPIPm49" crossorigin="anonymous"></script> <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/js/bootstrap.min.js" integrity="sha384-ChfqqxuZUCnJSK3+MXmPNIyE6ZbWh2IMqE241rYiqJxyMiZ6OW/JmZQ5stwEULTy" crossorigin="anonymous"></script> </body> </html> |
Yorum Yap