Skip to content

Commit 31d4894

Browse files
committed
➕ADD: +1 Snippet, resources page
1 parent 8bc5993 commit 31d4894

File tree

5 files changed

+125
-0
lines changed

5 files changed

+125
-0
lines changed

components/Footer.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,11 @@ export default function Footer() {
5757
Tweets
5858
</a>
5959
</Link>
60+
<Link href="/resources">
61+
<a className="text-gray-500 hover:text-gray-600 transition">
62+
Resources
63+
</a>
64+
</Link>
6065
</div>
6166
</div>
6267
</footer>

components/ResourcesCard.js

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
import Link from "next/link";
2+
// import Image from "next/image";
3+
4+
export default function FunctionCard({
5+
title,
6+
description,
7+
link,
8+
websiteLink,
9+
...rest
10+
}) {
11+
return (
12+
<Link href={link}>
13+
<a
14+
className="border border-grey-200 dark:border-gray-900 rounded p-4 w-full"
15+
{...rest}
16+
target="__blank"
17+
>
18+
<div className="flex items-center text-gray-900 dark:text-gray-100">
19+
<span className="mt-1 text-gray-400 dark:text-gray-400 inline-block">
20+
{websiteLink}
21+
</span>
22+
23+
<svg
24+
className="h-4 w-4 ml-1 mt-1.5"
25+
xmlns="http://www.w3.org/2000/svg"
26+
fill="none"
27+
viewBox="0 0 24 24"
28+
stroke="currentColor"
29+
>
30+
<path
31+
strokeLinecap="round"
32+
strokeLinejoin="round"
33+
strokeWidth={2}
34+
d="M10 6H6a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2v-4M14 4h6m0 0v6m0-6L10 14"
35+
/>
36+
</svg>
37+
</div>
38+
39+
<h3 className="text-lg font-bold text-left mt-2 text-gray-900 dark:text-gray-100">
40+
{title}
41+
</h3>
42+
<p className="mt-1 text-gray-700 dark:text-gray-400">{description}</p>
43+
</a>
44+
</Link>
45+
);
46+
}

data/snippets/gradient-text.mdx

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
title: "Text Gradient"
3+
description: "Add gradient to text"
4+
logo: "css.png"
5+
---
6+
7+
```css
8+
.gradient-text {
9+
background-color: #f3ec78;
10+
background-image: linear-gradient(45deg, #f3ec78, #af4261);
11+
background-size: 100%;
12+
-webkit-background-clip: text;
13+
-moz-background-clip: text;
14+
-webkit-text-fill-color: transparent;
15+
-moz-text-fill-color: transparent;
16+
}
17+
```
18+
19+
To get more gradients quickly, goto [uigradients.com](https://uigradients.com/#DarkSkies) and select from a list of gradients.
20+
Copy paste in the `.gradient-text` field.

pages/resources.js

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
import Container from "@/components/Container";
2+
import ResourcesCard from "@/components/ResourcesCard";
3+
4+
export default function Snippets({ snippets }) {
5+
// TODO: Make sections for each type, ex: Javascript, HTML CSS etc
6+
return (
7+
<Container
8+
title="Resources – Manu Arora"
9+
description="Helpful websites that I've been using for years that have helped me in developing
10+
applications and much more"
11+
>
12+
<div className="flex flex-col justify-center items-start max-w-2xl mx-auto mb-16">
13+
<h1 className="font-bold text-3xl md:text-5xl tracking-tight mb-4 text-black dark:text-white">
14+
Resources
15+
</h1>
16+
<p className="text-gray-600 dark:text-gray-400 mb-4">
17+
Helpful{" "}
18+
<span className="bg-gray-100 border rounded-md px-1 py-0.5 tracking-tight dark:text-gray-300 dark:bg-gray-700">
19+
websites
20+
</span>{" "}
21+
that I've been using for years that have helped me in developing
22+
applications and much more. 🔥
23+
</p>
24+
<div className="grid gap-4 grid-cols-1 sm:grid-cols-2 my-2 w-full mt-4">
25+
<ResourcesCard
26+
title="UI Gradients"
27+
link="https://uigradients.com"
28+
websiteLink="uigradients.com"
29+
description="Get different gradient range"
30+
/>
31+
<ResourcesCard
32+
title="Free Themes & Templates"
33+
link="https://www.creative-tim.com/templates/free"
34+
websiteLink="creative-tim.com"
35+
description="Get free themes, templates & UI Kits"
36+
/>
37+
<ResourcesCard
38+
title="Minimal Icons Pack"
39+
link="https://www.heroicons.com"
40+
websiteLink="heroicons.com"
41+
description="Get free icons"
42+
/>
43+
<ResourcesCard
44+
title="Waves & SVG blobs"
45+
link="https://getwaves.io/"
46+
websiteLink="getwaves.io"
47+
description="Generate waves for your website."
48+
/>
49+
{/* https://getwaves.io/ */}
50+
</div>
51+
</div>
52+
</Container>
53+
);
54+
}

public/logos/css.png

1.7 KB
Loading

0 commit comments

Comments
 (0)