Skip to content

Commit 958d726

Browse files
committed
🚀 Major Add: Box shadows for Tailwind Init
1 parent 58355b5 commit 958d726

File tree

11 files changed

+439
-8
lines changed

11 files changed

+439
-8
lines changed

components/Footer.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,11 @@ export default function Footer() {
7979
freeCodeCamp
8080
</a>
8181
</Link>
82+
<Link href="/boxshadows">
83+
<a className="text-gray-500 hover:text-gray-600 transition">
84+
Box Shadows
85+
</a>
86+
</Link>
8287
</div>
8388
</div>
8489
<p className="flex flex-row text-gray-400">

constants/boxshadows/cards.js

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
const cards = [
2+
{
3+
name: "Aesthetic",
4+
shadow: "shadow-[0_3px_10px_rgb(0,0,0,0.2)]",
5+
vanillaCSS: `box-shadow: 0 3px 10px rgb(0,0,0,0.2);`,
6+
},
7+
{
8+
name: "Demure",
9+
shadow: "shadow-[0_35px_60px_-15px_rgba(0,0,0,0.3)]",
10+
vanillaCSS: `box-shadow: rgba(0, 0, 0, 0.15) 1.95px 1.95px 2.6px;`,
11+
},
12+
{
13+
name: "Jubilation",
14+
shadow: "shadow-[rgba(0,_0,_0,_0.24)_0px_3px_8px]",
15+
vanillaCSS: `box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;`,
16+
},
17+
18+
{
19+
name: "Sprightly",
20+
shadow: "shadow-[rgba(0,_0,_0,_0.25)_0px_25px_50px_-12px]",
21+
vanillaCSS: `box-shadow: rgba(0, 0, 0, 0.25) 0px 25px 50px -12px;`,
22+
},
23+
];
24+
25+
export default cards;

jsconfig.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
"@/lib/*": ["lib/*"],
99
"@/styles/*": ["styles/*"],
1010
"@/ui/*": ["ui/*"],
11+
"@/constants/*": ["constants/*"],
1112
}
1213
}
1314
}

package-lock.json

Lines changed: 34 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737
"react": "^17.0.2",
3838
"react-dom": "^17.0.2",
3939
"react-rough-notation": "^1.0.1",
40+
"react-syntax-highlighter": "^15.4.5",
4041
"react-toastify": "^7.0.3",
4142
"react-tweet-embed": "^1.2.2",
4243
"reading-time": "^1.3.0",

0 commit comments

Comments
 (0)