Skip to content

Commit a813ca6

Browse files
committed
make pnpm create rustular-app button fancy
1 parent f0f7bb7 commit a813ca6

File tree

2 files changed

+22
-8
lines changed

2 files changed

+22
-8
lines changed

src/pages/index.astro

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,16 @@ import Layout from '../components/Layout.astro';
2222
Get Started
2323
</a>
2424
<div
25-
class="cursor-copy select-none border-2 border-fuchsia-600 p-4"
25+
class="flex cursor-copy select-none bg-gradient-to-r from-fuchsia-600 via-blue-700 to-pink-600 bg-size-200 bg-pos-0 p-0.5 transition-all duration-1000 hover:bg-pos-100 hover:duration-500"
2626
onclick="navigator.clipboard.writeText('pnpm create rustular-app')"
2727
>
28-
{'> pnpm create rustular-app'}
28+
<div
29+
class="mx-auto flex bg-slate-950 p-3 transition-colors duration-500 active:bg-slate-900 active:duration-0"
30+
>
31+
<div class="m-auto">
32+
{'~ pnpm create rustular-app'}
33+
</div>
34+
</div>
2935
</div>
3036
</div>
3137
<div>

tailwind.config.cjs

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,16 @@
11
/** @type {import('tailwindcss').Config} */
22
module.exports = {
3-
content: ['./src/**/*.{astro,html,js,jsx,md,mdx,svelte,ts,tsx,vue}'],
4-
theme: {
5-
extend: {},
6-
},
7-
plugins: [],
8-
}
3+
content: ['./src/**/*.{astro,html,js,jsx,md,mdx,svelte,ts,tsx,vue}'],
4+
theme: {
5+
extend: {
6+
backgroundSize: {
7+
'size-200': '200% 200%',
8+
},
9+
backgroundPosition: {
10+
'pos-0': '0% 0%',
11+
'pos-100': '100% 100%',
12+
},
13+
},
14+
},
15+
plugins: [],
16+
};

0 commit comments

Comments
 (0)