Introducing Karma
+Bring WiFi with you, everywhere you go.
+ +Everyone needs a little Karma.
+Internet for all devices
+Boost your productivity
+Pay as You Go
+diff --git a/css/normalize.css b/css/normalize.css index 957605911..b721f7a9f 100755 --- a/css/normalize.css +++ b/css/normalize.css @@ -15,7 +15,7 @@ * user zoom. */ -html { + html { font-family: sans-serif; /* 1 */ -ms-text-size-adjust: 100%; /* 2 */ -webkit-text-size-adjust: 100%; /* 2 */ diff --git a/css/style.css b/css/style.css index 5cb025cef..81efe10c8 100755 --- a/css/style.css +++ b/css/style.css @@ -1,9 +1,21 @@ /* We are using the 'Roboto' font from Google. This has already been added to your HTML header */ + * { + box-sizing: border-box; + padding: 0; + margin: 0; +} + body { - font-family: 'Roboto', sans-serif; + font-family: "Roboto", sans-serif; -webkit-font-smoothing: antialiased; + font-size: 16px; + font-weight: normal; + line-height: 1.5; + margin: 0 auto; + max-width: 800px; + padding: 2em 2em 4em; } /** @@ -16,4 +28,193 @@ body { * - When using Flexbox, remember the items you want to move around need to be inside a parent container set to 'display: flex' */ +nav { + background: white; + padding 5px 20px; +} + +ul { + list-style-type: none; +} + +a { + color: black; + text-decoration: none; +} + +a:hover { + text-decoration: underline; +} + +.menu li { + font-size: 16px; + padding: 15px 5px; +} + +.menu li a { + display: block; +} + +.menu { + display: flex; + flex-wrap: wrap; + justify-content: space-between; + align-items: center; +} + +.item { + width: 100%; + text-align: center; + order: 2; +} + +.item.active { + display: block; +} + +.toggle { + cursor: pointer; + order: 1; +} + +.bars { + background: grey; + display: inline-block; + height: 2px; + position: relative; + width: 18px; +} + +.bars::before, .bars::after { + background: grey; + content: ""; + display: inline-block; + height: 2px; + position: absolute; + width: 18px; +} + +.bars::before { + top: 5px; +} + +.bars::after { + top: -5px; +} + +.parallax { + display: flex; + flex-flow: column wrap; + align-items: center; + padding-top: 200px; + padding-bottom: 200px; + background-repeat: no-repeat; + background: url(C:/Users/aciun/Documents/GitHub/HTML-CSS-Coursework-Week2/img/first-background.jpg); + background-position: center; + width: 100%; +} + +.parallax h1, .parallax h3, .parallax button { + text-align: center; + + color: white; +} + +button { + background-color: orange; + padding: 10px; + border: none; + border-radius: 5%; +} + +button:hover { + background-color: white; + color: orangered; +} + +h2, p { + text-align: center; +} + +.features { + display: flex; + flex-direction: column; +} + +.features-1 { + display: flex; + flex-direction: column; + align-items: center; + justify-content: center; +} + +.features-1 img { + display: block; + margin-left: auto; + margin-right: auto; + width: 40%; + } + + +.social-media, .social-media p { + display: flex; + flex-flow: column wrap; + align-items: center; +} + +.social img { + width: 20px; + padding: 10px; + border: 2px solid lightgrey; + border-radius: 50%; +} + +footer { + display: flex; + justify-content: center; +} + +/* Desktop view */ + +@media all and (min-width: 768px) { +/* nav bar desktop */ + .item { + display: block; + width: auto; + } + .toggle { + display: none; + } + .logo { + order: 0; + } + .item { + order: 1; + } + .menu li { + padding: 15px 10px; + } + .menu li.button { + padding-right: 0; + } +/* three features desktop */ + .features { + display: flex; + flex-direction: column; + align-items: center; + justify-content: center; + } + + .features-1 { + display: grid; + grid-template-columns: auto auto auto; + gap: 60px; + } + .features-1 img { + display: block; + margin-left: auto; + margin-right: auto; + width: 40%; + } + } diff --git a/index.html b/index.html index 3e742ef04..de534d49b 100755 --- a/index.html +++ b/index.html @@ -8,12 +8,52 @@ +
- - - - - + +Internet for all devices
+Boost your productivity
+Pay as You Go
+