feat: add gradient line decoration

This commit is contained in:
MAZE 2023-10-05 18:18:04 +03:30
parent dc33c2cf9c
commit 5559152a84
4 changed files with 24 additions and 0 deletions

View file

@ -0,0 +1,16 @@
.gradient {
width: 100%;
height: 3px;
background: linear-gradient(
83deg,
rgb(186 240 112) 3%,
rgb(121 232 101) 16%,
rgb(101 229 178) 28%,
rgb(98 111 234) 40%,
rgb(200 89 228) 52%,
rgb(245 92 157) 65%,
rgb(246 104 78) 77%,
rgb(254 155 70) 89%,
rgb(255 200 71) 100%
);
}

View file

@ -0,0 +1,5 @@
import styles from './gradient.module.css';
export function Gradient() {
return <div className={styles.gradient} />;
}

View file

@ -0,0 +1 @@
export { Gradient } from './gradient';

View file

@ -1,9 +1,11 @@
--- ---
import Layout from '@/layouts/layout.astro'; import Layout from '@/layouts/layout.astro';
import { Gradient } from '@/components/gradient';
import { Hero } from '@/components/hero'; import { Hero } from '@/components/hero';
--- ---
<Layout title="Welcome to Astro."> <Layout title="Welcome to Astro.">
<Gradient />
<Hero /> <Hero />
</Layout> </Layout>