diff --git a/projectfolder/06-Components/01-accordion/01-accordion.html b/projectfolder/06-Components/01-accordion/01-accordion.html new file mode 100644 index 000000000..5981424e1 --- /dev/null +++ b/projectfolder/06-Components/01-accordion/01-accordion.html @@ -0,0 +1,144 @@ + + + + + + + + + Accordion Component + + + +
+
+

01

+

Am I depressed?

+ + + + +
+

+ Lorem ipsum, dolor sit amet consectetur adipisicing elit. + Debitis, sunt adipisci commodi rem velit autem voluptate. Enim, + natus nihil eum commodi quas facilis voluptate aliquam! +

+
    +
  • + Lorem ipsum dolor sit amet consectetur adipisicing elit. + Saepe sapiente, nisi, voluptatem ad ipsum excepturi + temporibus laboriosam ullam in obcaecati +
  • +
  • + Lorem ipsum dolor sit amet consectetur adipisicing elit. + Voluptatem fuga nobis placeat deserunt reprehenderit eaque! +
  • +
  • + Lorem ipsum, dolor sit amet consectetur adipisicing elit. + Mollitia, quisquam exercitationem modi minima sit, recusandae + ullam natus, aspernatur illo possimus delectus fugiat vel. +
  • +
+
+
+ +
+

02

+

How long do I have to live?

+ + + +
+

+ Lorem ipsum, dolor sit amet consectetur adipisicing elit. + Debitis, sunt adipisci commodi rem velit autem voluptate. Enim, + natus nihil eum commodi quas facilis voluptate aliquam! +

+
    +
  • + Lorem ipsum dolor sit amet consectetur adipisicing elit. + Saepe sapiente, nisi, voluptatem ad ipsum excepturi + temporibus laboriosam ullam in obcaecati +
  • +
  • + Lorem ipsum dolor sit amet consectetur adipisicing elit. + Voluptatem fuga nobis placeat deserunt reprehenderit eaque! +
  • +
  • + Lorem ipsum, dolor sit amet consectetur adipisicing elit. + Mollitia, quisquam exercitationem modi minima sit, recusandae + ullam natus, aspernatur illo possimus delectus fugiat vel. +
  • +
+
+
+ +
+

03

+

Is that an Auditory Hallucination?

+ + + +
+

+ Lorem ipsum, dolor sit amet consectetur adipisicing elit. + Debitis, sunt adipisci commodi rem velit autem voluptate. Enim, + natus nihil eum commodi quas facilis voluptate aliquam! +

+
    +
  • + Lorem ipsum dolor sit amet consectetur adipisicing elit. + Saepe sapiente, nisi, voluptatem ad ipsum excepturi + temporibus laboriosam ullam in obcaecati +
  • +
  • + Lorem ipsum dolor sit amet consectetur adipisicing elit. + Voluptatem fuga nobis placeat deserunt reprehenderit eaque! +
  • +
+
+
+
+ + + diff --git a/projectfolder/06-Components/01-accordion/02-carousel/02-carousel.html b/projectfolder/06-Components/01-accordion/02-carousel/02-carousel.html new file mode 100644 index 000000000..c15994d0e --- /dev/null +++ b/projectfolder/06-Components/01-accordion/02-carousel/02-carousel.html @@ -0,0 +1,73 @@ + + + + + + + + + Carousel + + + + + + + diff --git a/projectfolder/06-Components/01-accordion/02-carousel/carousel.css b/projectfolder/06-Components/01-accordion/02-carousel/carousel.css new file mode 100644 index 000000000..8ad88f363 --- /dev/null +++ b/projectfolder/06-Components/01-accordion/02-carousel/carousel.css @@ -0,0 +1,133 @@ +/* +SPACING SYSTEM (px) +2 / 4 / 8 / 12 / 16 / 24 / 32 / 48 / 64 / 80 / 96 / 128 +(rems) (divide by 10) +.2/.4/.8./1.2/1.6 .... + +FONT SIZE SYSTEM (px) +10 / 12 / 14 / 16 / 18 / 20 / 24 / 30 / 36 / 44 / 52 / 62 / 74 / 86 / 98 +(rems) divide by 10 +1 / 1.2 / 1.4/ 1.6 ... +*/ + +/* Main Color: #087f5b + Grey Color: #343a40 + +*/ +:root { + --MainColor: #087f5b; + --SecondaryColor: #343a40; +} + +* { + margin: 0; + padding: 0; + box-sizing: border-box; +} + +/* ------------------------ */ +/* GENERAL STYLES */ +/* ------------------------ */ +body { + /* font-family: sans-serif; */ + + font-family: 'Poppins' sans-serif; + color: var(--SecondaryColor); + + font-size: 10px; + line-height: 1px; +} + +img { + height: 20rem; + border-radius: 0.8rem; + transform: scale(1.5); + box-shadow: 0 1.2rem 2.4rem rgba(0, 0, 0, 0.25); +} + +.btn { + position: absolute; + background-color: #fff; + border: none; + height: 4rem; + width: 4rem; + border-radius: 50%; + display: flex; + align-items: center; + justify-content: center; + box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2); + cursor: pointer; +} + +.btn-icon { + stroke: var(--MainColor); + height: 2.4rem; + width: 2.4rem; +} +.btn-right { + /* In relation to parent element */ + right: 0%; + top: 50%; + /* In relation to element itself */ + transform: translate(50%, -50%); +} + +.btn-left { + left: 0%; + top: 50%; + transform: translate(-50%, -50%); +} + +.btn:active { + background-color: #087f5b; +} +.carousel { + position: relative; + background-color: var(--MainColor); + width: 80rem; + margin: 10rem auto; + border-radius: 0.8rem; + padding: 3.2rem 4.8rem 3.2rem 8.6rem; + display: flex; + align-items: center; + gap: 8.6rem; +} + +.testimonial-text { + font-size: 1.8rem; + font-weight: 500; + line-height: 1.5; + margin-bottom: 3.2rem; + color: #e6fcf5; +} +.testimonial-author { + font-size: 1.4rem; + margin-bottom: 1.5rem; + color: #c3fae8; +} +.testimonial-job { + font-size: 1.2rem; + color: #c3fae8; +} + +.dots { + position: absolute; + left: 50%; + bottom: 0; + transform: translate(-50%, 3.2rem); + display: flex; + gap: 1.2rem; +} + +.dot { + height: 1.2rem; + width: 1.2rem; + background-color: #fff; + border: 0.2rem solid #087f5b; + border-radius: 50%; + cursor: pointer; +} + +.dot--fill { + background-color: #087f5b; +} diff --git a/projectfolder/06-Components/01-accordion/02-carousel/carousel.js b/projectfolder/06-Components/01-accordion/02-carousel/carousel.js new file mode 100644 index 000000000..6e235b716 --- /dev/null +++ b/projectfolder/06-Components/01-accordion/02-carousel/carousel.js @@ -0,0 +1,10 @@ +var item = document.getElementsByClassName('item') +var i + +// So yea, classlist.toggle("open") will add or remove "open" from the class name + +for (i = 0; i < item.length; i++) { + item[i].addEventListener('click', function () { + this.classList.toggle('open') + }) +} diff --git a/projectfolder/06-Components/01-accordion/02-carousel/component.html b/projectfolder/06-Components/01-accordion/02-carousel/component.html new file mode 100644 index 000000000..5bec1cfc2 --- /dev/null +++ b/projectfolder/06-Components/01-accordion/02-carousel/component.html @@ -0,0 +1,20 @@ + + + + + + + + + Carousel Component + + + + + diff --git a/projectfolder/06-Components/01-accordion/accordion.css b/projectfolder/06-Components/01-accordion/accordion.css new file mode 100644 index 000000000..84767583e --- /dev/null +++ b/projectfolder/06-Components/01-accordion/accordion.css @@ -0,0 +1,114 @@ +/* +SPACING SYSTEM (px) +2 / 4 / 8 / 12 / 16 / 24 / 32 / 48 / 64 / 80 / 96 / 128 +(rems) (divide by 10) +.2/.4/.8./1.2/1.6 .... + +FONT SIZE SYSTEM (px) +10 / 12 / 14 / 16 / 18 / 20 / 24 / 30 / 36 / 44 / 52 / 62 / 74 / 86 / 98 +(rems) divide by 10 +1 / 1.2 / 1.4/ 1.6 ... +*/ + +/* Main Color: #087f5b + Grey Color: #343a40 + +*/ +:root { + --MainColor: #087f5b; + --SecondaryColor: #343a40; +} + +* { + margin: 0; + padding: 0; + box-sizing: border-box; +} + +/* ------------------------ */ +/* GENERAL STYLES */ +/* ------------------------ */ +body { + /* font-family: sans-serif; */ + + font-family: 'Poppins' sans-serif; + color: var(--SecondaryColor); + + font-size: 10; + line-height: 1; +} + +.accordion { + width: 700px; + margin: 100px auto; + display: flex; + flex-direction: column; + gap: 2.4rem; +} + +.active, +.item:hover { + background-color: #e9ecef; +} + +.item { + box-shadow: 0 0 3.2rem rgba(0, 0, 0, 0.1); + padding: 2.4rem; + + display: grid; + grid-template-columns: auto 1fr auto; + column-gap: 2.4rem; + row-gap: 3.2rem; + align-items: center; +} +.number, +.text { + font-size: 2.4rem; + font-weight: 500; + /* color: var(--MainColor); */ +} + +.number { + color: #ced4da; +} +.icon { + width: 2.4rem; + height: 2.4 rem; + stroke: var(--MainColor); +} + +.hiddenBox { + grid-column: 2; + display: none; +} +.hiddenBox ul { + color: #868e96; + margin-left: 2rem; + + display: flex; + flex-direction: column; + gap: 1.2rem; +} +.hiddenBox p { + line-height: 1.6; + margin-bottom: 2.4rem; +} + +/* .hiddenBox li { + margin-bottom: 1.2rem; +} */ + +/* Open State */ + +.open { + border-top: 0.4rem solid var(--MainColor); +} + +.open .hiddenBox { + display: block; +} + +.open .number, +.open .text { + color: var(--MainColor); +} diff --git a/projectfolder/06-Components/01-accordion/accordion.js b/projectfolder/06-Components/01-accordion/accordion.js new file mode 100644 index 000000000..6e235b716 --- /dev/null +++ b/projectfolder/06-Components/01-accordion/accordion.js @@ -0,0 +1,10 @@ +var item = document.getElementsByClassName('item') +var i + +// So yea, classlist.toggle("open") will add or remove "open" from the class name + +for (i = 0; i < item.length; i++) { + item[i].addEventListener('click', function () { + this.classList.toggle('open') + }) +} diff --git a/projectfolder/06-Components/base designs/baseCSS.css b/projectfolder/06-Components/base designs/baseCSS.css new file mode 100644 index 000000000..c1d8fddd8 --- /dev/null +++ b/projectfolder/06-Components/base designs/baseCSS.css @@ -0,0 +1,38 @@ +/* +SPACING SYSTEM (px) +2 / 4 / 8 / 12 / 16 / 24 / 32 / 48 / 64 / 80 / 96 / 128 +(rems) (divide by 10) +.2/.4/.8./1.2/1.6 .... + +FONT SIZE SYSTEM (px) +10 / 12 / 14 / 16 / 18 / 20 / 24 / 30 / 36 / 44 / 52 / 62 / 74 / 86 / 98 +(rems) divide by 10 +1 / 1.2 / 1.4/ 1.6 ... +*/ + +/* Main Color: #087f5b + Grey Color: #343a40 + +*/ +:root { + --MainColor: #087f5b; + --SecondaryColor: #343a40; +} + +* { + margin: 0; + padding: 0; + box-sizing: border-box; +} + +/* ------------------------ */ +/* GENERAL STYLES */ +/* ------------------------ */ +body { + /* font-family: sans-serif; */ + + font-family: 'Poppins' sans-serif; + color: var(--SecondaryColor); + border-bottom: 8px solid var(--MainColor); + font-size: 10; +} diff --git a/projectfolder/06-Components/base designs/baseIndex.html b/projectfolder/06-Components/base designs/baseIndex.html new file mode 100644 index 000000000..cecf4b0af --- /dev/null +++ b/projectfolder/06-Components/base designs/baseIndex.html @@ -0,0 +1,13 @@ + + + + + + + Document + + + diff --git a/projectfolder/06-Components/hero.jpg b/projectfolder/06-Components/hero.jpg new file mode 100644 index 000000000..26f1847c8 Binary files /dev/null and b/projectfolder/06-Components/hero.jpg differ diff --git a/projectfolder/06-Components/index.html b/projectfolder/06-Components/index.html new file mode 100644 index 000000000..3fa79e0de --- /dev/null +++ b/projectfolder/06-Components/index.html @@ -0,0 +1,388 @@ + + + + + + + + + + + + Lisbon Chair Shop + + +
+
+
+

We design and build better chairs, for a better life

+

+ In a small shop in the heart of Lisbon, we spend our days + relentlessly perfecting the chair. The result is a perfect + blend of beauty and comfort, that will have a lasting impact on + your health. +

+ Shop chairs +
+ Photo +
+ +
+

What makes our chairs special

+
+
+ + + +

+ Science meets design +

+

+ Lorem, ipsum dolor sit amet consectetur adipisicing elit. + Natus similique adipisci praesentium. +

+
+ +
+ + + +

+ Maximal comfort +

+

+ Reprehenderit optio placeat quasi excepturi architecto, + explicabo facilis perspiciatis error maxime magnam. +

+
+ +
+ + + +

+ Ethical and sustainable +

+

+ Deleniti recusandae quidem nesciunt, eos dolorum iure, + quaerat omnis est laudantium voluptatem voluptas! +

+
+
+
+ +
+
+ People sitting on chairs +
+

"We couldn't live without these chairs anymore"

+
+ Lorem ipsum dolor sit amet consectetur adipisicing elit. + Dolor repellat at, nesciunt quia cum minima ipsum culpa totam + sapiente recusandae earum debitis doloribus in quasi + voluptatibus! +
+

+ — Mary and Sarah Johnson +

+
+
+
+ +
+

Our bestselling chairs

+
+
+ Chair +
+

The Laid Back

+
    +
  • + + + + + Leisure and relaxing +
  • +
  • + + + + Comfortable for 4h +
  • +
  • + + + + Vegan leather +
  • +
  • + + + + Weighs 16 kg +
  • +
+
+ 250€ + + Add to cart +
+
+
+ +
+ Chair +
+

The Worker Bee

+
    +
  • + + + + Work +
  • +
  • + + + + Comfortable for 8h +
  • +
  • + + + + Vegan leather +
  • +
  • + + + + Weighs 22 kg +
  • +
+
+ 525€ + + Add to cart +
+
+
+ +
+ Chair +
+

The Chair 4/2

+
    +
  • + + + + Leisure and relaxing +
  • +
  • + + + + Comfortable all day! +
  • +
  • + + + + Organic cotton +
  • +
  • + + + + Weighs 80 kg +
  • +
+
+ 1450€ + Add to cart +
+
+
+
+
+ +
+ + diff --git a/projectfolder/06-Components/maria.jpg b/projectfolder/06-Components/maria.jpg new file mode 100644 index 000000000..33fe230b9 Binary files /dev/null and b/projectfolder/06-Components/maria.jpg differ diff --git a/projectfolder/06-Components/style.css b/projectfolder/06-Components/style.css new file mode 100644 index 000000000..0a6d839c8 --- /dev/null +++ b/projectfolder/06-Components/style.css @@ -0,0 +1,236 @@ +/* +SPACING SYSTEM (px) +2 / 4 / 8 / 12 / 16 / 24 / 32 / 48 / 64 / 80 / 96 / 128 + +FONT SIZE SYSTEM (px) +10 / 12 / 14 / 16 / 18 / 20 / 24 / 30 / 36 / 44 / 52 / 62 / 74 / 86 / 98 +*/ + +/* Main Color: #087f5b + Grey Color: #343a40 + +*/ +:root { + --MainColor: #087f5b; + --SecondaryColor: #343a40; +} + +* { + margin: 0; + padding: 0; + box-sizing: border-box; +} + +/* ------------------------ */ +/* GENERAL STYLES */ +/* ------------------------ */ +body { + /* font-family: sans-serif; */ + + font-family: 'Poppins' sans-serif; + color: var(--SecondaryColor); + border-bottom: 8px solid var(--MainColor); +} + +.container { + width: 960px; + margin: 0 auto; +} + +header, +section { + margin-bottom: 48px; +} + +h2 { + margin-bottom: 48px; + font-size: 30px; + letter-spacing: -1px; +} + +.grid-3-cols { + display: grid; + grid-template-columns: repeat(3, 1fr); + column-gap: 80px; +} + +.btn:link, +.btn:visited { + background-color: #087f5b; + color: #fff; + text-decoration: none; + text-transform: uppercase; + + display: inline-block; + font-weight: 500; + + border-radius: 100px; +} + +.btn { + /*not part of the lesson, just wanted to fuck around */ + transition: box-shadow 0.5s; +} + +.btn:hover, +.btn:active { + background-color: #099268; + box-shadow: 0 0 100px 100px rgba(30, 5, 100, 1.2); +} + +.btn--big { + padding: 16px 32px; + font-size: 18px; +} + +.btn--small { + font-size: 14px; + padding: 8px 12px; +} + +img { + border-radius: 12px; +} + +/* ------------------------ */ +/* COMPONENT STYLES */ +/* ------------------------ */ + +/* HEADER */ +header { + display: grid; + grid-template-columns: repeat(2, 1fr); + column-gap: 80px; + margin-top: 48px; +} + +.header-text-box { + align-self: center; +} + +h1 { + margin-bottom: 24px; + font-size: 44px; + /* / 44 / 52 / 62 / */ + line-height: 1.1; + letter-spacing: -2px; + /* + text-shadow: 0px 5px 5px rgba(0, 0, 0, 0.2); + */ +} + +.header-text { + margin-bottom: 24px; + /* 16 / 18 / 20 */ + font-size: 18px; + line-height: 1.7; +} + +img { + width: 100%; +} + +/* FEATURES */ +.features-icon { + stroke: var(--MainColor); + width: 32px; + height: 32px; + margin-bottom: 16px; +} + +.features-title { + margin-bottom: 16px; + font-size: 20px; +} + +.features-text { + font-size: 18px; + line-height: 1.7; +} + +/* TESTIMONIAL */ +.testimonial-section { + background-color: #087f5b; + color: white; + padding: 24px; + border-radius: 12px; +} + +.testimonial-box { + grid-column: 2 / -1; + align-self: center; +} + +.testimonial-box h2 { + margin-bottom: 24px; + /* 20 / 24 / 30 */ + font-size: 24px; +} + +.testimonial-text { + font-style: italic; + margin-bottom: 24px; + font-size: 18px; + line-height: 1.7; +} + +/* CHAIRS */ +.chair { + /*First number is moving the shadow to the right (pos) or left(neg) + 2nd is moving the shadow down (pos) or up (neg) + 3rd is how much the shadow grows outward from the item + 4th is how deep out the blackness grows from within the object + 5th is the color, use rgba to set the opacity. You generally want less than .1 - .3 + */ + + box-shadow: -0px 20px 30px 0px rgba(0, 0, 0, 0.1); + border-radius: 12px; +} +.chair img { + /*This is how you style specific corners. */ + border-bottom-left-radius: 0; + border-bottom-right-radius: 0; +} + +.chair-box { + padding: 24px; +} + +h3 { + margin-bottom: 24px; + font-size: 20px; +} + +.chair-details { + list-style: none; + margin-bottom: 24px; +} + +.chair-details li { + display: flex; + align-items: center; + gap: 12px; + margin-bottom: 24px; +} + +.chair-details li:last-child { + margin-bottom: 0; +} + +.chair-icon { + stroke: var(--MainColor); + width: 24px; + height: 24px; +} + +.chair-price { + display: flex; + justify-content: space-between; + font-size: 20px; +} + +footer { + margin-bottom: 48px; + font-size: 14px; + color: #868e96; +} diff --git a/projectfolder/Design/chair-1.jpg b/projectfolder/Design/chair-1.jpg new file mode 100644 index 000000000..3100aa168 Binary files /dev/null and b/projectfolder/Design/chair-1.jpg differ diff --git a/projectfolder/Design/chair-2.jpg b/projectfolder/Design/chair-2.jpg new file mode 100644 index 000000000..33c8d854c Binary files /dev/null and b/projectfolder/Design/chair-2.jpg differ diff --git a/projectfolder/Design/chair-3.jpg b/projectfolder/Design/chair-3.jpg new file mode 100644 index 000000000..f57fcf10e Binary files /dev/null and b/projectfolder/Design/chair-3.jpg differ diff --git a/projectfolder/Design/customers.jpg b/projectfolder/Design/customers.jpg new file mode 100644 index 000000000..2d1d4f851 Binary files /dev/null and b/projectfolder/Design/customers.jpg differ diff --git a/projectfolder/Design/hero.jpg b/projectfolder/Design/hero.jpg new file mode 100644 index 000000000..5532819b1 Binary files /dev/null and b/projectfolder/Design/hero.jpg differ diff --git a/projectfolder/Design/index.html b/projectfolder/Design/index.html new file mode 100644 index 000000000..3fa79e0de --- /dev/null +++ b/projectfolder/Design/index.html @@ -0,0 +1,388 @@ + + + + + + + + + + + + Lisbon Chair Shop + + +
+
+
+

We design and build better chairs, for a better life

+

+ In a small shop in the heart of Lisbon, we spend our days + relentlessly perfecting the chair. The result is a perfect + blend of beauty and comfort, that will have a lasting impact on + your health. +

+ Shop chairs +
+ Photo +
+ +
+

What makes our chairs special

+
+
+ + + +

+ Science meets design +

+

+ Lorem, ipsum dolor sit amet consectetur adipisicing elit. + Natus similique adipisci praesentium. +

+
+ +
+ + + +

+ Maximal comfort +

+

+ Reprehenderit optio placeat quasi excepturi architecto, + explicabo facilis perspiciatis error maxime magnam. +

+
+ +
+ + + +

+ Ethical and sustainable +

+

+ Deleniti recusandae quidem nesciunt, eos dolorum iure, + quaerat omnis est laudantium voluptatem voluptas! +

+
+
+
+ +
+
+ People sitting on chairs +
+

"We couldn't live without these chairs anymore"

+
+ Lorem ipsum dolor sit amet consectetur adipisicing elit. + Dolor repellat at, nesciunt quia cum minima ipsum culpa totam + sapiente recusandae earum debitis doloribus in quasi + voluptatibus! +
+

+ — Mary and Sarah Johnson +

+
+
+
+ +
+

Our bestselling chairs

+
+
+ Chair +
+

The Laid Back

+
    +
  • + + + + + Leisure and relaxing +
  • +
  • + + + + Comfortable for 4h +
  • +
  • + + + + Vegan leather +
  • +
  • + + + + Weighs 16 kg +
  • +
+
+ 250€ + + Add to cart +
+
+
+ +
+ Chair +
+

The Worker Bee

+
    +
  • + + + + Work +
  • +
  • + + + + Comfortable for 8h +
  • +
  • + + + + Vegan leather +
  • +
  • + + + + Weighs 22 kg +
  • +
+
+ 525€ + + Add to cart +
+
+
+ +
+ Chair +
+

The Chair 4/2

+
    +
  • + + + + Leisure and relaxing +
  • +
  • + + + + Comfortable all day! +
  • +
  • + + + + Organic cotton +
  • +
  • + + + + Weighs 80 kg +
  • +
+
+ 1450€ + Add to cart +
+
+
+
+
+ +
+ + diff --git a/projectfolder/Design/style.css b/projectfolder/Design/style.css new file mode 100644 index 000000000..0a6d839c8 --- /dev/null +++ b/projectfolder/Design/style.css @@ -0,0 +1,236 @@ +/* +SPACING SYSTEM (px) +2 / 4 / 8 / 12 / 16 / 24 / 32 / 48 / 64 / 80 / 96 / 128 + +FONT SIZE SYSTEM (px) +10 / 12 / 14 / 16 / 18 / 20 / 24 / 30 / 36 / 44 / 52 / 62 / 74 / 86 / 98 +*/ + +/* Main Color: #087f5b + Grey Color: #343a40 + +*/ +:root { + --MainColor: #087f5b; + --SecondaryColor: #343a40; +} + +* { + margin: 0; + padding: 0; + box-sizing: border-box; +} + +/* ------------------------ */ +/* GENERAL STYLES */ +/* ------------------------ */ +body { + /* font-family: sans-serif; */ + + font-family: 'Poppins' sans-serif; + color: var(--SecondaryColor); + border-bottom: 8px solid var(--MainColor); +} + +.container { + width: 960px; + margin: 0 auto; +} + +header, +section { + margin-bottom: 48px; +} + +h2 { + margin-bottom: 48px; + font-size: 30px; + letter-spacing: -1px; +} + +.grid-3-cols { + display: grid; + grid-template-columns: repeat(3, 1fr); + column-gap: 80px; +} + +.btn:link, +.btn:visited { + background-color: #087f5b; + color: #fff; + text-decoration: none; + text-transform: uppercase; + + display: inline-block; + font-weight: 500; + + border-radius: 100px; +} + +.btn { + /*not part of the lesson, just wanted to fuck around */ + transition: box-shadow 0.5s; +} + +.btn:hover, +.btn:active { + background-color: #099268; + box-shadow: 0 0 100px 100px rgba(30, 5, 100, 1.2); +} + +.btn--big { + padding: 16px 32px; + font-size: 18px; +} + +.btn--small { + font-size: 14px; + padding: 8px 12px; +} + +img { + border-radius: 12px; +} + +/* ------------------------ */ +/* COMPONENT STYLES */ +/* ------------------------ */ + +/* HEADER */ +header { + display: grid; + grid-template-columns: repeat(2, 1fr); + column-gap: 80px; + margin-top: 48px; +} + +.header-text-box { + align-self: center; +} + +h1 { + margin-bottom: 24px; + font-size: 44px; + /* / 44 / 52 / 62 / */ + line-height: 1.1; + letter-spacing: -2px; + /* + text-shadow: 0px 5px 5px rgba(0, 0, 0, 0.2); + */ +} + +.header-text { + margin-bottom: 24px; + /* 16 / 18 / 20 */ + font-size: 18px; + line-height: 1.7; +} + +img { + width: 100%; +} + +/* FEATURES */ +.features-icon { + stroke: var(--MainColor); + width: 32px; + height: 32px; + margin-bottom: 16px; +} + +.features-title { + margin-bottom: 16px; + font-size: 20px; +} + +.features-text { + font-size: 18px; + line-height: 1.7; +} + +/* TESTIMONIAL */ +.testimonial-section { + background-color: #087f5b; + color: white; + padding: 24px; + border-radius: 12px; +} + +.testimonial-box { + grid-column: 2 / -1; + align-self: center; +} + +.testimonial-box h2 { + margin-bottom: 24px; + /* 20 / 24 / 30 */ + font-size: 24px; +} + +.testimonial-text { + font-style: italic; + margin-bottom: 24px; + font-size: 18px; + line-height: 1.7; +} + +/* CHAIRS */ +.chair { + /*First number is moving the shadow to the right (pos) or left(neg) + 2nd is moving the shadow down (pos) or up (neg) + 3rd is how much the shadow grows outward from the item + 4th is how deep out the blackness grows from within the object + 5th is the color, use rgba to set the opacity. You generally want less than .1 - .3 + */ + + box-shadow: -0px 20px 30px 0px rgba(0, 0, 0, 0.1); + border-radius: 12px; +} +.chair img { + /*This is how you style specific corners. */ + border-bottom-left-radius: 0; + border-bottom-right-radius: 0; +} + +.chair-box { + padding: 24px; +} + +h3 { + margin-bottom: 24px; + font-size: 20px; +} + +.chair-details { + list-style: none; + margin-bottom: 24px; +} + +.chair-details li { + display: flex; + align-items: center; + gap: 12px; + margin-bottom: 24px; +} + +.chair-details li:last-child { + margin-bottom: 0; +} + +.chair-icon { + stroke: var(--MainColor); + width: 24px; + height: 24px; +} + +.chair-price { + display: flex; + justify-content: space-between; + font-size: 20px; +} + +footer { + margin-bottom: 48px; + font-size: 14px; + color: #868e96; +} diff --git a/projectfolder/Fundies/content.txt b/projectfolder/Fundies/content.txt new file mode 100644 index 000000000..ae01eb723 --- /dev/null +++ b/projectfolder/Fundies/content.txt @@ -0,0 +1,34 @@ +📘 The Code Magazine + +The Basic Language of the Web: HTML + +Posted by Laura Jones on Monday, June 21st 2027 + +All modern websites and web applications are built using three fundamental technologies: HTML, CSS and JavaScript. These are the languages of the web. + +In this post, let's focus on HTML. We will learn what HTML is all about, and why you too should learn it. + +What is HTML? + +HTML stands for HyperText Markup Language. It's a markup language that web developers use to structure and describe the content of a webpage (not a programming language). + +HTML consists of elements that describe different types of content: paragraphs, links, headings, images, video, etc. Web browsers understand HTML and render HTML code as websites. + +In HTML, each element is made up of 3 parts: + +The opening tag +The closing tag +The actual element +You can learn more at the MDN Web Docs. + +Why should you learn HTML? + +There are countless reasons for learning the fundamental language of the web. Here are 5 of them: + +To be able to use the fundamental web dev language +To hand-craft beautiful websites instead of relying on tools like Worpress or Wix +To build web applications +To impress friends +To have fun 😃 + +Hopefully you learned something new here. See you next time! \ No newline at end of file diff --git a/projectfolder/Fundies/css/shopStyle.css b/projectfolder/Fundies/css/shopStyle.css new file mode 100644 index 000000000..6fffd2bc0 --- /dev/null +++ b/projectfolder/Fundies/css/shopStyle.css @@ -0,0 +1,166 @@ +* { + margin: 0; + padding: 0; + box-sizing: border-box; +} + +body { + font-family: sans-serif; + line-height: 1.4; +} + +.clearfix::after { + content: ''; + display: block; + clear: both; +} + +.product-img { +} + +/* PRODUCT */ +.product { + display: grid; + grid-template-columns: 250px 1fr 1fr; + column-gap: 40px; + border: 4px solid black; + width: 825px; + margin: 50px auto; + position: relative; +} + +.product-title { + grid-column: 1 /-1; + text-align: center; + font-size: 22px; + text-transform: uppercase; + background-color: #f7f7f7; + padding: 15px; +} + +/* PRODUCT INFORMATION */ +.product-info { + /* (825 - 8 - 250 - 80) / 2 */ + /* width: 243px; */ + flex: 1; + margin-top: 20px; +} + +.product-price { + display: flex; + justify-content: space-between; + align-items: center; + margin-bottom: 20px; +} + +.price { + font-size: 24px; +} + +.shipping { + font-size: 12px; + text-transform: uppercase; + font-weight: bold; + color: #777; +} + +.sale { + background-color: #ec2f2f; + color: #fff; + font-size: 12px; + text-transform: uppercase; + font-weight: bold; + letter-spacing: 2px; + padding: 7px 15px; + display: inline-block; + position: absolute; + top: -17px; + left: -38px; + + /* width: 40px; + text-align: center; */ +} + +.product-description { + margin-bottom: 10px; +} + +.more-info:link, +.more-info:visited { + color: black; + margin-bottom: 30px; + display: inline-block; +} + +.more-info:hover, +.more-info:active { + text-decoration: none; +} + +.product-colors { + display: flex; + gap: 10px; +} + +.color { + background-color: #000; + height: 22px; + width: 22px; +} + +.color-blue { + background-color: #2f6ee2; +} +.color-red { + background-color: #ec2f2f; +} +.color-yellow { + background-color: #f0bf1e; +} +.color-green { + background-color: #90cc20; +} +.color-brown { + background-color: #885214; +} + +/* PRODUCT DETAILS */ +.product-details { + /* width: 243px; */ + margin-top: 20px; + flex: 1; +} + +.details-title { + text-transform: uppercase; + font-size: 16px; + margin-bottom: 15px; +} + +.details-list { + list-style: square; + margin-left: 20px; +} + +.details-list li { + margin-bottom: 10px; +} + +/* BUTTON */ +.add-cart { + grid-column: 1 / -1; + background-color: #000; + border: none; + color: #fff; + font-size: 20px; + text-transform: uppercase; + cursor: pointer; + padding: 15px; + width: 100%; + border-top: 4px solid black; +} + +.add-cart:hover { + color: #000; + background-color: #fff; +} diff --git a/projectfolder/Fundies/css/style.css b/projectfolder/Fundies/css/style.css new file mode 100644 index 000000000..4c7c0536e --- /dev/null +++ b/projectfolder/Fundies/css/style.css @@ -0,0 +1,373 @@ +/* Global reset, this resets everything to a starting point of 0 so you can customize the padding and margin at an individual level */ +* { + margin: 0; + padding: 0; + box-sizing: border-box; +} + +body { + border-top: 5px solid #1098ad; + color: #444; + font-family: poppins; + position: relative; +} + +.container { + width: 1200px; + /* margin-left: auto; + margin-right: auto; */ + margin: 0 auto; +} + +nav a:link { + font-size: 18px; +} + +article { + /* margin-bottom: 60px; */ +} +.main-header { + background-color: #f7f7f7; + /* padding: 20px; + padding-left: 40px; + padding-right: 40px; */ + padding: 20px 40px; + /* margin-bottom: 60px; */ + /* height: 80px; */ +} + +.post-header { + margin-bottom: 40px; +} + +aside { + background-color: #f7f7f7; + border-top: 5px solid #1098ad; + border-bottom: 5px solid #1098ad; + padding: 50px 40px; +} + +/* SMALLER ELEMENTS */ + +h1, +h2, +h3 { + color: #1098ad; +} + +h1 { + font-size: 26px; + text-transform: uppercase; + font-style: italic; +} + +h2 { + font-size: 40px; + position: relative; + margin-bottom: 30px; +} + +h3 { + font-size: 30px; + margin-bottom: 20px; + margin-top: 40px; +} +h4 { + font-size: 20px; + text-transform: uppercase; + text-align: center; + margin-bottom: 30px; +} +p { + font-size: 22px; + line-height: 1.5; + margin-bottom: 15px; +} + +ul, +ol { + margin-left: 50px; + margin-bottom: 20px; +} + +li { + font-size: 20px; + margin-bottom: 10px; +} + +/* footer p { + font-size: 16px; +} */ +/* article header p { + font-style: italic; +} */ + +#author { + font-style: italic; + font-size: 18px; +} + +#copyright { + font-style: italic; + font-size: 16px; +} + +.related-author { + font-size: 18px; + font-weight: bold; +} + +.related-list p, +li { + list-style: none; + margin: none; +} + +/* .first-li { + font-weight: bold; +} */ +/* +li:first-child { + font-weight: bold; +} */ + +li:last-child { + /* font-style: italic; */ + margin-bottom: 0px; +} +/* style based on odd number of item, odd can be changed to even or a specific number +li:nth-child(odd) { + color: red; +} +*/ + +/* +This selector selects the first child of the article, but will only color it black if its paragraph element, otherwise this does nothing. In the case of our index, the
was the first child +article p:first-child { + color: black; +} */ + +/* Styling Hyperlinks */ +/* Style a elements with an href attrivute on them*/ +a:link { + color: #1098ad; + text-decoration: none; +} + +a:visited { + /* color: #777; */ + color: #1098ad; +} + +a:hover { + color: orangered; + font-weight: bold; + text-decoration: underline orangered; +} +/* The state of actively clicking */ +a:active { + background-color: black; + font-style: italic; +} + +nav a:link { + /* background-color: orangered; + margin: 20px; + padding: 20px; + display: block; */ + margin-right: 30px; + display: inline-block; +} + +nav a:link:last-child { + margin-right: 0px; +} + +/* Resolving conflicts */ +/* +footer p { + color: blue !important; +} +*/ + +/* #copyright { + color: red; +} */ + +/* .copyright { + color: blue; +} + +.text { + color: yellow; +} + +footer p { + color: green; +} */ + +/* In this situation, this falls to the hierarchy of importance. ID (#) will always have priority over classes (.) and child elements (footer p). In a situation where both have the same hierarchy (the case with .copyright and .text) then the last one will become the priority, in this case the text became yellow instead of blue + +Priority List 1 -> 10 +High to Low +1 -> !important +2 -> inline styling +3 -> # +4 -> . +5 -> child element + +*/ +.post-img { + width: 100%; + height: auto; +} + +button { + font-size: 22px; + padding: 20px; + cursor: pointer; + position: absolute; + bottom: 50px; + right: 50px; +} + +h1::first-letter { + font-style: normal; + margin-right: 5px; +} + +h2::after { + content: 'TOP'; + background-color: #ffe70e; + color: black; + font-size: 16px; + font-weight: bold; + display: inline-block; + padding: 5px 10px; + position: absolute; + top: -10px; + right: -25px; +} + +/* Floats + +.author-img { + float: left; + margin-bottom: 20px; +} + +.author { + float: left; + margin-top: 10px; + margin-left: 20px; +} + +h1 { + float: left; +} + +nav { + float: right; +} + +.clear { + clear: both; +} + +.clearfix::after { + clear: both; + content: ''; + display: block; +} + +article { + width: 825px; + float: left; +} +aside { + width: 300px; + float: right; +} +footer { + clear: both; +} */ + +/* Flex box */ +.main-header { + display: flex; + align-items: center; + justify-content: space-between; +} + +.author-box { + display: flex; + align-items: center; + margin-bottom: 15px; +} +.author { + margin-bottom: 0px; + margin-left: 15px; +} + +.related-post { + display: flex; + align-items: center; + gap: 20px; + margin-bottom: 30px; +} + +.related-link:link { + font-size: 17px; + font-weight: bold; + font-style: normal; + margin-bottom: 5px; + display: block; +} + +.related-author { + margin-bottom: 0px; + font-size: 14px; + font-weight: normal; + font-style: italic; +} +/* FlexBox layout */ +/* .row { + display: flex; + align-items: flex-start; + gap: 75px; + margin-bottom: 60px; +} + +article { + + flex: 1; + margin-bottom: 0px; +} + +aside { + flex: 0 0 300px; +} */ + +/* CSS Grid layout */ +.container { + display: grid; + /* If you only use columns, then the row sizes are to the lengh of the container */ + grid-template-columns: 1fr 300px; + + column-gap: 75px; + row-gap: 60px; + align-items: start; +} + +.main-header { + grid-column: 1 / -1; +} + +article { +} + +aside { +} +footer { + grid-column: 1 /-1; +} diff --git a/projectfolder/Fundies/imgs/challenges.jpg b/projectfolder/Fundies/imgs/challenges.jpg new file mode 100644 index 000000000..319f22da5 Binary files /dev/null and b/projectfolder/Fundies/imgs/challenges.jpg differ diff --git a/projectfolder/Fundies/imgs/laura-jones.jpg b/projectfolder/Fundies/imgs/laura-jones.jpg new file mode 100644 index 000000000..7830c94c6 Binary files /dev/null and b/projectfolder/Fundies/imgs/laura-jones.jpg differ diff --git a/projectfolder/Fundies/imgs/post-img.jpg b/projectfolder/Fundies/imgs/post-img.jpg new file mode 100644 index 000000000..df3005e63 Binary files /dev/null and b/projectfolder/Fundies/imgs/post-img.jpg differ diff --git a/projectfolder/Fundies/imgs/related-1.jpg b/projectfolder/Fundies/imgs/related-1.jpg new file mode 100644 index 000000000..376e2e7b3 Binary files /dev/null and b/projectfolder/Fundies/imgs/related-1.jpg differ diff --git a/projectfolder/Fundies/imgs/related-2.jpg b/projectfolder/Fundies/imgs/related-2.jpg new file mode 100644 index 000000000..0e9e7ea18 Binary files /dev/null and b/projectfolder/Fundies/imgs/related-2.jpg differ diff --git a/projectfolder/Fundies/imgs/related-3.jpg b/projectfolder/Fundies/imgs/related-3.jpg new file mode 100644 index 000000000..9c5723b71 Binary files /dev/null and b/projectfolder/Fundies/imgs/related-3.jpg differ diff --git a/projectfolder/Fundies/index.html b/projectfolder/Fundies/index.html new file mode 100644 index 000000000..b9a9a7a60 --- /dev/null +++ b/projectfolder/Fundies/index.html @@ -0,0 +1,175 @@ + + + + + The Basic Language of The Web: HTML + + + + + +
+
+ +

📘 The Code Magazine

+ + +
+ + +
+ + +
+
+

The Basic Langauge of The Web: HTML

+ +
+ the person who wrote this +

+ Posted by Laura Jones on Monday, June 21st 2027 +

+
+
+ + This is the voice of Satan +
+

+ All modern websites and web applications are built using three + fundamental technologies: HTML, CSS and JavaScript. These are + the languages of the web. +

+

+ In this post, let's focus on HTML. We will learn what HTML is all + about, and why you too should learn it. +

+

What is HTML?

+

+ HTML stands for + HyperText Markup + Language. It's a markup language that web developers + use to structure and describe the content of a webpage (not a + programming language). +

+

+ HTML consists of elements that describe different types of content: + paragraphs, links, headings, images, video, etc. Web browsers + understand HTML and render HTML code as websites. +

+

In HTML, each element is made up of 3 parts:

+
    +
  1. The opening tag
  2. +
  3. The closing tag
  4. +
  5. The actual element
  6. +
  7. You can learn more at the MDN Web Docs.
  8. +
+ +

+ You can learn more at the + MDN Web Docs +

+ +

Why should you learn HTML

+ +

+ There are countless reasons for learning the fundamental language of + the web. Here are 5 of them: +

+ +
    +
  • + To be able to use the fundamental web dev language +
  • +
  • + To hand-craft beautiful websites instead of relying on tools like + Worpress or Wix +
  • +
  • To build web applications
  • +
  • To impress friends To have fun 😃
  • +
+

Hopefully you learned something new here. See you next time!

+
+ + + +
+ +
+
+ + diff --git a/projectfolder/Fundies/pages/blog.html b/projectfolder/Fundies/pages/blog.html new file mode 100644 index 000000000..82406648e --- /dev/null +++ b/projectfolder/Fundies/pages/blog.html @@ -0,0 +1,9 @@ + + + + BLOGS + Back to main + +

BLOG

+ + diff --git a/projectfolder/Fundies/pages/challenges.html b/projectfolder/Fundies/pages/challenges.html new file mode 100644 index 000000000..3781c0ee1 --- /dev/null +++ b/projectfolder/Fundies/pages/challenges.html @@ -0,0 +1,58 @@ + + + + + Challenge 2 - Converse Shoe thingy + + + +
+
+

Converse Chuck Taylor All Star Low Top

+ + Chuck Taylor All Star Shoe +
+
+

$65.00

+

Free shipping

+
+

Sale

+ +

+ Ready to dress up or down, these classic canvas Chucks are an + everyday wardrobe staple. +

+ More information → + +
+
+
+
+
+
+
+
+
+ +
+

Product details

+
    +
  • Lightweight, durable canvas sneaker
  • +
  • Lightly padded footbed for added comfort
  • +
  • Iconic Chuck Taylor ankle patch.
  • +
+
+ + +
+
+ + diff --git a/projectfolder/Fundies/pages/css-grid.html b/projectfolder/Fundies/pages/css-grid.html new file mode 100644 index 000000000..4903d8344 --- /dev/null +++ b/projectfolder/Fundies/pages/css-grid.html @@ -0,0 +1,127 @@ + + + + + + + CSS Grid + + + +
+
(1) HTML
+
(2) and
+
(3) CSS
+
(4) are
+
(5) amazing
+
(6) languages
+
(7) to
+
(8) learn
+
+ +
+
(1)
+
(3)
+
(4)
+
(5)
+
(6)
+
(7)
+
+ + diff --git a/projectfolder/Fundies/pages/flexbox.html b/projectfolder/Fundies/pages/flexbox.html new file mode 100644 index 000000000..be731b49f --- /dev/null +++ b/projectfolder/Fundies/pages/flexbox.html @@ -0,0 +1,87 @@ + + + + + + + Flexbox + + + +
+
HTML
+
and
+
CSS
+
are
+
amazing
+ +
+ + diff --git a/starter/01-Test/index.html b/starter/01-Test/index.html new file mode 100644 index 000000000..5d754f580 --- /dev/null +++ b/starter/01-Test/index.html @@ -0,0 +1,13 @@ + + + + + + + My millions attempt at a webpage + + +

Hello, world!

+

My name is Michael, and this is an attempt at a webpage and shit like that :D

+ + diff --git a/starter/04-CSS-Layouts/css-grid.html b/starter/04-CSS-Layouts/css-grid.html index e2daa6d42..5e6d35be2 100644 --- a/starter/04-CSS-Layouts/css-grid.html +++ b/starter/04-CSS-Layouts/css-grid.html @@ -1,80 +1,87 @@ - - - - - CSS Grid - - - -
-
(1) HTML
-
(2) and
-
(3) CSS
-
(4) are
-
(5) amazing
-
(6) languages
-
(7) to
-
(8) learn
-
+ width: 1000px; + height: 600px; -
-
(1)
-
(3)
-
(4)
-
(5)
-
(6)
-
(7)
-
- + /* CSS GRID */ + } + + + +
+ +
+ ; +
+
(1) HTML
+
(2) and
+
(3) CSS
+
(4) are
+
(5) amazing
+
(6) languages
+
(7) to
+
(8) learn
+
+ +
+
(1)
+
(3)
+
(4)
+
(5)
+
(6)
+
(7)
+
+