From 7211912f8005ab55ea71528f128de5b2e939404a Mon Sep 17 00:00:00 2001 From: AleleChi Date: Thu, 19 Oct 2023 20:39:04 +0100 Subject: [PATCH 1/5] solved lab --- index.html | 102 +++++++++++++++++++-- style/style.css | 230 ++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 323 insertions(+), 9 deletions(-) create mode 100644 style/style.css diff --git a/index.html b/index.html index a2d9c01..3717a45 100644 --- a/index.html +++ b/index.html @@ -1,9 +1,93 @@ -NPM Clone Nifty Penguin Magic npm Enterprise Products Solutions Resources Docs Support Search Join Log In Build amazing -things Essential JavaScript development tools that help you go to market faster and build powerful applications using -modern open source code. See plans Join for free Bring the best of open source to your company npm is the tool used by -over 11,000,000 JavaScript developers around the world. Your developers already use it. Your company depends on it. -Create an Org and get more out of the tools your team already knows and loves. Zero configuration Create an org, add -your team, and start collaborating. Nothing to configure, set up, or manage. Team management Control who has access to -what modules within your team namespace using straightforward team management capabilities. Familiar features npm Orgs -has 100% parity with all the public npm registry features your developers already use. npm audit Enjoy the security -auditing features built into the npm client, a zero-friction way to make open source software safer. Create an Org + + + + + + + Lab HTML Exercise + + +
+
+
+ black heart + Nifty Penguin Magic +
+ +
+ +
+ site-log +
+ magnifying-glass + +
+ + +
+ +
+ +
+

Build amazing things

+
+ Essential JavaScript development tools that help you
go to market faster and build powerful applications
using modern open source code. +
+
+ + Join for Free +
+
+ +
+
+ triangle-hexagon +
+

Bring the best of open source to your company

+
+ npm is the tool used by over 11,000,000 JavaScript developers
around the world. Your developers already use it. Your company depends on it. Create an Org and get more out of the tools your
team already knows and loves. +
+
+ +
+
+ zero-configuration +

Zero Configuration

+

Create an org, add your team, and start collaborating. Nothing to configure, set up, or manage.

+
+
+ team-management +

Team Management

+

Control who has access to what modules within your team namespace using straightforward team management capabilities.

+
+
+ familiar-features +

Familiar Features

+

npm Orgs has 100% parity with all the public npm registry features your developers already use.

+
+
+ npm-audit +

npm audit

+

Enjoy the security auditing features built into the npm client, a zero-friction way to make open source software safer.

+
+ +
+
Create an Org
+ + diff --git a/style/style.css b/style/style.css new file mode 100644 index 0000000..1d34928 --- /dev/null +++ b/style/style.css @@ -0,0 +1,230 @@ +@import url(https://fonts.google.com); +body{ + font-family: 'Poppins'; +} + +header > div{ + padding: 0 25px; + display: flex; + justify-content: space-between; + align-items: center; + border-bottom: 1px solid light; +} +nav{ + width: 600px; +} +nav ul{ + list-style: none; + display: flex; + justify-content: space-between; + align-items: center; +} +nav a{ + text-decoration: none; + color: black; +} +.blackHeart{ + width: 20px; + margin-right: 1rem; +} + +/* Styles for the search input content */ +.search-input-content { + display: flex; + justify-content: space-between; + align-items: center; + padding: 10px 25px; + border-bottom: 1px solid light; + background-color: #faf7f7; + color: #fff; +} + +/* Styles for the logo */ +.search-input-content .site-log { + width: 80px; + margin-right: 1rem; +} + +/* Styles for the search input section */ +#search-iput { + display: flex; + align-items: center; + flex: 1; +} + +/* Styles for the magnifying glass image */ +#search-iput .site-log { + width: 30px; + margin-right: 1rem; +} + + + +#search-iput .search input[type="text"] { + flex: 2; + padding: 10px; + border: none; + border-radius: 5px; + +} + +#search-iput button { + background-color: red; + color: #fff; + border: none; + padding: 8px 15px; + border-radius: 5px; + +} + +/* Style for the "Join" link */ +#header-links a { + text-decoration: none; + color: black; + border: 1px solid black; + padding: 5px 10px; + border-radius: 5px; + margin-right: 1rem; +} + +/* Style for the "Login" link */ +.header-links a { + text-decoration: none; + color: black; + border: 1px solid black; + padding: 5px 10px; + border-radius: 5px; + margin-left: 1rem; +} + + +/* Center the text within the main section */ +.main { + text-align: center; + padding: 120px; + background-color: rgba(232,217,217,.3); + background-size: cover; + background-position: center center; + background-repeat: no-repeat; + max-width: 1920px; + height: 600px; + +} + +/* Style the heading */ +.main h1 { + font-size: 60px; + margin-bottom: 10px; + padding: 20px; + + +} + +/* Style the article content */ +.main .article { + font-size: 18px; + margin-bottom: 20px; + padding: 20px; +} + +/* Style the button */ +.main button { + background-color: red; + color: #fff; + border: none; + padding: 10px 20px; + border-radius: 5px; + margin-right: 10px; + box-shadow: 8px 8px 0 rgba(251, 59, 73, 0.2); /* Add the box shadow */ +} + + +/* Style the "Join for Free" link */ +.main a { + text-decoration: none; + color: black; + margin-left: 10px; +} + +/* Center the content within the section */ +section { + text-align: center; + padding: 20px; +} +/* Style the container of section1 */ +.section1 { + display: flex; + justify-content: flex-start; /* Start from the left */ + align-items: center; + margin: 20px 0; /* Fine-tune the margin as needed */ + + /* Add a background color with skew transformation */ + background-color: rgba(255, 204, 53, 0.4); + transform: skew(-9deg, 0deg); + font-style: italic; + padding: 20px; /* Add padding to adjust the position of elements */ +} + +/* Style the image within section1 */ +.section1 img { + max-width: 200px; + transform: skew(9deg, 0deg); /* Apply the skew transformation to the image */ +} + +/* Style the heading within section1 */ +.section1 h2 { + font-size: 24px; + margin: 0; + color: #333; /* Text color */ +} + +/* Style the article content within section1 */ +.section1 .article { + font-size: 16px; + margin: 0; + color: #333; /* Text color */ +} + +/* Container for the flex items */ +.flex { + display: flex; + justify-content: space-between; + align-items: flex-start; + flex-wrap: wrap; + gap: 20px; +} + +/* Individual flex items */ +.flexi { + flex: 1; + text-align: center; + border: 1px solid red; + padding: 20px; + position: relative; +} + +/* Images floated to the top left */ +.flexi .flexi-image img { + width: 40px; + position: absolute; + top: 0; + left: 0; + margin: 10px; +} + +/* Red headings */ +.flexi h2 { + color: red; +} + +/* Black button */ +.black-button { + text-align: center; + background-color: black; + color: white; + padding: 10px 20px; + width: 150px; + margin: 20px auto; + border: none; + border-radius: 5px; +} From 858d48a119543176c8546053279433647f9e2b41 Mon Sep 17 00:00:00 2001 From: AleleChi Date: Thu, 19 Oct 2023 20:57:00 +0100 Subject: [PATCH 2/5] solved lab --- index.html | 8 ++++---- style/style.css | 18 ++++++++++++------ 2 files changed, 16 insertions(+), 10 deletions(-) diff --git a/index.html b/index.html index 3717a45..0b57dcb 100644 --- a/index.html +++ b/index.html @@ -54,11 +54,11 @@

Build amazing things

Join for Free - +
+ triangle-hexagon +
-
- triangle-hexagon -
+

Bring the best of open source to your company

npm is the tool used by over 11,000,000 JavaScript developers
around the world. Your developers already use it. Your company depends on it. Create an Org and get more out of the tools your
team already knows and loves. diff --git a/style/style.css b/style/style.css index 1d34928..945bd25 100644 --- a/style/style.css +++ b/style/style.css @@ -154,23 +154,29 @@ section { /* Style the container of section1 */ .section1 { display: flex; - justify-content: flex-start; /* Start from the left */ + justify-content: flex-start; align-items: center; - margin: 20px 0; /* Fine-tune the margin as needed */ + margin: 20px 0; /* Add a background color with skew transformation */ background-color: rgba(255, 204, 53, 0.4); transform: skew(-9deg, 0deg); font-style: italic; - padding: 20px; /* Add padding to adjust the position of elements */ + padding: 20px; } /* Style the image within section1 */ -.section1 img { - max-width: 200px; - transform: skew(9deg, 0deg); /* Apply the skew transformation to the image */ +.hex-image { + display: flex; + justify-content: center; + align-items: center; + height: 100%; } +.hex-image img { + max-width: 200px; + padding: 50px; +} /* Style the heading within section1 */ .section1 h2 { font-size: 24px; From fb556295caf2ea0c1f15e082e52e931e6c6fad3c Mon Sep 17 00:00:00 2001 From: AleleChi Date: Thu, 19 Oct 2023 21:17:10 +0100 Subject: [PATCH 3/5] changes to css --- style/style.css | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/style/style.css b/style/style.css index 945bd25..da2b9e8 100644 --- a/style/style.css +++ b/style/style.css @@ -30,6 +30,7 @@ nav a{ /* Styles for the search input content */ .search-input-content { + background-color: rgba(0,0,0,.05); display: flex; justify-content: space-between; align-items: center; @@ -47,6 +48,7 @@ nav a{ /* Styles for the search input section */ #search-iput { + background-color: rgba(0,0,0,.05); display: flex; align-items: center; flex: 1; @@ -54,7 +56,7 @@ nav a{ /* Styles for the magnifying glass image */ #search-iput .site-log { - width: 30px; + width: 40px; margin-right: 1rem; } @@ -62,14 +64,15 @@ nav a{ #search-iput .search input[type="text"] { flex: 2; - padding: 10px; + padding: 15px; border: none; border-radius: 5px; + } #search-iput button { - background-color: red; + background-color: #fb3e44; color: #fff; border: none; padding: 8px 15px; From 4966a31b1e7cf7138cd1f5c5bf162c9f2871b7c8 Mon Sep 17 00:00:00 2001 From: AleleChi Date: Thu, 19 Oct 2023 21:45:31 +0100 Subject: [PATCH 4/5] additional changes --- index.html | 4 ++-- style/style.css | 20 +++++++++++++++++--- 2 files changed, 19 insertions(+), 5 deletions(-) diff --git a/index.html b/index.html index 0b57dcb..2a924ef 100644 --- a/index.html +++ b/index.html @@ -28,9 +28,9 @@
site-log
- magnifying-glass +
diff --git a/style/style.css b/style/style.css index da2b9e8..f34bbb6 100644 --- a/style/style.css +++ b/style/style.css @@ -38,6 +38,7 @@ nav a{ border-bottom: 1px solid light; background-color: #faf7f7; color: #fff; + box-sizing: border-box; } /* Styles for the logo */ @@ -56,7 +57,7 @@ nav a{ /* Styles for the magnifying glass image */ #search-iput .site-log { - width: 40px; + width: 30px; margin-right: 1rem; } @@ -64,9 +65,15 @@ nav a{ #search-iput .search input[type="text"] { flex: 2; - padding: 15px; + padding: 15px; border: none; border-radius: 5px; + background-image: url(../images/magnifying-glass.png); + background-position: 10px 10px; + background-size: 20px; + background-repeat: no-repeat; + + } @@ -77,9 +84,16 @@ nav a{ border: none; padding: 8px 15px; border-radius: 5px; + box-sizing: border-box; + resize: none; + height: 40px; + width: 100px; } - +::placeholder{ + padding: 40px; + font-size: 20px; +} /* Style for the "Join" link */ #header-links a { text-decoration: none; From b5ece69e59a5bba2caca6bb206d1ec36afc5ff58 Mon Sep 17 00:00:00 2001 From: AleleChi Date: Thu, 19 Oct 2023 21:48:56 +0100 Subject: [PATCH 5/5] changes --- style/style.css | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/style/style.css b/style/style.css index f34bbb6..bfc5797 100644 --- a/style/style.css +++ b/style/style.css @@ -107,8 +107,7 @@ nav a{ /* Style for the "Login" link */ .header-links a { text-decoration: none; - color: black; - border: 1px solid black; + color: black; padding: 5px 10px; border-radius: 5px; margin-left: 1rem;