From f062455a3f8aa0d1fc6f13a13117ff0ff85bc75f Mon Sep 17 00:00:00 2001 From: nfarah22 <61600465+nfarah22@users.noreply.github.com> Date: Tue, 18 Apr 2023 15:16:38 +0100 Subject: [PATCH] week 1-2 done --- css/normalize.css | 436 ---------------------------------------------- css/style.css | 19 -- index.html | 121 +++++++++++-- store.css | 305 ++++++++++++++++++++++++++++++++ store.html | 115 ++++++++++++ style.css | 161 +++++++++++++++++ 6 files changed, 688 insertions(+), 469 deletions(-) delete mode 100755 css/normalize.css delete mode 100755 css/style.css create mode 100644 store.css create mode 100644 store.html create mode 100644 style.css diff --git a/css/normalize.css b/css/normalize.css deleted file mode 100755 index 957605911..000000000 --- a/css/normalize.css +++ /dev/null @@ -1,436 +0,0 @@ - -/** - * --------------------------------------- - * DO NOT EDIT THIS FILE. - * All your styling should go in style.css - * --------------------------------------- - */ - - -/*! normalize.css v3.0.2 | MIT License | git.io/normalize */ - -/** - * 1. Set default font family to sans-serif. - * 2. Prevent iOS text size adjust after orientation change, without disabling - * user zoom. - */ - -html { - font-family: sans-serif; /* 1 */ - -ms-text-size-adjust: 100%; /* 2 */ - -webkit-text-size-adjust: 100%; /* 2 */ -} - -/** - * Remove default margin. - */ - -body { - margin: 0; -} - -/* HTML5 display definitions - ========================================================================== */ - -/** - * Correct `block` display not defined for any HTML5 element in IE 8/9. - * Correct `block` display not defined for `details` or `summary` in IE 10/11 - * and Firefox. - * Correct `block` display not defined for `main` in IE 11. - */ - -article, -aside, -details, -figcaption, -figure, -footer, -header, -hgroup, -main, -menu, -nav, -section, -summary { - display: block; -} - -/** - * 1. Correct `inline-block` display not defined in IE 8/9. - * 2. Normalize vertical alignment of `progress` in Chrome, Firefox, and Opera. - */ - -audio, -canvas, -progress, -video { - display: inline-block; /* 1 */ - vertical-align: baseline; /* 2 */ -} - -/** - * Prevent modern browsers from displaying `audio` without controls. - * Remove excess height in iOS 5 devices. - */ - -audio:not([controls]) { - display: none; - height: 0; -} - -/** - * Address `[hidden]` styling not present in IE 8/9/10. - * Hide the `template` element in IE 8/9/11, Safari, and Firefox < 22. - */ - -[hidden], -template { - display: none; -} - -/* Links - ========================================================================== */ - -/** - * Remove the gray background color from active links in IE 10. - */ - -a { - background-color: transparent; -} - -/** - * Improve readability when focused and also mouse hovered in all browsers. - */ - -a:active, -a:hover { - outline: 0; -} - -/* Text-level semantics - ========================================================================== */ - -/** - * Address styling not present in IE 8/9/10/11, Safari, and Chrome. - */ - -abbr[title] { - border-bottom: 1px dotted; -} - -/** - * Address style set to `bolder` in Firefox 4+, Safari, and Chrome. - */ - -b, -strong { - font-weight: bold; -} - -/** - * Address styling not present in Safari and Chrome. - */ - -dfn { - font-style: italic; -} - -/** - * Address variable `h1` font-size and margin within `section` and `article` - * contexts in Firefox 4+, Safari, and Chrome. - */ - -h1 { - font-size: 2em; - margin: 0.67em 0; -} - -/** - * Address styling not present in IE 8/9. - */ - -mark { - background: #ff0; - color: #000; -} - -/** - * Address inconsistent and variable font size in all browsers. - */ - -small { - font-size: 80%; -} - -/** - * Prevent `sub` and `sup` affecting `line-height` in all browsers. - */ - -sub, -sup { - font-size: 75%; - line-height: 0; - position: relative; - vertical-align: baseline; -} - -sup { - top: -0.5em; -} - -sub { - bottom: -0.25em; -} - -/* Embedded content - ========================================================================== */ - -/** - * Remove border when inside `a` element in IE 8/9/10. - */ - -img { - border: 0; -} - -/** - * Correct overflow not hidden in IE 9/10/11. - */ - -svg:not(:root) { - overflow: hidden; -} - -/* Grouping content - ========================================================================== */ - -/** - * Address margin not present in IE 8/9 and Safari. - */ - -figure { - margin: 1em 40px; -} - -/** - * Address differences between Firefox and other browsers. - */ - -hr { - -moz-box-sizing: content-box; - box-sizing: content-box; - height: 0; -} - -/** - * Contain overflow in all browsers. - */ - -pre { - overflow: auto; -} - -/** - * Address odd `em`-unit font size rendering in all browsers. - */ - -code, -kbd, -pre, -samp { - font-family: monospace, monospace; - font-size: 1em; -} - -/* Forms - ========================================================================== */ - -/** - * Known limitation: by default, Chrome and Safari on OS X allow very limited - * styling of `select`, unless a `border` property is set. - */ - -/** - * 1. Correct color not being inherited. - * Known issue: affects color of disabled elements. - * 2. Correct font properties not being inherited. - * 3. Address margins set differently in Firefox 4+, Safari, and Chrome. - */ - -button, -input, -optgroup, -select, -textarea { - color: inherit; /* 1 */ - font: inherit; /* 2 */ - margin: 0; /* 3 */ -} - -/** - * Address `overflow` set to `hidden` in IE 8/9/10/11. - */ - -button { - overflow: visible; -} - -/** - * Address inconsistent `text-transform` inheritance for `button` and `select`. - * All other form control elements do not inherit `text-transform` values. - * Correct `button` style inheritance in Firefox, IE 8/9/10/11, and Opera. - * Correct `select` style inheritance in Firefox. - */ - -button, -select { - text-transform: none; -} - -/** - * 1. Avoid the WebKit bug in Android 4.0.* where (2) destroys native `audio` - * and `video` controls. - * 2. Correct inability to style clickable `input` types in iOS. - * 3. Improve usability and consistency of cursor style between image-type - * `input` and others. - */ - -button, -html input[type="button"], /* 1 */ -input[type="reset"], -input[type="submit"] { - -webkit-appearance: button; /* 2 */ - cursor: pointer; /* 3 */ -} - -/** - * Re-set default cursor for disabled elements. - */ - -button[disabled], -html input[disabled] { - cursor: default; -} - -/** - * Remove inner padding and border in Firefox 4+. - */ - -button::-moz-focus-inner, -input::-moz-focus-inner { - border: 0; - padding: 0; -} - -/** - * Address Firefox 4+ setting `line-height` on `input` using `!important` in - * the UA stylesheet. - */ - -input { - line-height: normal; -} - -/** - * It's recommended that you don't attempt to style these elements. - * Firefox's implementation doesn't respect box-sizing, padding, or width. - * - * 1. Address box sizing set to `content-box` in IE 8/9/10. - * 2. Remove excess padding in IE 8/9/10. - */ - -input[type="checkbox"], -input[type="radio"] { - box-sizing: border-box; /* 1 */ - padding: 0; /* 2 */ -} - -/** - * Fix the cursor style for Chrome's increment/decrement buttons. For certain - * `font-size` values of the `input`, it causes the cursor style of the - * decrement button to change from `default` to `text`. - */ - -input[type="number"]::-webkit-inner-spin-button, -input[type="number"]::-webkit-outer-spin-button { - height: auto; -} - -/** - * 1. Address `appearance` set to `searchfield` in Safari and Chrome. - * 2. Address `box-sizing` set to `border-box` in Safari and Chrome - * (include `-moz` to future-proof). - */ - -input[type="search"] { - -webkit-appearance: textfield; /* 1 */ - -moz-box-sizing: content-box; - -webkit-box-sizing: content-box; /* 2 */ - box-sizing: content-box; -} - -/** - * Remove inner padding and search cancel button in Safari and Chrome on OS X. - * Safari (but not Chrome) clips the cancel button when the search input has - * padding (and `textfield` appearance). - */ - -input[type="search"]::-webkit-search-cancel-button, -input[type="search"]::-webkit-search-decoration { - -webkit-appearance: none; -} - -/** - * Define consistent border, margin, and padding. - */ - -fieldset { - border: 1px solid #c0c0c0; - margin: 0 2px; - padding: 0.35em 0.625em 0.75em; -} - -/** - * 1. Correct `color` not being inherited in IE 8/9/10/11. - * 2. Remove padding so people aren't caught out if they zero out fieldsets. - */ - -legend { - border: 0; /* 1 */ - padding: 0; /* 2 */ -} - -/** - * Remove default vertical scrollbar in IE 8/9/10/11. - */ - -textarea { - overflow: auto; -} - -/** - * Don't inherit the `font-weight` (applied by a rule above). - * NOTE: the default cannot safely be changed in Chrome and Safari on OS X. - */ - -optgroup { - font-weight: bold; -} - -/* Tables - ========================================================================== */ - -/** - * Remove most spacing between table cells. - */ - -table { - border-collapse: collapse; - border-spacing: 0; -} - -td, -th { - padding: 0; -} \ No newline at end of file diff --git a/css/style.css b/css/style.css deleted file mode 100755 index 5cb025cef..000000000 --- a/css/style.css +++ /dev/null @@ -1,19 +0,0 @@ - - /* We are using the 'Roboto' font from Google. This has already been added to your HTML header */ - -body { - font-family: 'Roboto', sans-serif; - -webkit-font-smoothing: antialiased; -} - -/** - * Add your custom styles below - * - * Remember: - * - Be organised, use comments and separate your styles into meaningful chunks - * for example: General styles, Navigation styles, Hero styles, Footer etc. - * - * - When using Flexbox, remember the items you want to move around need to be inside a parent container set to 'display: flex' - */ - - diff --git a/index.html b/index.html index 3e742ef04..1856dca3e 100755 --- a/index.html +++ b/index.html @@ -1,19 +1,112 @@ - - - - Karma - - - - - - - - - - + + + Karma + + + + + + + + + + +
+ +
+
+
+

Introducing Karma

+

Bring WiFi with you, everywhere you go.

+ +
+
+
+

Everyone needs a little Karma.

+
+
+
+
+
+ +

+ Internet for all devices +

+
+
+ +

+ Boost your producrivity +

+
+
+ +

+ Pay as You Go +

+
+ +
+
+ +
+
+ homepage-feature +
+
+

"Wherever I am, I just don't
worry about my connection
anymore!"

+ +
+
+
+ diff --git a/store.css b/store.css new file mode 100644 index 000000000..9b52979d4 --- /dev/null +++ b/store.css @@ -0,0 +1,305 @@ +root { + --grey: #938c89; + --dark-grey: #666666; + --orange: #ff5f1f; + } + body { + font-family: "Roboto", sans-serif; + -webkit-font-smoothing: antialiased; + display: grid; + grid-template-columns: 0px 1fr 1fr; + grid-template-rows: 100px 1fr 20px; + grid-template-areas: + " n n n " + " c c im" + " f f f "; + } + label, + p { + color: var(--dark-grey); + font-weight: 500; + } + input { + border-color: var(--grey); + accent-color: #ff5f1f; + } + h1 { + color: #ff5f1f; + font-weight: 450; + line-height: 40px; + font-size: 38px; + margin-bottom: 80px; + } + .menu { + width: 80%; + margin: 0 auto; + } + + /* header */ + header { + grid-area: n; + border-bottom: solid 2px #ccc6c6; + } + .karma-logo { + width: 40px; + height: 40px; + float: left; + } + + .nav-bar { + display: flex; + justify-content: flex-end; + text-decoration: none; + list-style: none; + } + + .nav-bar a { + float: left; + color: gray; + text-align: center; + padding: 14px 16px; + text-decoration: none; + font-size: 17px; + } + + .nav-bar a:hover { + color: var(--orange); + } + + #first-a { + color: black; + font-weight: bold; + } + + #first-a:hover { + color: var(--orange); + } + + #store-nav { + color: var(--orange); + } + .image_store_page { + height: 55rem; + width: 85%; + padding-left: 20%; + } + + /*store-section*/ + .store_section { + display: flex; + flex-direction: row; + margin-left: 15%; + } + /* form-section */ + main { + grid-area: c; + display: flex; + flex-direction: row; + justify-content: center; + } + + #image_page { + grid-area: im; + } + + .details-section { + display: grid; + grid-template-rows: repeat(3, 6rem); + grid-template-columns: 250px 250px; + grid-template-areas: + "fn ln" + "ad ." + "ct ."; + margin-bottom: 70px; + } + + #first_n { + grid-area: fn; + } + + #first_n > input { + margin-top: 5px; + border-radius: 5px; + height: 30px; + border: solid 2px var(--grey); + } + #last_n { + grid-area: ln; + } + #last_n > input { + margin-top: 5px; + border-radius: 5px; + height: 30px; + border: solid 2px var(--grey); + } + #address { + margin-bottom: 15px; + } + + #addresses { + grid-area: ad; + } + #addresses > input { + margin-top: 5px; + border-radius: 5px; + height: 30px; + border: solid 2px var(--grey); + width: 435px; + } + + #city { + width: 204px; + } + #city_c { + margin-top: 50px; + grid-area: ct; + display: flex; + flex-direction: row; + justify-content: flex-start; + gap: 50px; + /* height: 50px; */ + } + #city_c_1 > select { + margin-top: 15px; + border-radius: 5px; + height: 34px; + border: solid 2px var(--grey); + background-color: white; + font-style: italic; + font-weight: 200; + padding-left: 10px; + } + #city_c_2 > input { + margin-top: 15px; + border-radius: 5px; + height: 30px; + border: solid 2px var(--grey); + } + #color_select { + display: flex; + flex-direction: row; + justify-content: flex-start; + gap: 50px; + align-items: center; + margin-bottom: 50px; + } + #orange_radio > label, + #grey_radio > label, + #TC_container > label { + font-weight: 400; + } + #TC_container { + display: flex; + flex-direction: row; + flex-wrap: nowrap; + justify-content: flex-start; + align-items: center; + gap: 20px; + } + #karma-orange, + #space-grey { + accent-color: var(--orange); + } + #TC_container > * { + line-height: 24px; + } + label > a:link { + text-decoration: underline; + color: var(--orange); + } + + button { + background-color: var(--orange); + color: white; + padding: 15px 32px; + text-align: center; + text-decoration: none; + display: inline-block; + font-size: 16px; + border: 0; + border-radius: 5px; + width: 204px; + } + + button:hover { + transition: all 0.5s ease 0.1s; + color: var(--orange); + background-color: white; + } + /* checkbox */ + + [type="checkbox"] { + opacity: 0; + } + [type="checkbox"] + label { + position: relative; + padding-left: 25px; + cursor: pointer; + display: inline-block; + color: #666666; + line-height: 25px; + } + [type="checkbox"] + label::before { + content: ""; + position: absolute; + left: 0; + top: 0; + width: 18px; + height: 18px; + outline: 2px solid gray; + border-radius: 2px; + background: #fff; + } + + [type="checkbox"]:checked + label::before { + content: ""; + position: absolute; + left: 0; + top: 0; + width: 18px; + height: 18px; + border-radius: 2px; + background: #fff; + } + [type="checkbox"]:checked + label::after { + content: ""; + position: absolute; + left: 0; + top: 0; + width: 18px; + height: 18px; + border-radius: 2px; + outline: 2px solid gray; + background-image: url(/level-2/checkmark.svg); + background-size: contain; + } + /*footer*/ + footer { + grid-area: f; + /* border-top: solid 2px #ccc6c6; */ + } + #join-us { + color: black; + text-align: center; + letter-spacing: 100; + padding-top: 100px; + } + + .networks { + width: 20px; + display: flex; + flex-direction: row; + justify-content: center; + gap: 50px; + padding: 30px; + margin: 0 auto; + } + + #copyright { + text-align: center; + font-size: small; + } + + .sm-icon > img { + width: 20px; + } \ No newline at end of file diff --git a/store.html b/store.html new file mode 100644 index 000000000..1afebdc9f --- /dev/null +++ b/store.html @@ -0,0 +1,115 @@ + + + + + + Karma + + + + + +
+ +
+
+
+
+

+ Order your Karma wifi
device today! +

+
+
+ + +
+
+ + +
+
+ + + + +
+
+
+
+
+
+
+
+
+
+
+
+

Select a colour

+
+
+ + +
+
+ +
+
+
+
+ + +
+
+ + +
+
+ +
+
+ girl sit behind laptop + +
+ + + \ No newline at end of file diff --git a/style.css b/style.css new file mode 100644 index 000000000..79b0cf3c6 --- /dev/null +++ b/style.css @@ -0,0 +1,161 @@ +body { + font-family: 'Roboto', sans-serif; + -webkit-font-smoothing: antialiased; + font-family: "Roboto", sans-serif; + -webkit-font-smoothing: antialiased; +} + +.logo-1 { + width: 80%; + margin: 0 auto; +} +.karma-logo { + width: 40px; + height: 40px; + float: left; +} + +.nav-bar { + display: flex; + justify-content: flex-end; + text-decoration: none; + list-style: none; +} + +.nav-bar a { + float: left; + color: gray; + text-align: center; + padding: 14px 16px; + text-decoration: none; + font-size: 17px; +} + +.nav-bar a:hover { + color: #ff5f1f; +} + +#first-a { + color: black; + font-weight: bold; +} + +#first-a:hover { + color: #ff5f1f; +} + +.section-1 { + background-image: url(/img/first-background.jpg); + background-position: center center; + background-repeat: no-repeat; + height: 100vh; + position: relative; + background-size: cover; + } + + +#header-font { + color: white; + text-align: center; + font-size: 2.5rem; + letter-spacing: 100; + font-weight: lighter; + margin: 0px; +} + +#header-font-2 { + color: white; + text-align: center; + font-size: 1.9rem; + letter-spacing: 100; + font-weight: lighter; +} +button { + background-color: #ff5f1f; + color: white; + padding: 15px 32px; + text-align: center; + text-decoration: none; + display: inline-block; + font-size: 16px; + border: 0; + border-radius: 5px; + } + + button:hover { + color: #ff5f1f; + background-color: white; + } + + .logo-2 { + color: black; + text-align: center; + font-size: 1.9rem; + letter-spacing: 100; + font-weight: lighter; + padding: 50px; + } + + .images-menu { + display: flex; + flex-direction: row; + justify-content: center; + font-size: 1.2rem; + } + + .icons { + display: flex; + flex-direction: column; + padding: 0 100px; + } + + .image-logo { + width: auto; + height: auto; + max-height: 150px; + padding-bottom: 10px; + } + + .homepage-feature { + padding-top: 100px; + display: flex; + flex-direction: row; + justify-content: space-around; + align-items: center; + } + + #join-us { + color: black; + text-align: center; + letter-spacing: 100; + padding-top: 100px; + } + #get-karma { + background-color: rgba(236, 98, 52, 0.1); + width: 65rem; + text-align: center; + } + .text-description { + padding-top: 5rem; + font-style: italic; + font-size: 35px; + line-height: 45px; + } + .networks { + width: 20px; + display: flex; + flex-direction: row; + justify-content: center; + gap: 50px; + padding: 30px; + margin: 0 auto; + } + + #copyright { + text-align: center; + font-size: small; + } + + .sm-icon > img { + width: 20px; + } \ No newline at end of file