الصفحة الرئيسية
تحميل الكود
تغيير الألوان
تغيير العرض
تغيير حجم العرض
تشغيل الكود
<!DOCTYPE html> <html> <head> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.2.0/css/all.min.css" integrity="sha512-xh6O/CkQoPOWDdYTDqeRdPCVd1SpvCA9XXcUnZS2FmJNp1coAFzvtCN9BmamE+4aHK8yyUHUSCcJHgXloTyT2A==" crossorigin="anonymous" referrerpolicy="no-referrer" /> <style> :root { --white: #FFF; --gray-1: #f1f1f1; --gray-2: rgba(0, 0, 0, 0.175); --gray-3: gray; --gray-4: #dee2e6; --blue-1: #a9d1ff; --blue-2: #41a6ff; --blue-3: #0d6efd; --blue-4: #0b5ed7; --black: #000; } * { margin: 0; padding: 0; box-sizing: border-box; } body { font-size: 1rem; font-family: Poppins, Helvetica, Arial, sans-serif; } .container { max-width: 960px; margin: auto; padding: 0 10px; } header { padding: 10px 0; border-bottom: 1px solid var(--gray-2); } nav { display: flex; justify-content: space-between; } nav div { display: flex; justify-content: flex-end; } nav div a { padding: 15px 0; margin-right: 2rem; text-decoration: none; color: var(--black); transition: all .3s; } nav div a:hover { color: var(--gray-3); } nav div a.brand { font-weight: bold; margin-left: 2rem; } main { max-width: 1000px; margin: 0 auto; } main section { margin: 40px 0 } /* pricing section */ .pricing p { max-width: 800px; text-align: center; margin: 0 auto; font-size: 1.15rem !important; line-height: 2.2rem; color: var(--gray-3); } .pricing h1 { text-align: center; margin-bottom: 15px; } .pricing .grid { display: grid; gap: 15px; grid-template-columns: 1fr 1fr 1fr; margin: 30px auto; } .pricing .card { border: 1px solid var(--gray-2); border-radius: 8px; text-align: center; box-shadow: 2px 2px 5px var(--gray-1); transition: all .3s; overflow: hidden; } .pricing .card:hover { transform: translateY(-5px); } .pricing .card.recommanded { border-color: var(--blue-3);; } .pricing .card-header { border-bottom: 1px solid var(--gray-2); background-color: var(--gray-1); } .pricing .card.recommanded .card-header { background-color: var(--blue-2);; } .pricing .card-header h2 { padding: 20px 10px; font-size: 20px; } .pricing .card.recommanded .card-header h2 { color: var(--white); } .pricing .card-body { padding: 10px; } .pricing .card.recommanded .card-body { background-color: var(--blue-1); } .pricing .card-body h3 { margin: 15px 0; font-size: 28px; } .pricing .card-body h3 small { color: var(--gray-3); font-weight: normal; } .pricing .card-body ul { list-style-type: none; } .pricing .card-body ul li { line-height: 30px; } .pricing .card-body a { display: block; text-decoration: none; color: var(--white); background-color: var(--blue-3);; font-size: 1.15rem; padding: 15px; border-radius: 5px; margin-top: 15px; transition: all .3s; } .pricing .card-body a:hover { background-color: var(--blue-4); } /* plans-include section */ .plans-include { background-color: var(--gray-1); padding: 30px 20px 10px 20px; border-radius: 5px; } .plans-include h2 { text-align: center; margin-bottom: 30px; } .plans-include .grid { display: grid; row-gap: 10px; column-gap: 40px; grid-template-areas: 'item-1-title item-2-title item-3-title' 'item-1-desc item-2-desc item-3-desc'; } .plans-include .item-1-title { grid-area: item-1-title; } .plans-include .item-2-title { grid-area: item-2-title; } .plans-include .item-3-title { grid-area: item-3-title; } .plans-include .item-1-desc { grid-area: item-1-desc; } .plans-include .item-2-desc { grid-area: item-2-desc; } .plans-include .item-3-desc { grid-area: item-3-desc; } .plans-include .grid h3 { font-size: 18px; line-height: 30px; } .plans-include p { font-size: 16px; line-height: 30px; text-align: justify; margin-bottom: 20px; } /* compare plans section */ .compare-plans .responsive-table { width: 100%; overflow-x: auto; } .compare-plans .responsive-table table { width: 100%; border-collapse: collapse; } .compare-plans .responsive-table table th, .compare-plans .responsive-table table td { border-bottom: 1px solid var(--gray-4); text-align: center; padding: 10px; line-height: 30px; } .compare-plans .responsive-table table th:nth-child(1) { text-align: left; } /* footer */ footer { border-top: 1px solid var(--gray-2); margin-top: 50px; padding: 30px 10px; } footer .grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 40px; } footer h3 { margin-bottom: 10px; font-size: 1rem; } footer ul { list-style-type: none; } footer a { display: inline-block; padding: 5px 0; font-size: 0.785rem; line-height: 1.5rem; text-decoration: none; color: var(--gray-3); transition: all .3s; } footer a:hover { color: var(--black); } footer .copyright { margin-top: 34px; text-align: center; font-size: 0.785rem; padding-top: 20px; border-top: 1px solid var(--gray-2); } /* all media queries */ @media(max-width: 960px) { .pricing .grid { grid-template-columns: 1fr 1fr; } .plans-include .grid { grid-template-areas: 'item-1-title item-2-title' 'item-1-desc item-2-desc' 'item-3-title item-3-title' 'item-3-desc item-3-desc'; } } @media(max-width: 640px) { .pricing .grid { grid-template-columns: 1fr; } nav { display: flex; flex-direction: column; } nav div { justify-content: center; } nav div a { margin: 0 0.75rem; } footer .grid { grid-template-columns: 1fr; } } </style> </head> <body> <div class="container"> <header> <nav> <div> <a class="brand" href="#">WebsiteName</a> </div> <div> <a href="#">Features</a> <a href="#">Pricing</a> <a href="#">Plans</a> <a href="#">Support</a> </div> </nav> </header> <main> <section class="pricing"> <h1>Pricing</h1> <p>If you already know how to manage your server you can start with the free plan. However, the pro plan is the recommanded option because its include the email support option.</p> <div class="grid"> <div class="card"> <div class="card-header"> <h2>Free</h2> </div> <div class="card-body"> <h3>$0<small>/mo</small></h3> <ul> <li>1 user included</li> <li>2 GB of storage</li> <li>Help center access</li> <li><s>Email support</s></li> </ul> <a href="#">Get started</a> </div> </div> <div class="card recommanded"> <div class="card-header"> <h2>Pro</h2> </div> <div class="card-body"> <h3>$15<small>/mo</small></h3> <ul> <li>10 users included</li> <li>20 GB of storage</li> <li>Help center access</li> <li>Email support</li> </ul> <a href="#">Get started</a> </div> </div> <div class="card"> <div class="card-header"> <h2>Entreprise</h2> </div> <div class="card-body"> <h3>$29<small>/mo</small></h3> <ul> <li>30 users included</li> <li>50 GB of storage</li> <li>Help center access</li> <li>Email support</li> </ul> <a href="#">Get started</a> </div> </div> </div> </section> <section class="plans-include"> <h2>All Plans Include</h2> <div class="grid"> <h3 class="item-1-title">24/7 security monitoring & DDoS</h3> <p class="item-1-desc">We aim to stay on high alert day and night with security monitoring and distributed denial of service protection.</p> <h3 class="item-2-title">Free domain & easy set up</h3> <p class="item-2-desc">Enjoy a free Harmash domain for a year with your web hosting plan. Register it with one click. It's that easy.</p> <h3 class="item-3-title">Free SSL certificate</h3> <p class="item-3-desc">Increase visitor trust by protecting personal and financial info and other sensitive data with encrypted connections.</p> </div> </section> <section class="compare-plans"> <h2>Compare Plans</h2> <div class="responsive-table"> <table> <tr> <th style="width: 40%;"></th> <th style="width: 20%;">Free</th> <th style="width: 20%;">Pro</th> <th style="width: 20%;">Entreprise</th> </tr> <tr> <th>Unlimited Bandwidth</th> <td><i class="fa-solid fa-check"></i></td> <td><i class="fa-solid fa-check"></i></td> <td><i class="fa-solid fa-check"></i></td> </tr> <tr> <th>Automatic Backup</th> <td><i class="fa-solid fa-check"></i></td> <td><i class="fa-solid fa-check"></i></td> <td><i class="fa-solid fa-check"></i></td> </tr> <tr> <th>Free SSL</th> <td><i class="fa-solid fa-check"></i></td> <td><i class="fa-solid fa-check"></i></td> <td><i class="fa-solid fa-check"></i></td> </tr> <tr> <th>Email Support</th> <td></td> <td><i class="fa-solid fa-check"></i></td> <td><i class="fa-solid fa-check"></i></td> </tr> <tr> <th>Unlimited Databases</th> <td></td> <td></td> <td><i class="fa-solid fa-check"></i></td> </tr> </table> </div> </section> </main> <footer> <div class="grid"> <div> <h3>Support</h3> <ul> <li><a href="#">Product Support</a></li> <li><a href="#">Community</a></li> <li><a href="#">Live Chat</a></li> <li><a href="#">Report Abuse</a></li> </ul> </div> <div> <h3>Services</h3> <ul> <li><a href="#">Buy a Domain</a></li> <li><a href="#">Shared Hosting</a></li> <li><a href="#">VPS Hosting</a></li> <li><a href="#">Dedicated Servers</a></li> <li><a href="#">Cloud Hosting</a></li> </ul> </div> <div> <h3>About</h3> <ul> <li><a href="#">About us</a></li> <li><a href="#">Contact Us</a></li> <li><a href="#">Locations</a></li> <li><a href="#">Privacy</a></li> <li><a href="#">Terms</a></li> </ul> </div> </div> <div class="copyright"> Copyright © 2014 - 2023 WebsiteName. All Rights Reserved. </div> </footer> </div> </body> </html>