From b8cadc1e7215ac9515558857f67e26117f9280c0 Mon Sep 17 00:00:00 2001 From: satyam-seth Date: Fri, 25 Mar 2022 21:00:25 +0530 Subject: [PATCH 1/8] make simple `html skeleton` close #3 --- index.html | 57 +++++++++++++++++++++++++++++++++++++++++++----------- 1 file changed, 46 insertions(+), 11 deletions(-) diff --git a/index.html b/index.html index 34e4c23..fe08f22 100644 --- a/index.html +++ b/index.html @@ -1,13 +1,48 @@ - - - - - - CSS Utilities - - - Home Page - - + + + + + + + CSS Utilities + + + +

Beautiful CSS box-shadow examples

+
+
1
+
2
+
3
+
4
+
5
+
6
+
7
+
8
+
9
+
10
+
11
+
12
+
13
+
14
+
15
+
16
+
17
+
18
+
19
+
20
+
21
+
22
+
23
+
24
+
25
+
26
+
27
+
28
+
29
+
30
+
+ + + \ No newline at end of file From 02f92a629752db62d67d766c6e289c8e7fc80583 Mon Sep 17 00:00:00 2001 From: satyam-seth Date: Fri, 25 Mar 2022 21:06:02 +0530 Subject: [PATCH 2/8] add `import` statement in `style.scss` --- scss/abstracts/__variables.scss | 4 ++-- scss/style.scss | 15 +++------------ 2 files changed, 5 insertions(+), 14 deletions(-) diff --git a/scss/abstracts/__variables.scss b/scss/abstracts/__variables.scss index df1c353..29743f4 100644 --- a/scss/abstracts/__variables.scss +++ b/scss/abstracts/__variables.scss @@ -1,4 +1,4 @@ /// Colors // body color -$body-color: #fff; -$body-bg-color: #000; +$body-color: gray; +$body-bg-color: #fff; diff --git a/scss/style.scss b/scss/style.scss index bb873b9..57ff07e 100644 --- a/scss/style.scss +++ b/scss/style.scss @@ -1,12 +1,3 @@ -* { - margin: 0; - padding: 0; - box-sizing: border-box; -} - -body { - width: 100vw; - height: 100vh; - color: white; - background-color: black; -} +@import "./abstracts/_variables"; +@import "./base/reset"; +@import "./pages/home"; From df983388ab2b5d578d1a3b84924d046d99843506 Mon Sep 17 00:00:00 2001 From: satyam-seth Date: Fri, 25 Mar 2022 21:11:06 +0530 Subject: [PATCH 3/8] add flex and grid `mixins` --- scss/abstracts/_mixins.scss | 22 +++++++++++++++++++ .../{__variables.scss => _variables.scss} | 0 scss/style.scss | 3 ++- 3 files changed, 24 insertions(+), 1 deletion(-) create mode 100644 scss/abstracts/_mixins.scss rename scss/abstracts/{__variables.scss => _variables.scss} (100%) diff --git a/scss/abstracts/_mixins.scss b/scss/abstracts/_mixins.scss new file mode 100644 index 0000000..3b114ff --- /dev/null +++ b/scss/abstracts/_mixins.scss @@ -0,0 +1,22 @@ +// Flex +@mixin flex-between { + display: flex; + justify-content: space-between; +} + +@mixin flex-column { + display: flex; + flex-direction: column; +} + +@mixin flex-center { + display: flex; + align-items: center; + justify-content: center; +} + +// Grid +@mixin grid-center { + display: grid; + place-items: center; +} diff --git a/scss/abstracts/__variables.scss b/scss/abstracts/_variables.scss similarity index 100% rename from scss/abstracts/__variables.scss rename to scss/abstracts/_variables.scss diff --git a/scss/style.scss b/scss/style.scss index 57ff07e..31ad376 100644 --- a/scss/style.scss +++ b/scss/style.scss @@ -1,3 +1,4 @@ -@import "./abstracts/_variables"; +@import "./abstracts/variables"; +@import "./abstracts/mixins"; @import "./base/reset"; @import "./pages/home"; From b5b0c25f367faa19a6d69f807a2e1fb392ef0f1a Mon Sep 17 00:00:00 2001 From: satyam-seth Date: Fri, 25 Mar 2022 21:46:14 +0530 Subject: [PATCH 4/8] add minimal scss to create grid `layout` and fill random `colors` --- index.html | 64 ++++++++++++++++++---------------- scss/abstracts/_variables.scss | 2 +- scss/base/_reset.scss | 2 +- scss/pages/_home.scss | 28 +++++++++++++++ 4 files changed, 63 insertions(+), 33 deletions(-) diff --git a/index.html b/index.html index fe08f22..de49fa3 100644 --- a/index.html +++ b/index.html @@ -10,38 +10,40 @@ -

Beautiful CSS box-shadow examples

-
1
-
2
-
3
-
4
-
5
-
6
-
7
-
8
-
9
-
10
-
11
-
12
-
13
-
14
-
15
-
16
-
17
-
18
-
19
-
20
-
21
-
22
-
23
-
24
-
25
-
26
-
27
-
28
-
29
-
30
+

Beautiful CSS box-shadow examples

+
+
1
+
2
+
3
+
4
+
5
+
6
+
7
+
8
+
9
+
10
+
11
+
12
+
13
+
14
+
15
+
16
+
17
+
18
+
19
+
20
+
21
+
22
+
23
+
24
+
25
+
26
+
27
+
28
+
29
+
30
+
diff --git a/scss/abstracts/_variables.scss b/scss/abstracts/_variables.scss index 29743f4..937c605 100644 --- a/scss/abstracts/_variables.scss +++ b/scss/abstracts/_variables.scss @@ -1,4 +1,4 @@ /// Colors // body color -$body-color: gray; +$body-color: black; $body-bg-color: #fff; diff --git a/scss/base/_reset.scss b/scss/base/_reset.scss index 4ace5c1..c53d568 100644 --- a/scss/base/_reset.scss +++ b/scss/base/_reset.scss @@ -5,7 +5,7 @@ } body { - width: 100vw; + width: 100%; height: 100vh; color: $body-color; background-color: $body-bg-color; diff --git a/scss/pages/_home.scss b/scss/pages/_home.scss index e69de29..7cb0e2c 100644 --- a/scss/pages/_home.scss +++ b/scss/pages/_home.scss @@ -0,0 +1,28 @@ +.container { + padding: 25px; + margin-bottom: 100px; + width: 100%; + min-height: 100%; + @include grid-center; + gap: 50px; + background-color: red; + h1 { + font-size: 4vmax; + text-align: center; + } + .box-container { + width: 100%; + min-height: 100%; + @include grid-center; + gap: 50px; + grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); + .box { + width: 150px; + height: 150px; + @include grid-center; + font-size: 2vmax; + border-radius: 10%; + background-color: yellowgreen; + } + } +} From 944a40dafa8a6f84f94ee0931634cc8249fadb22 Mon Sep 17 00:00:00 2001 From: satyam-seth Date: Fri, 25 Mar 2022 22:48:55 +0530 Subject: [PATCH 5/8] prepare data for `shadows` --- data_cleaning.py | 328 +++++++++++++++++++++++++++++ index.html | 1 + scss/pages/_home.scss | 2 - shadows.json | 467 ++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 796 insertions(+), 2 deletions(-) create mode 100644 data_cleaning.py create mode 100644 shadows.json diff --git a/data_cleaning.py b/data_cleaning.py new file mode 100644 index 0000000..53b6462 --- /dev/null +++ b/data_cleaning.py @@ -0,0 +1,328 @@ +data=[ + "rgba(149, 157, 165, 0.2) 0 8px 24px", + "0 7px 29px 0 rgba(100,100,111,.2)", + "rgba(0,0,0,.15) 1.95px 1.95px 2.6px", + "0px 5px 15px rgba(0, 0, 0, 0.35)", + { + "boxShadow": "rgba(0, 0, 0, 0.16) 0 1px 4px", + "credits": "3drops" + }, + "rgba(0, 0, 0, 0.24) 0 3px 8px", + "0 2px 8px 0 rgba(99,99,99,.2)", + "rgba(0, 0, 0, 0.16) 0 1px 4px, #333 0 0 0 3px", + "rgba(0, 0, 0, 0.02) 0 1px 3px 0, rgba(27, 31, 35, 0.15) 0 0 0 1px", + { + "boxShadow": "rgba(0, 0, 0, 0.1) 0 4px 12px", + "credits": "Sketch" + }, + "rgba(0, 0, 0, 0.25) 0px 54px 55px, rgba(0, 0, 0, 0.12) 0px -12px 30px, rgba(0, 0, 0, 0.12) 0px 4px 6px, rgba(0, 0, 0, 0.17) 0px 12px 13px, rgba(0, 0, 0, .09) 0px -3px 5px", + { + "boxShadow": "rgba(0, 0, 0, 0.05) 0 6px 24px 0, rgba(0, 0, 0, 0.08) 0 0 0 1px", + "credits": "Sketch" + }, + { + "boxShadow": "rgba(0, 0, 0, 0.16) 0 10px 36px 0, rgba(0, 0, 0, 0.06) 0 0 0 1px", + "credits": "Sketch" + }, + "rgba(17, 12, 46, 0.15) 0 48px 100px 0", + { + "boxShadow": "rgba(50, 50, 93, 0.25) 0 50px 100px -20px, rgba(0, 0, 0, 0.3) 0 30px 60px -30px, rgba(10, 37, 64, 0.35) 0 -2px 6px 0 inset", + "credits": "Stripe" + }, + { + "boxShadow": "rgba(255, 255, 255, 0.1) 0 1px 1px 0 inset, rgba(50, 50, 93, 0.25) 0 50px 100px -20px, rgba(0, 0, 0, 0.3) 0 30px 60px -30px", + "credits": "Stripe" + }, + { + "boxShadow": "rgba(50, 50, 93, 0.25) 0 50px 100px -20px, rgba(0, 0, 0, 0.3) 0 30px 60px -30px", + "credits": "Stripe" + }, + { + "boxShadow": "0 50px 100px -20px rgba(50,50,93,.25), 0 30px 60px -30px rgba(0,0,0,.3)", + "credits": "Stripe" + }, + { + "boxShadow": "0 13px 27px -5px rgba(50,50,93,.25), 0 8px 16px -8px rgba(0,0,0,.3)", + "credits": "Stripe" + }, + { + "boxShadow": "0 2px 5px -1px rgba(50,50,93,.25), 0 1px 3px -1px rgba(0,0,0,.3)", + "credits": "Stripe" + }, + { + "boxShadow": "0 20px 30px -10px #26394d", + "credits": "Stripe" + }, + { + "boxShadow": "0 0 0 2px rgba(6,24,44,.4), 0 4px 6px -1px rgba(6,24,44,.65), inset 0 1px 0 hsla(0,0%,100%,.08)", + "credits": "Stripe" + }, + "0 6px 12px -2px rgba(50,50,93,0.25),0 3px 7px -3px rgba(0,0,0,0.3)", + "0 13px 27px -5px rgba(50,50,93,0.25),0 8px 16px -8px rgba(0,0,0,0.3)", + "0 30px 60px -12px rgba(50,50,93,0.25),0 18px 36px -18px rgba(0,0,0,0.3)", + "inset 0 30px 60px -12px rgba(50,50,93,0.25),inset 0 18px 36px -18px rgba(0,0,0,0.3)", + "0 50px 100px -20px rgba(50,50,93,0.25),0 30px 60px -30px rgba(0,0,0,0.3)", + { + "boxShadow": "0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24)", + "credits": "Material" + }, + { + "boxShadow": "0 3px 6px rgba(0,0,0,0.16), 0 3px 6px rgba(0,0,0,0.23)", + "credits": "Material" + }, + { + "boxShadow": "0 10px 20px rgba(0,0,0,0.19), 0 6px 6px rgba(0,0,0,0.23)", + "credits": "Material" + }, + { + "boxShadow": "0 14px 28px rgba(0,0,0,0.25), 0 10px 10px rgba(0,0,0,0.22)", + "credits": "Material" + }, + { + "boxShadow": "0 19px 38px rgba(0,0,0,0.30), 0 15px 12px rgba(0,0,0,0.22)", + "credits": "Material" + }, + { + "boxShadow": "rgba(60, 64, 67, 0.3) 0 1px 2px 0, rgba(60, 64, 67, 0.15) 0 2px 6px 2px", + "credits": "Material" + }, + { + "boxShadow": "rgba(60, 64, 67, 0.3) 0 1px 2px 0, rgba(60, 64, 67, 0.15) 0 1px 3px 1px", + "credits": "Material" + }, + { + "boxShadow": "0 0 0 1px rgba(0, 0, 0, 0.05)", + "credits": "Tailwind CSS" + }, + { + "boxShadow": "0 1px 2px 0 rgba(0, 0, 0, 0.05)", + "credits": "Tailwind CSS" + }, + { + "boxShadow": "0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06)", + "credits": "Tailwind CSS" + }, + { + "boxShadow": "0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)", + "credits": "Tailwind CSS" + }, + { + "boxShadow": "0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05)", + "credits": "Tailwind CSS" + }, + { + "boxShadow": "0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04)", + "credits": "Tailwind CSS" + }, + { + "boxShadow": "0 25px 50px -12px rgba(0, 0, 0, 0.25)", + "credits": "Tailwind CSS" + }, + { + "boxShadow": "inset 0 2px 4px 0 rgba(0, 0, 0, 0.06)", + "credits": "Tailwind CSS" + }, + "0 0 5px 0 rgba(0, 0, 0, 0.1),0 0 1px 0 rgba(0, 0, 0, 0.1)", + { + "boxShadow": "0 1px 2px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.07), 0 4px 8px rgba(0,0,0,0.07), 0 8px 16px rgba(0,0,0,0.07), 0 16px 32px rgba(0,0,0,0.07), 0 32px 64px rgba(0,0,0,0.07)", + "credits": "Tobias Ahlin" + }, + { + "boxShadow": "0 2px 1px rgba(0,0,0,0.09), 0 4px 2px rgba(0,0,0,0.09), 0 8px 4px rgba(0,0,0,0.09), 0 16px 8px rgba(0,0,0,0.09), 0 32px 16px rgba(0,0,0,0.09)", + "credits": "Tobias Ahlin" + }, + { + "boxShadow": "rgba(0, 0, 0, 0.2) 0 18px 50px -10px", + "credits": "feedback.fish" + }, + "rgba(0, 0, 0, 0.1) 0 10px 50px", + "rgba(0, 0, 0, 0.04) 0 3px 5px", + { + "boxShadow": "-5px 5px rgba(240, 46, 170, 0.4), -10px 10px rgba(240, 46, 170, 0.3), -15px 15px rgba(240, 46, 170, 0.2), -20px 20px rgba(240, 46, 170, 0.1), -25px 25px rgba(240, 46, 170, 0.05)", + "credits": "Alligator" + }, + { + "boxShadow": "0 5px rgba(240, 46, 170, 0.4), 0 10px rgba(240, 46, 170, 0.3), 0 15px rgba(240, 46, 170, 0.2), 0 20px rgba(240, 46, 170, 0.1), 0 25px rgba(240, 46, 170, 0.05)", + "credits": "Alligator" + }, + { + "boxShadow": "5px 5px rgba(240, 46, 170, 0.4), 10px 10px rgba(240, 46, 170, 0.3), 15px 15px rgba(240, 46, 170, 0.2), 20px 20px rgba(240, 46, 170, 0.1), 25px 25px rgba(240, 46, 170, 0.05)", + "credits": "Alligator" + }, + "rgba(0, 0, 0, 0.07) 0 1px 1px, rgba(0, 0, 0, 0.07) 0 2px 2px, rgba(0, 0, 0, 0.07) 0 4px 4px, rgba(0, 0, 0, 0.07) 0 8px 8px, rgba(0, 0, 0, 0.07) 0 16px 16px", + { + "boxShadow": "rgba(67, 71, 85, 0.27) 0 0 .25em, rgba(90, 125, 188, 0.05) 0 .25em 1em", + "credits": "pqina.nl/doka" + }, + "rgba(0,0,0,.1) 0 1px 2px 0", + { + "boxShadow": "rgba(27, 31, 35, 0.04) 0 1px 0, rgba(255, 255, 255, 0.25) 0 1px 0 inset", + "credits": "Github" + }, + { + "boxShadow": "rgba(3, 102, 214, 0.3) 0 0 0 3px", + "credits": "Github" + }, + "rgba(14, 30, 37, 0.12) 0 2px 4px 0, rgba(14, 30, 37, 0.32) 0 2px 16px 0", + { + "boxShadow": "0 12px 28px 0 rgba(0, 0, 0, 0.2),0 2px 4px 0 rgba(0, 0, 0, 0.1),inset 0 0 0 1px rgba(255, 255, 255, 0.05)", + "credits": "Facebook" + }, + { + "boxShadow": "rgba(0, 0, 0, 0.15) 0 5px 15px 0", + "credits": "Shopify" + }, + { + "boxShadow": "rgba(33, 35, 38, 0.1) 0 10px 10px -10px", + "credits": "Shopify" + }, + { + "boxShadow": "inset blue 0 0 0 2px, 10px -10px 0 -3px #fff, 10px -10px #1FC11B, 20px -20px 0 -3px #fff, 20px -20px #FFD913, 30px -30px 0 -3px #fff, 30px -30px #FF9C55, 40px -40px 0 -3px #fff, 40px -40px #FF5555", + "extra": { + "borderRadius": 0 + }, + "credits": "Fossheim" + }, + { + "boxShadow": "rgb(85, 91, 255) 0px 0px 0px 3px, rgb(31, 193, 27) 0px 0px 0px 6px, rgb(255, 217, 19) 0px 0px 0px 9px, rgb(255, 156, 85) 0px 0px 0px 12px, rgb(255, 85, 85) 0px 0px 0px 15px", + "extra": { + "borderRadius": 0 + }, + "credits": "Fossheim" + }, + { + "boxShadow": "3px 3px 6px 0px #CCDBE8 inset, -3px -3px 6px 1px rgba(255,255,255,0.5) inset", + "credits": "boxshadows.com" + }, + { + "boxShadow": "6px 2px 16px 0px rgba(136, 165, 191, 0.48) , -6px -2px 16px 0px rgba(255, 255, 255, 0.8)", + "credits": "boxshadows.com" + }, + { + "boxShadow": "0px 1px 0px rgba(17,17,26,0.1)", + "credits": "box-shadows.co" + }, + { + "boxShadow": "0px 1px 0px rgba(17,17,26,0.05), 0px 0px 8px rgba(17,17,26,0.1)", + "credits": "box-shadows.co" + }, + { + "boxShadow": "0px 0px 16px rgba(17,17,26,0.1)", + "credits": "box-shadows.co" + }, + { + "boxShadow": "0px 4px 16px rgba(17,17,26,0.05), 0px 8px 32px rgba(17,17,26,0.05)", + "credits": "box-shadows.co" + }, + { + "boxShadow": "0px 4px 16px rgba(17,17,26,0.1), 0px 8px 32px rgba(17,17,26,0.05)", + "credits": "box-shadows.co" + }, + { + "boxShadow": "0px 1px 0px rgba(17,17,26,0.1), 0px 8px 24px rgba(17,17,26,0.1), 0px 16px 48px rgba(17,17,26,0.1)", + "credits": "box-shadows.co" + }, + { + "boxShadow": "0px 4px 16px rgba(17,17,26,0.1), 0px 8px 24px rgba(17,17,26,0.1), 0px 16px 56px rgba(17,17,26,0.1)", + "credits": "box-shadows.co" + }, + { + "boxShadow": "0px 8px 24px rgba(17,17,26,0.1), 0px 16px 56px rgba(17,17,26,0.1), 0px 24px 80px rgba(17,17,26,0.1)", + "credits": "box-shadows.co" + }, + { + "boxShadow": "rgba(50, 50, 105, 0.15) 0 2px 5px 0, rgba(0, 0, 0, 0.05) 0 1px 1px 0", + "credits": "10er.app" + }, + { + "boxShadow": "0 15px 25px rgba(0, 0, 0, 0.15),0 5px 10px rgba(0, 0, 0, 0.05)", + "credits": "wip.chat" + }, + { + "boxShadow": "rgba(0,0,0,.15) 2.4px 2.4px 3.2px" + }, + { + "boxShadow": "0 3px 3px 0 rgba(0,0,0,0.15)", + "credits": "Airbnb" + }, + { + "boxShadow": "rgba(0, 0, 0, 0.08) 0 4px 12px", + "credits": "Airbnb" + }, + { + "boxShadow": "rgba(0, 0, 0, 0.15) 0 2px 8px", + "credits": "Airbnb" + }, + { + "boxShadow": "rgba(0, 0, 0, 0.18) 0 2px 4px", + "credits": "Airbnb" + }, + { + "boxShadow": "-4px 9px 25px -6px rgba(0,0,0,.1)", + "credits": "ls.graphics" + }, + { + "boxShadow": "0 60px 40px -7px rgba(0,0,0,.2)", + "credits": "ls.graphics" + }, + { + "boxShadow": "0 30px 90px rgba(0,0,0,0.4)", + "credits": "Lonely Planet" + }, + { + "boxShadow": "0 22px 70px 4px rgba(0, 0, 0, 0.56)", + "credits": "Mac" + }, + { + "boxShadow": "0px 20px 30px rgba(0, 0, 0, 0.2)", + "credits": "Mac" + }, + { + "boxShadow": "rgba(255, 255, 255, 0.2) 0px 0px 0px 1px inset, rgba(0, 0, 0, 0.9) 0px 0px 0px 1px", + "credits": "Mac" + }, + { + "boxShadow": "0 .0625em .0625em rgba(0, 0, 0, 0.25), 0 .125em .5em rgba(0, 0, 0, 0.25), inset 0 0 0 1px rgba(255, 255, 255, 0.1)", + "credits": "pqina.nl/doka" + }, + { + "boxShadow": "rgba(0,0,0,0.09) 0px 3px 12px", + "credits": "Typedream" + }, + { + "boxShadow": "inset 0px -23px 25px 0 rgba(0, 0, 0, .17), inset 0 -36px 30px 0px rgba(0, 0, 0, .15) ,inset 0 -79px 40px 0px rgba(0, 0, 0, .1), rgba(0, 0, 0, 0.06) 0px 2px 1px, rgba(0, 0, 0, 0.09) 0px 4px 2px, rgba(0, 0, 0, 0.09) 0px 8px 4px, rgba(0, 0, 0, 0.09) 0px 16px 8px, rgba(0, 0, 0, 0.09) 0px 32px 16px", + "extra": { + "borderRadius": "35px" + } + }, + "rgba(0, 0, 0, 0.45) 0 25px 20px -20px", + "0px 2px 4px rgba(0, 0, 0, .4), 0px 7px 13px -3px rgba(0, 0, 0, .3), inset 0px -3px 0px rgba(0, 0, 0, .2)", + "0 0 0 1px rgba(0, 0, 0, 0.05), inset rgb(209, 213, 219) 0 0 0 1px", + "inset 0px -50px 36px -28px rgba(0,0,0,0.35)", + { + "boxShadow": "rgba(9, 30, 66, 0.25) 0 1px 1px, rgba(9, 30, 66, 0.13) 0 0 1px 1px", + "credits": "Trello" + }, + { + "boxShadow": "rgba(9, 30, 66, 0.25) 0 4px 8px -2px, rgba(9, 30, 66, 0.08) 0 0 0 1px", + "credits": "Trello" + } +] + +final_data=[] + +for item in data: + if type(item) == str: + final_data.append({'boxShadow':item, 'credits':'fellow-developers', 'extra':''}) + elif type(item)==dict: + if 'extra' not in item: + item['extra']='' + final_data.append(item) + +print(final_data) + +import json +# print("start") + +with open("file.json", 'w') as file: + data = file.write(json.dumps(final_data)) diff --git a/index.html b/index.html index de49fa3..3ea5843 100644 --- a/index.html +++ b/index.html @@ -45,6 +45,7 @@

Beautiful CSS box-shadow examples

30
+ \ No newline at end of file diff --git a/scss/pages/_home.scss b/scss/pages/_home.scss index 7cb0e2c..211a8a6 100644 --- a/scss/pages/_home.scss +++ b/scss/pages/_home.scss @@ -5,7 +5,6 @@ min-height: 100%; @include grid-center; gap: 50px; - background-color: red; h1 { font-size: 4vmax; text-align: center; @@ -22,7 +21,6 @@ @include grid-center; font-size: 2vmax; border-radius: 10%; - background-color: yellowgreen; } } } diff --git a/shadows.json b/shadows.json new file mode 100644 index 0000000..b3b3602 --- /dev/null +++ b/shadows.json @@ -0,0 +1,467 @@ +[ + { + "boxShadow": "rgba(149, 157, 165, 0.2) 0 8px 24px", + "credits": "fellow-developers", + "extra": "" + }, + { + "boxShadow": "0 7px 29px 0 rgba(100,100,111,.2)", + "credits": "fellow-developers", + "extra": "" + }, + { + "boxShadow": "rgba(0,0,0,.15) 1.95px 1.95px 2.6px", + "credits": "fellow-developers", + "extra": "" + }, + { + "boxShadow": "0px 5px 15px rgba(0, 0, 0, 0.35)", + "credits": "fellow-developers", + "extra": "" + }, + { + "boxShadow": "rgba(0, 0, 0, 0.16) 0 1px 4px", + "credits": "3drops", + "extra": "" + }, + { + "boxShadow": "rgba(0, 0, 0, 0.24) 0 3px 8px", + "credits": "fellow-developers", + "extra": "" + }, + { + "boxShadow": "0 2px 8px 0 rgba(99,99,99,.2)", + "credits": "fellow-developers", + "extra": "" + }, + { + "boxShadow": "rgba(0, 0, 0, 0.16) 0 1px 4px, #333 0 0 0 3px", + "credits": "fellow-developers", + "extra": "" + }, + { + "boxShadow": "rgba(0, 0, 0, 0.02) 0 1px 3px 0, rgba(27, 31, 35, 0.15) 0 0 0 1px", + "credits": "fellow-developers", + "extra": "" + }, + { + "boxShadow": "rgba(0, 0, 0, 0.1) 0 4px 12px", + "credits": "Sketch", + "extra": "" + }, + { + "boxShadow": "rgba(0, 0, 0, 0.25) 0px 54px 55px, rgba(0, 0, 0, 0.12) 0px -12px 30px, rgba(0, 0, 0, 0.12) 0px 4px 6px, rgba(0, 0, 0, 0.17) 0px 12px 13px, rgba(0, 0, 0, .09) 0px -3px 5px", + "credits": "fellow-developers", + "extra": "" + }, + { + "boxShadow": "rgba(0, 0, 0, 0.05) 0 6px 24px 0, rgba(0, 0, 0, 0.08) 0 0 0 1px", + "credits": "Sketch", + "extra": "" + }, + { + "boxShadow": "rgba(0, 0, 0, 0.16) 0 10px 36px 0, rgba(0, 0, 0, 0.06) 0 0 0 1px", + "credits": "Sketch", + "extra": "" + }, + { + "boxShadow": "rgba(17, 12, 46, 0.15) 0 48px 100px 0", + "credits": "fellow-developers", + "extra": "" + }, + { + "boxShadow": "rgba(50, 50, 93, 0.25) 0 50px 100px -20px, rgba(0, 0, 0, 0.3) 0 30px 60px -30px, rgba(10, 37, 64, 0.35) 0 -2px 6px 0 inset", + "credits": "Stripe", + "extra": "" + }, + { + "boxShadow": "rgba(255, 255, 255, 0.1) 0 1px 1px 0 inset, rgba(50, 50, 93, 0.25) 0 50px 100px -20px, rgba(0, 0, 0, 0.3) 0 30px 60px -30px", + "credits": "Stripe", + "extra": "" + }, + { + "boxShadow": "rgba(50, 50, 93, 0.25) 0 50px 100px -20px, rgba(0, 0, 0, 0.3) 0 30px 60px -30px", + "credits": "Stripe", + "extra": "" + }, + { + "boxShadow": "0 50px 100px -20px rgba(50,50,93,.25), 0 30px 60px -30px rgba(0,0,0,.3)", + "credits": "Stripe", + "extra": "" + }, + { + "boxShadow": "0 13px 27px -5px rgba(50,50,93,.25), 0 8px 16px -8px rgba(0,0,0,.3)", + "credits": "Stripe", + "extra": "" + }, + { + "boxShadow": "0 2px 5px -1px rgba(50,50,93,.25), 0 1px 3px -1px rgba(0,0,0,.3)", + "credits": "Stripe", + "extra": "" + }, + { + "boxShadow": "0 20px 30px -10px #26394d", + "credits": "Stripe", + "extra": "" + }, + { + "boxShadow": "0 0 0 2px rgba(6,24,44,.4), 0 4px 6px -1px rgba(6,24,44,.65), inset 0 1px 0 hsla(0,0%,100%,.08)", + "credits": "Stripe", + "extra": "" + }, + { + "boxShadow": "0 6px 12px -2px rgba(50,50,93,0.25),0 3px 7px -3px rgba(0,0,0,0.3)", + "credits": "fellow-developers", + "extra": "" + }, + { + "boxShadow": "0 13px 27px -5px rgba(50,50,93,0.25),0 8px 16px -8px rgba(0,0,0,0.3)", + "credits": "fellow-developers", + "extra": "" + }, + { + "boxShadow": "0 30px 60px -12px rgba(50,50,93,0.25),0 18px 36px -18px rgba(0,0,0,0.3)", + "credits": "fellow-developers", + "extra": "" + }, + { + "boxShadow": "inset 0 30px 60px -12px rgba(50,50,93,0.25),inset 0 18px 36px -18px rgba(0,0,0,0.3)", + "credits": "fellow-developers", + "extra": "" + }, + { + "boxShadow": "0 50px 100px -20px rgba(50,50,93,0.25),0 30px 60px -30px rgba(0,0,0,0.3)", + "credits": "fellow-developers", + "extra": "" + }, + { + "boxShadow": "0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24)", + "credits": "Material", + "extra": "" + }, + { + "boxShadow": "0 3px 6px rgba(0,0,0,0.16), 0 3px 6px rgba(0,0,0,0.23)", + "credits": "Material", + "extra": "" + }, + { + "boxShadow": "0 10px 20px rgba(0,0,0,0.19), 0 6px 6px rgba(0,0,0,0.23)", + "credits": "Material", + "extra": "" + }, + { + "boxShadow": "0 14px 28px rgba(0,0,0,0.25), 0 10px 10px rgba(0,0,0,0.22)", + "credits": "Material", + "extra": "" + }, + { + "boxShadow": "0 19px 38px rgba(0,0,0,0.30), 0 15px 12px rgba(0,0,0,0.22)", + "credits": "Material", + "extra": "" + }, + { + "boxShadow": "rgba(60, 64, 67, 0.3) 0 1px 2px 0, rgba(60, 64, 67, 0.15) 0 2px 6px 2px", + "credits": "Material", + "extra": "" + }, + { + "boxShadow": "rgba(60, 64, 67, 0.3) 0 1px 2px 0, rgba(60, 64, 67, 0.15) 0 1px 3px 1px", + "credits": "Material", + "extra": "" + }, + { + "boxShadow": "0 0 0 1px rgba(0, 0, 0, 0.05)", + "credits": "Tailwind CSS", + "extra": "" + }, + { + "boxShadow": "0 1px 2px 0 rgba(0, 0, 0, 0.05)", + "credits": "Tailwind CSS", + "extra": "" + }, + { + "boxShadow": "0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06)", + "credits": "Tailwind CSS", + "extra": "" + }, + { + "boxShadow": "0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)", + "credits": "Tailwind CSS", + "extra": "" + }, + { + "boxShadow": "0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05)", + "credits": "Tailwind CSS", + "extra": "" + }, + { + "boxShadow": "0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04)", + "credits": "Tailwind CSS", + "extra": "" + }, + { + "boxShadow": "0 25px 50px -12px rgba(0, 0, 0, 0.25)", + "credits": "Tailwind CSS", + "extra": "" + }, + { + "boxShadow": "inset 0 2px 4px 0 rgba(0, 0, 0, 0.06)", + "credits": "Tailwind CSS", + "extra": "" + }, + { + "boxShadow": "0 0 5px 0 rgba(0, 0, 0, 0.1),0 0 1px 0 rgba(0, 0, 0, 0.1)", + "credits": "fellow-developers", + "extra": "" + }, + { + "boxShadow": "0 1px 2px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.07), 0 4px 8px rgba(0,0,0,0.07), 0 8px 16px rgba(0,0,0,0.07), 0 16px 32px rgba(0,0,0,0.07), 0 32px 64px rgba(0,0,0,0.07)", + "credits": "Tobias Ahlin", + "extra": "" + }, + { + "boxShadow": "0 2px 1px rgba(0,0,0,0.09), 0 4px 2px rgba(0,0,0,0.09), 0 8px 4px rgba(0,0,0,0.09), 0 16px 8px rgba(0,0,0,0.09), 0 32px 16px rgba(0,0,0,0.09)", + "credits": "Tobias Ahlin", + "extra": "" + }, + { + "boxShadow": "rgba(0, 0, 0, 0.2) 0 18px 50px -10px", + "credits": "feedback.fish", + "extra": "" + }, + { + "boxShadow": "rgba(0, 0, 0, 0.1) 0 10px 50px", + "credits": "fellow-developers", + "extra": "" + }, + { + "boxShadow": "rgba(0, 0, 0, 0.04) 0 3px 5px", + "credits": "fellow-developers", + "extra": "" + }, + { + "boxShadow": "-5px 5px rgba(240, 46, 170, 0.4), -10px 10px rgba(240, 46, 170, 0.3), -15px 15px rgba(240, 46, 170, 0.2), -20px 20px rgba(240, 46, 170, 0.1), -25px 25px rgba(240, 46, 170, 0.05)", + "credits": "Alligator", + "extra": "" + }, + { + "boxShadow": "0 5px rgba(240, 46, 170, 0.4), 0 10px rgba(240, 46, 170, 0.3), 0 15px rgba(240, 46, 170, 0.2), 0 20px rgba(240, 46, 170, 0.1), 0 25px rgba(240, 46, 170, 0.05)", + "credits": "Alligator", + "extra": "" + }, + { + "boxShadow": "5px 5px rgba(240, 46, 170, 0.4), 10px 10px rgba(240, 46, 170, 0.3), 15px 15px rgba(240, 46, 170, 0.2), 20px 20px rgba(240, 46, 170, 0.1), 25px 25px rgba(240, 46, 170, 0.05)", + "credits": "Alligator", + "extra": "" + }, + { + "boxShadow": "rgba(0, 0, 0, 0.07) 0 1px 1px, rgba(0, 0, 0, 0.07) 0 2px 2px, rgba(0, 0, 0, 0.07) 0 4px 4px, rgba(0, 0, 0, 0.07) 0 8px 8px, rgba(0, 0, 0, 0.07) 0 16px 16px", + "credits": "fellow-developers", + "extra": "" + }, + { + "boxShadow": "rgba(67, 71, 85, 0.27) 0 0 .25em, rgba(90, 125, 188, 0.05) 0 .25em 1em", + "credits": "pqina.nl/doka", + "extra": "" + }, + { + "boxShadow": "rgba(0,0,0,.1) 0 1px 2px 0", + "credits": "fellow-developers", + "extra": "" + }, + { + "boxShadow": "rgba(27, 31, 35, 0.04) 0 1px 0, rgba(255, 255, 255, 0.25) 0 1px 0 inset", + "credits": "Github", + "extra": "" + }, + { + "boxShadow": "rgba(3, 102, 214, 0.3) 0 0 0 3px", + "credits": "Github", + "extra": "" + }, + { + "boxShadow": "rgba(14, 30, 37, 0.12) 0 2px 4px 0, rgba(14, 30, 37, 0.32) 0 2px 16px 0", + "credits": "fellow-developers", + "extra": "" + }, + { + "boxShadow": "0 12px 28px 0 rgba(0, 0, 0, 0.2),0 2px 4px 0 rgba(0, 0, 0, 0.1),inset 0 0 0 1px rgba(255, 255, 255, 0.05)", + "credits": "Facebook", + "extra": "" + }, + { + "boxShadow": "rgba(0, 0, 0, 0.15) 0 5px 15px 0", + "credits": "Shopify", + "extra": "" + }, + { + "boxShadow": "rgba(33, 35, 38, 0.1) 0 10px 10px -10px", + "credits": "Shopify", + "extra": "" + }, + { + "boxShadow": "inset blue 0 0 0 2px, 10px -10px 0 -3px #fff, 10px -10px #1FC11B, 20px -20px 0 -3px #fff, 20px -20px #FFD913, 30px -30px 0 -3px #fff, 30px -30px #FF9C55, 40px -40px 0 -3px #fff, 40px -40px #FF5555", + "extra": { "borderRadius": 0 }, + "credits": "Fossheim" + }, + { + "boxShadow": "rgb(85, 91, 255) 0px 0px 0px 3px, rgb(31, 193, 27) 0px 0px 0px 6px, rgb(255, 217, 19) 0px 0px 0px 9px, rgb(255, 156, 85) 0px 0px 0px 12px, rgb(255, 85, 85) 0px 0px 0px 15px", + "extra": { "borderRadius": 0 }, + "credits": "Fossheim" + }, + { + "boxShadow": "3px 3px 6px 0px #CCDBE8 inset, -3px -3px 6px 1px rgba(255,255,255,0.5) inset", + "credits": "boxshadows.com", + "extra": "" + }, + { + "boxShadow": "6px 2px 16px 0px rgba(136, 165, 191, 0.48) , -6px -2px 16px 0px rgba(255, 255, 255, 0.8)", + "credits": "boxshadows.com", + "extra": "" + }, + { + "boxShadow": "0px 1px 0px rgba(17,17,26,0.1)", + "credits": "box-shadows.co", + "extra": "" + }, + { + "boxShadow": "0px 1px 0px rgba(17,17,26,0.05), 0px 0px 8px rgba(17,17,26,0.1)", + "credits": "box-shadows.co", + "extra": "" + }, + { + "boxShadow": "0px 0px 16px rgba(17,17,26,0.1)", + "credits": "box-shadows.co", + "extra": "" + }, + { + "boxShadow": "0px 4px 16px rgba(17,17,26,0.05), 0px 8px 32px rgba(17,17,26,0.05)", + "credits": "box-shadows.co", + "extra": "" + }, + { + "boxShadow": "0px 4px 16px rgba(17,17,26,0.1), 0px 8px 32px rgba(17,17,26,0.05)", + "credits": "box-shadows.co", + "extra": "" + }, + { + "boxShadow": "0px 1px 0px rgba(17,17,26,0.1), 0px 8px 24px rgba(17,17,26,0.1), 0px 16px 48px rgba(17,17,26,0.1)", + "credits": "box-shadows.co", + "extra": "" + }, + { + "boxShadow": "0px 4px 16px rgba(17,17,26,0.1), 0px 8px 24px rgba(17,17,26,0.1), 0px 16px 56px rgba(17,17,26,0.1)", + "credits": "box-shadows.co", + "extra": "" + }, + { + "boxShadow": "0px 8px 24px rgba(17,17,26,0.1), 0px 16px 56px rgba(17,17,26,0.1), 0px 24px 80px rgba(17,17,26,0.1)", + "credits": "box-shadows.co", + "extra": "" + }, + { + "boxShadow": "rgba(50, 50, 105, 0.15) 0 2px 5px 0, rgba(0, 0, 0, 0.05) 0 1px 1px 0", + "credits": "10er.app", + "extra": "" + }, + { + "boxShadow": "0 15px 25px rgba(0, 0, 0, 0.15),0 5px 10px rgba(0, 0, 0, 0.05)", + "credits": "wip.chat", + "extra": "" + }, + { "boxShadow": "rgba(0,0,0,.15) 2.4px 2.4px 3.2px", "extra": "" }, + { + "boxShadow": "0 3px 3px 0 rgba(0,0,0,0.15)", + "credits": "Airbnb", + "extra": "" + }, + { + "boxShadow": "rgba(0, 0, 0, 0.08) 0 4px 12px", + "credits": "Airbnb", + "extra": "" + }, + { + "boxShadow": "rgba(0, 0, 0, 0.15) 0 2px 8px", + "credits": "Airbnb", + "extra": "" + }, + { + "boxShadow": "rgba(0, 0, 0, 0.18) 0 2px 4px", + "credits": "Airbnb", + "extra": "" + }, + { + "boxShadow": "-4px 9px 25px -6px rgba(0,0,0,.1)", + "credits": "ls.graphics", + "extra": "" + }, + { + "boxShadow": "0 60px 40px -7px rgba(0,0,0,.2)", + "credits": "ls.graphics", + "extra": "" + }, + { + "boxShadow": "0 30px 90px rgba(0,0,0,0.4)", + "credits": "Lonely Planet", + "extra": "" + }, + { + "boxShadow": "0 22px 70px 4px rgba(0, 0, 0, 0.56)", + "credits": "Mac", + "extra": "" + }, + { + "boxShadow": "0px 20px 30px rgba(0, 0, 0, 0.2)", + "credits": "Mac", + "extra": "" + }, + { + "boxShadow": "rgba(255, 255, 255, 0.2) 0px 0px 0px 1px inset, rgba(0, 0, 0, 0.9) 0px 0px 0px 1px", + "credits": "Mac", + "extra": "" + }, + { + "boxShadow": "0 .0625em .0625em rgba(0, 0, 0, 0.25), 0 .125em .5em rgba(0, 0, 0, 0.25), inset 0 0 0 1px rgba(255, 255, 255, 0.1)", + "credits": "pqina.nl/doka", + "extra": "" + }, + { + "boxShadow": "rgba(0,0,0,0.09) 0px 3px 12px", + "credits": "Typedream", + "extra": "" + }, + { + "boxShadow": "inset 0px -23px 25px 0 rgba(0, 0, 0, .17), inset 0 -36px 30px 0px rgba(0, 0, 0, .15) ,inset 0 -79px 40px 0px rgba(0, 0, 0, .1), rgba(0, 0, 0, 0.06) 0px 2px 1px, rgba(0, 0, 0, 0.09) 0px 4px 2px, rgba(0, 0, 0, 0.09) 0px 8px 4px, rgba(0, 0, 0, 0.09) 0px 16px 8px, rgba(0, 0, 0, 0.09) 0px 32px 16px", + "extra": { "borderRadius": "35px" } + }, + { + "boxShadow": "rgba(0, 0, 0, 0.45) 0 25px 20px -20px", + "credits": "fellow-developers", + "extra": "" + }, + { + "boxShadow": "0px 2px 4px rgba(0, 0, 0, .4), 0px 7px 13px -3px rgba(0, 0, 0, .3), inset 0px -3px 0px rgba(0, 0, 0, .2)", + "credits": "fellow-developers", + "extra": "" + }, + { + "boxShadow": "0 0 0 1px rgba(0, 0, 0, 0.05), inset rgb(209, 213, 219) 0 0 0 1px", + "credits": "fellow-developers", + "extra": "" + }, + { + "boxShadow": "inset 0px -50px 36px -28px rgba(0,0,0,0.35)", + "credits": "fellow-developers", + "extra": "" + }, + { + "boxShadow": "rgba(9, 30, 66, 0.25) 0 1px 1px, rgba(9, 30, 66, 0.13) 0 0 1px 1px", + "credits": "Trello", + "extra": "" + }, + { + "boxShadow": "rgba(9, 30, 66, 0.25) 0 4px 8px -2px, rgba(9, 30, 66, 0.08) 0 0 0 1px", + "credits": "Trello", + "extra": "" + } +] From f7baa96f8890298a42a282687031043d26415420 Mon Sep 17 00:00:00 2001 From: satyam-seth Date: Fri, 25 Mar 2022 23:58:14 +0530 Subject: [PATCH 6/8] set shadow to all boxes using `shadows.json` file --- index.html | 30 --------------------------- js/custom.js | 47 +++++++++++++++++++++++++++++++++++++++++++ scss/pages/_home.scss | 8 +++++++- shadows.json | 1 + 4 files changed, 55 insertions(+), 31 deletions(-) create mode 100644 js/custom.js diff --git a/index.html b/index.html index 3ea5843..bf58a30 100644 --- a/index.html +++ b/index.html @@ -13,36 +13,6 @@

Beautiful CSS box-shadow examples

-
1
-
2
-
3
-
4
-
5
-
6
-
7
-
8
-
9
-
10
-
11
-
12
-
13
-
14
-
15
-
16
-
17
-
18
-
19
-
20
-
21
-
22
-
23
-
24
-
25
-
26
-
27
-
28
-
29
-
30
diff --git a/js/custom.js b/js/custom.js new file mode 100644 index 0000000..abc96cd --- /dev/null +++ b/js/custom.js @@ -0,0 +1,47 @@ +async function getShadows( + file, + boxContainerSelector, + boxClassName, + indexClassName, + creditClassName +) { + try { + console.log("Button Clicked"); + const res = await fetch(file); + if (!res.ok) { + throw Error(res.statusText); + } + console.log(res); + const data = await res.json(); + console.log(data); + data.forEach((item, index) => { + const indexSpan = document.createElement("span"); + indexSpan.className = indexClassName; + indexSpan.innerText = index; + + const creditPrara = document.createElement("p"); + creditPrara.className = creditClassName; + creditPrara.innerText = item.credits; + + const box = document.createElement("div"); + box.className = boxClassName; + box.style.boxShadow = item.boxShadow; + if (item.extra) { + console.log(index); + box.style[`${Object.keys(item.extra)[0]}`] = `${ + Object.values(item.extra)[0] + }`; + } + + box.append(indexSpan, creditPrara); + console.log(box); + document.querySelector(boxContainerSelector).append(box); + }); + } catch (error) { + console.log(error); + } +} + +window.onload = () => { + getShadows("./shadows.json", ".box-container", "box", "index", "credits"); +}; diff --git a/scss/pages/_home.scss b/scss/pages/_home.scss index 211a8a6..587c890 100644 --- a/scss/pages/_home.scss +++ b/scss/pages/_home.scss @@ -19,8 +19,14 @@ width: 150px; height: 150px; @include grid-center; - font-size: 2vmax; border-radius: 10%; + span.index { + font-size: 1.5vmax; + } + p.credits { + font-size: 1vmax; + color: gray; + } } } } diff --git a/shadows.json b/shadows.json index b3b3602..bc63e6d 100644 --- a/shadows.json +++ b/shadows.json @@ -432,6 +432,7 @@ }, { "boxShadow": "inset 0px -23px 25px 0 rgba(0, 0, 0, .17), inset 0 -36px 30px 0px rgba(0, 0, 0, .15) ,inset 0 -79px 40px 0px rgba(0, 0, 0, .1), rgba(0, 0, 0, 0.06) 0px 2px 1px, rgba(0, 0, 0, 0.09) 0px 4px 2px, rgba(0, 0, 0, 0.09) 0px 8px 4px, rgba(0, 0, 0, 0.09) 0px 16px 8px, rgba(0, 0, 0, 0.09) 0px 32px 16px", + "credits": "fellow-developers", "extra": { "borderRadius": "35px" } }, { From 026bd09fbece7a9e1c7bc599b5585b55c4f74bd0 Mon Sep 17 00:00:00 2001 From: satyam-seth Date: Sat, 26 Mar 2022 00:05:57 +0530 Subject: [PATCH 7/8] remove css folder from `.gitignore` file --- .gitignore | 1 - css/style.min.css | 2 ++ css/style.min.css.map | 13 +++++++++++++ 3 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 css/style.min.css create mode 100644 css/style.min.css.map diff --git a/.gitignore b/.gitignore index 493ec68..e69de29 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +0,0 @@ -css \ No newline at end of file diff --git a/css/style.min.css b/css/style.min.css new file mode 100644 index 0000000..6e63adb --- /dev/null +++ b/css/style.min.css @@ -0,0 +1,2 @@ +*{margin:0;padding:0;-webkit-box-sizing:border-box;box-sizing:border-box}body{width:100%;height:100vh;color:#000;background-color:#fff}.container{padding:25px;margin-bottom:100px;width:100%;min-height:100%;display:-ms-grid;display:grid;place-items:center;gap:50px}.container h1{font-size:4vmax;text-align:center}.container .box-container{width:100%;min-height:100%;display:-ms-grid;display:grid;place-items:center;gap:50px;-ms-grid-columns:(minmax(200px, 1fr))[auto-fit];grid-template-columns:repeat(auto-fit, minmax(200px, 1fr))}.container .box-container .box{width:150px;height:150px;display:-ms-grid;display:grid;place-items:center;border-radius:10%}.container .box-container .box span.index{font-size:1.5vmax}.container .box-container .box p.credits{font-size:1vmax;color:gray} +/*# sourceMappingURL=style.min.css.map */ \ No newline at end of file diff --git a/css/style.min.css.map b/css/style.min.css.map new file mode 100644 index 0000000..71884e4 --- /dev/null +++ b/css/style.min.css.map @@ -0,0 +1,13 @@ +{ + "version": 3, + "mappings": "AGAA,AAAA,CAAC,AAAC,CACA,MAAM,CAAE,CAAC,CACT,OAAO,CAAE,CAAC,CACV,UAAU,CAAE,UAAU,CACvB,AAED,AAAA,IAAI,AAAC,CACH,KAAK,CAAE,IAAI,CACX,MAAM,CAAE,KAAK,CACb,KAAK,CFPM,IAAK,CEQhB,gBAAgB,CFPF,IAAI,CEQnB,ACXD,AAAA,UAAU,AAAC,CACT,OAAO,CAAE,IAAI,CACb,aAAa,CAAE,KAAK,CACpB,KAAK,CAAE,IAAI,CACX,UAAU,CAAE,IAAI,CFehB,OAAO,CAAE,IAAI,CACb,WAAW,CAAE,MAAM,CEdnB,GAAG,CAAE,IAAI,CAyBV,AA/BD,AAOE,UAPQ,CAOR,EAAE,AAAC,CACD,SAAS,CAAE,KAAK,CAChB,UAAU,CAAE,MAAM,CACnB,AAVH,AAWE,UAXQ,CAWR,cAAc,AAAC,CACb,KAAK,CAAE,IAAI,CACX,UAAU,CAAE,IAAI,CFMlB,OAAO,CAAE,IAAI,CACb,WAAW,CAAE,MAAM,CELjB,GAAG,CAAE,IAAI,CACT,qBAAqB,CAAE,oCAAoC,CAc5D,AA9BH,AAiBI,UAjBM,CAWR,cAAc,CAMZ,IAAI,AAAC,CACH,KAAK,CAAE,KAAK,CACZ,MAAM,CAAE,KAAK,CFAjB,OAAO,CAAE,IAAI,CACb,WAAW,CAAE,MAAM,CECf,aAAa,CAAE,GAAG,CAQnB,AA7BL,AAsBM,UAtBI,CAWR,cAAc,CAMZ,IAAI,CAKF,IAAI,AAAA,MAAM,AAAC,CACT,SAAS,CAAE,OAAO,CACnB,AAxBP,AAyBM,UAzBI,CAWR,cAAc,CAMZ,IAAI,CAQF,CAAC,AAAA,QAAQ,AAAC,CACR,SAAS,CAAE,KAAK,CAChB,KAAK,CAAE,IAAI,CACZ", + "sources": [ + "../scss/style.scss", + "../scss/abstracts/_variables.scss", + "../scss/abstracts/_mixins.scss", + "../scss/base/_reset.scss", + "../scss/pages/_home.scss" + ], + "names": [], + "file": "style.min.css" +} \ No newline at end of file From 11385019f7332920302ef610205282657c07eefd Mon Sep 17 00:00:00 2001 From: satyam-seth Date: Sun, 27 Mar 2022 00:11:12 +0530 Subject: [PATCH 8/8] setup `node` and `typescript` --- .gitignore | 1 + package-lock.json | 37 +++++++++++++++++ package.json | 22 ++++++++++ ts/demo.ts | 1 + tsconfig.json | 103 ++++++++++++++++++++++++++++++++++++++++++++++ 5 files changed, 164 insertions(+) create mode 100644 package-lock.json create mode 100644 package.json create mode 100644 ts/demo.ts create mode 100644 tsconfig.json diff --git a/.gitignore b/.gitignore index e69de29..b512c09 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +node_modules \ No newline at end of file diff --git a/package-lock.json b/package-lock.json new file mode 100644 index 0000000..7cc65f4 --- /dev/null +++ b/package-lock.json @@ -0,0 +1,37 @@ +{ + "name": "css_utilities", + "version": "1.0.0", + "lockfileVersion": 2, + "requires": true, + "packages": { + "": { + "name": "css_utilities", + "version": "1.0.0", + "license": "ISC", + "devDependencies": { + "typescript": "^4.6.3" + } + }, + "node_modules/typescript": { + "version": "4.6.3", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.6.3.tgz", + "integrity": "sha512-yNIatDa5iaofVozS/uQJEl3JRWLKKGJKh6Yaiv0GLGSuhpFJe7P3SbHZ8/yjAHRQwKRoA6YZqlfjXWmVzoVSMw==", + "dev": true, + "bin": { + "tsc": "bin/tsc", + "tsserver": "bin/tsserver" + }, + "engines": { + "node": ">=4.2.0" + } + } + }, + "dependencies": { + "typescript": { + "version": "4.6.3", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.6.3.tgz", + "integrity": "sha512-yNIatDa5iaofVozS/uQJEl3JRWLKKGJKh6Yaiv0GLGSuhpFJe7P3SbHZ8/yjAHRQwKRoA6YZqlfjXWmVzoVSMw==", + "dev": true + } + } +} diff --git a/package.json b/package.json new file mode 100644 index 0000000..9f595df --- /dev/null +++ b/package.json @@ -0,0 +1,22 @@ +{ + "name": "css_utilities", + "version": "1.0.0", + "description": "css utilities website", + "main": "index.js", + "scripts": { + "build": "tsc ." + }, + "repository": { + "type": "git", + "url": "git+https://github.com/fellow-developers/css_utilities.git" + }, + "author": "", + "license": "ISC", + "bugs": { + "url": "https://github.com/fellow-developers/css_utilities/issues" + }, + "homepage": "https://github.com/fellow-developers/css_utilities#readme", + "devDependencies": { + "typescript": "^4.6.3" + } +} diff --git a/ts/demo.ts b/ts/demo.ts new file mode 100644 index 0000000..49746b2 --- /dev/null +++ b/ts/demo.ts @@ -0,0 +1 @@ +document.body.style.backgroundColor = "red"; diff --git a/tsconfig.json b/tsconfig.json new file mode 100644 index 0000000..7a7c340 --- /dev/null +++ b/tsconfig.json @@ -0,0 +1,103 @@ +{ + "compilerOptions": { + /* Visit https://aka.ms/tsconfig.json to read more about this file */ + + /* Projects */ + // "incremental": true, /* Enable incremental compilation */ + // "composite": true, /* Enable constraints that allow a TypeScript project to be used with project references. */ + // "tsBuildInfoFile": "./", /* Specify the folder for .tsbuildinfo incremental compilation files. */ + // "disableSourceOfProjectReferenceRedirect": true, /* Disable preferring source files instead of declaration files when referencing composite projects */ + // "disableSolutionSearching": true, /* Opt a project out of multi-project reference checking when editing. */ + // "disableReferencedProjectLoad": true, /* Reduce the number of projects loaded automatically by TypeScript. */ + + /* Language and Environment */ + "target": "es2016" /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */, + // "lib": [], /* Specify a set of bundled library declaration files that describe the target runtime environment. */ + // "jsx": "preserve", /* Specify what JSX code is generated. */ + // "experimentalDecorators": true, /* Enable experimental support for TC39 stage 2 draft decorators. */ + // "emitDecoratorMetadata": true, /* Emit design-type metadata for decorated declarations in source files. */ + // "jsxFactory": "", /* Specify the JSX factory function used when targeting React JSX emit, e.g. 'React.createElement' or 'h' */ + // "jsxFragmentFactory": "", /* Specify the JSX Fragment reference used for fragments when targeting React JSX emit e.g. 'React.Fragment' or 'Fragment'. */ + // "jsxImportSource": "", /* Specify module specifier used to import the JSX factory functions when using `jsx: react-jsx*`.` */ + // "reactNamespace": "", /* Specify the object invoked for `createElement`. This only applies when targeting `react` JSX emit. */ + // "noLib": true, /* Disable including any library files, including the default lib.d.ts. */ + // "useDefineForClassFields": true, /* Emit ECMAScript-standard-compliant class fields. */ + + /* Modules */ + "module": "commonjs" /* Specify what module code is generated. */, + // "rootDir": "./", /* Specify the root folder within your source files. */ + // "moduleResolution": "node", /* Specify how TypeScript looks up a file from a given module specifier. */ + // "baseUrl": "./", /* Specify the base directory to resolve non-relative module names. */ + // "paths": {}, /* Specify a set of entries that re-map imports to additional lookup locations. */ + "rootDirs": [ + "ts" + ] /* Allow multiple folders to be treated as one when resolving modules. */, + // "typeRoots": [], /* Specify multiple folders that act like `./node_modules/@types`. */ + // "types": [], /* Specify type package names to be included without being referenced in a source file. */ + // "allowUmdGlobalAccess": true, /* Allow accessing UMD globals from modules. */ + // "resolveJsonModule": true, /* Enable importing .json files */ + // "noResolve": true, /* Disallow `import`s, `require`s or ``s from expanding the number of files TypeScript should add to a project. */ + + /* JavaScript Support */ + // "allowJs": true, /* Allow JavaScript files to be a part of your program. Use the `checkJS` option to get errors from these files. */ + // "checkJs": true, /* Enable error reporting in type-checked JavaScript files. */ + // "maxNodeModuleJsDepth": 1, /* Specify the maximum folder depth used for checking JavaScript files from `node_modules`. Only applicable with `allowJs`. */ + + /* Emit */ + // "declaration": true, /* Generate .d.ts files from TypeScript and JavaScript files in your project. */ + // "declarationMap": true, /* Create sourcemaps for d.ts files. */ + // "emitDeclarationOnly": true, /* Only output d.ts files and not JavaScript files. */ + // "sourceMap": true, /* Create source map files for emitted JavaScript files. */ + // "outFile": "./", /* Specify a file that bundles all outputs into one JavaScript file. If `declaration` is true, also designates a file that bundles all .d.ts output. */ + "outDir": "./js" /* Specify an output folder for all emitted files. */, + // "removeComments": true, /* Disable emitting comments. */ + // "noEmit": true, /* Disable emitting files from a compilation. */ + // "importHelpers": true, /* Allow importing helper functions from tslib once per project, instead of including them per-file. */ + // "importsNotUsedAsValues": "remove", /* Specify emit/checking behavior for imports that are only used for types */ + // "downlevelIteration": true, /* Emit more compliant, but verbose and less performant JavaScript for iteration. */ + // "sourceRoot": "", /* Specify the root path for debuggers to find the reference source code. */ + // "mapRoot": "", /* Specify the location where debugger should locate map files instead of generated locations. */ + // "inlineSourceMap": true, /* Include sourcemap files inside the emitted JavaScript. */ + // "inlineSources": true, /* Include source code in the sourcemaps inside the emitted JavaScript. */ + // "emitBOM": true, /* Emit a UTF-8 Byte Order Mark (BOM) in the beginning of output files. */ + // "newLine": "crlf", /* Set the newline character for emitting files. */ + // "stripInternal": true, /* Disable emitting declarations that have `@internal` in their JSDoc comments. */ + // "noEmitHelpers": true, /* Disable generating custom helper functions like `__extends` in compiled output. */ + // "noEmitOnError": true, /* Disable emitting files if any type checking errors are reported. */ + // "preserveConstEnums": true, /* Disable erasing `const enum` declarations in generated code. */ + // "declarationDir": "./", /* Specify the output directory for generated declaration files. */ + // "preserveValueImports": true, /* Preserve unused imported values in the JavaScript output that would otherwise be removed. */ + + /* Interop Constraints */ + // "isolatedModules": true, /* Ensure that each file can be safely transpiled without relying on other imports. */ + // "allowSyntheticDefaultImports": true, /* Allow 'import x from y' when a module doesn't have a default export. */ + "esModuleInterop": true /* Emit additional JavaScript to ease support for importing CommonJS modules. This enables `allowSyntheticDefaultImports` for type compatibility. */, + // "preserveSymlinks": true, /* Disable resolving symlinks to their realpath. This correlates to the same flag in node. */ + "forceConsistentCasingInFileNames": true /* Ensure that casing is correct in imports. */, + + /* Type Checking */ + "strict": true /* Enable all strict type-checking options. */, + // "noImplicitAny": true, /* Enable error reporting for expressions and declarations with an implied `any` type.. */ + // "strictNullChecks": true, /* When type checking, take into account `null` and `undefined`. */ + // "strictFunctionTypes": true, /* When assigning functions, check to ensure parameters and the return values are subtype-compatible. */ + // "strictBindCallApply": true, /* Check that the arguments for `bind`, `call`, and `apply` methods match the original function. */ + // "strictPropertyInitialization": true, /* Check for class properties that are declared but not set in the constructor. */ + // "noImplicitThis": true, /* Enable error reporting when `this` is given the type `any`. */ + // "useUnknownInCatchVariables": true, /* Type catch clause variables as 'unknown' instead of 'any'. */ + // "alwaysStrict": true, /* Ensure 'use strict' is always emitted. */ + // "noUnusedLocals": true, /* Enable error reporting when a local variables aren't read. */ + // "noUnusedParameters": true, /* Raise an error when a function parameter isn't read */ + // "exactOptionalPropertyTypes": true, /* Interpret optional property types as written, rather than adding 'undefined'. */ + // "noImplicitReturns": true, /* Enable error reporting for codepaths that do not explicitly return in a function. */ + // "noFallthroughCasesInSwitch": true, /* Enable error reporting for fallthrough cases in switch statements. */ + // "noUncheckedIndexedAccess": true, /* Include 'undefined' in index signature results */ + // "noImplicitOverride": true, /* Ensure overriding members in derived classes are marked with an override modifier. */ + // "noPropertyAccessFromIndexSignature": true, /* Enforces using indexed accessors for keys declared using an indexed type */ + // "allowUnusedLabels": true, /* Disable error reporting for unused labels. */ + // "allowUnreachableCode": true, /* Disable error reporting for unreachable code. */ + + /* Completeness */ + // "skipDefaultLibCheck": true, /* Skip type checking .d.ts files that are included with TypeScript. */ + "skipLibCheck": true /* Skip type checking all .d.ts files. */ + } +}