From 511bc98a57c56e0ffc402cf70325a2c28bdcd960 Mon Sep 17 00:00:00 2001 From: Shizbriz <56767854+Shizbriz@users.noreply.github.com> Date: Tue, 1 Sep 2020 01:02:45 +0100 Subject: [PATCH 01/11] done unless you find bugs --- css/style.css | 81 ++++++++++++++++++++++++++++++++---------------- index.html | 85 ++++++++++++++++++++++++++++++--------------------- right.svg | 8 ++--- 3 files changed, 108 insertions(+), 66 deletions(-) diff --git a/css/style.css b/css/style.css index 92fa5e3..44f6a3b 100644 --- a/css/style.css +++ b/css/style.css @@ -6,9 +6,6 @@ .begin{ padding-top: 50px; } -.left{ - align-content: left; -} .trip{ color: white; @@ -16,9 +13,12 @@ .guard{ color: #74e6ef; } -.links{ - position: absolute; - left: 10em; +.dropdown{ + display: none; +} +.menu{ + display: inline-flex; + justify-content: space-between; } .links a{ padding-left: 30px; @@ -125,6 +125,7 @@ margin-right: 100px; margin: 0; color: #232d67; font-size: smaller; + font-weight: 500; } .click h5{ color: #232d67; @@ -137,10 +138,20 @@ margin-right: 100px; margin-bottom: 20px; border-radius: 8px; } - +.click:hover{ + background-color: #232d67; +} +.click:hover > .click-message h5, .click:hover > .click-message p{ + color: white; +} .click-icon{ margin-right: 10px; } +.why-pic{ + background-image: url(../right.svg); + width: 600px; + background-repeat: no-repeat; +} .talks{ width: 500px; margin-top: 50px; @@ -186,21 +197,24 @@ margin-top: 50px; justify-content: center; margin-top: 40px; } +.right{ + background-image: url(../3072835-removebg-preview.png); + background-repeat: no-repeat; + background-size: 300px 520px; + background-position-x: center; + height: 550px; + width: 550px; +} .first{ box-shadow: grey -1px 1px 5px; background-color: rgb(245, 245, 245, 0.7); padding: 10px; - position: absolute; - right: 300px; - top: 1720px; + margin-top: 60px; border-radius: 10px; height: 100px; width: 330px; } -.phone{ - margin-left: 150px; -} .out{ display: flex; justify-content: space-between; @@ -213,21 +227,17 @@ margin-top: 50px; } .second{ background-color: white; - border-radius: 40px; - box-shadow: grey 1px 1px 3px; - position: absolute; - right: 226px; - top: 1840px; - width: 225px; - height: 320px; - + border-top-right-radius: 40px; + border-top-left-radius: 40px; + box-shadow: grey 1px -1px 3px; + margin-left:158px; + width: 250px; + height: 170px; } - .re{ display: flex; justify-content: space-between; background-color: rgb(128, 128, 128, 0.1); - margin-top: 10px; padding: 5px 0 5px 0; } @@ -240,10 +250,8 @@ margin-top: 50px; padding: 10px; border-radius: 10px; height: 100px; - position: absolute; - right: 50px; - top: 2030px; width: 330px; + margin: 20px 0 0 200px; } .policy{ display: flex; @@ -266,7 +274,7 @@ box-shadow: grey 1px -1px 5px; margin-top: 0; } .how .card-body{ - max-width: 400px; + width: 400px; } .top .card-body{ max-width: 250px; @@ -336,3 +344,22 @@ justify-content: space-between; .attribute{ margin-left: 200px; } +@media screen and (max-width: 800px){ + .menu{display: none;} + .dropdown{display: block;} + .icon, .icon:hover{color: white;} + .dropdown-menu a{ color: #232d67;} + .dropdown-menu a:hover{background-color: rgb(128, 128, 128, 0.5);} + .dropdown-menu{left: -80px;} + .stuff{display: grid;} + .stuff1{width: auto;} + .why{display: grid;} + .clicks{margin: auto;} + .compare{display: grid;} + .left{margin-bottom: 100px;} + .policy{display: grid; justify-items: center;} + .card-body{margin-bottom: 50px;} + .news{margin-top: 50px;} + .foot-work{display: grid;} + .foot-pic{width: auto; background-size: auto;} +} \ No newline at end of file diff --git a/index.html b/index.html index 3a02a27..5ad9cfb 100644 --- a/index.html +++ b/index.html @@ -13,27 +13,44 @@
Whether you are planning on going solo or with a a group of friends or family, - travelinsurance.com can help you find an appropriate domestic or international travel insurance - policy that meets your needs. You can compare all of your trip insurance options, procure - coverage online, and travel worryfree.
- +Whether you are planning on going solo or with a a group of friends or family, + travelinsurance.com can help you find an appropriate domestic or international travel + insurance + policy that meets your needs. You can compare all of your trip insurance options, procure + coverage online, and travel worryfree.
+ +