Skip to content

Commit

Permalink
feat: add gradient line decoration
Browse files Browse the repository at this point in the history
  • Loading branch information
remvze committed Oct 5, 2023
1 parent dc33c2c commit 5559152
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/components/gradient/gradient.module.css
Original file line number Diff line number Diff line change
@@ -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%
);
}
5 changes: 5 additions & 0 deletions src/components/gradient/gradient.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import styles from './gradient.module.css';

export function Gradient() {
return <div className={styles.gradient} />;
}
1 change: 1 addition & 0 deletions src/components/gradient/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { Gradient } from './gradient';
2 changes: 2 additions & 0 deletions src/pages/index.astro
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
---
import Layout from '@/layouts/layout.astro';
import { Gradient } from '@/components/gradient';
import { Hero } from '@/components/hero';
---

<Layout title="Welcome to Astro.">
<Gradient />
<Hero />
</Layout>

0 comments on commit 5559152

Please sign in to comment.