Skip to content

Commit

Permalink
style: add gradient line
Browse files Browse the repository at this point in the history
  • Loading branch information
remvze committed Nov 5, 2023
1 parent 287d7b3 commit ea722ea
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 0 deletions.
18 changes: 18 additions & 0 deletions src/components/gradient/gradient.module.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
.gradient {
position: relative;
width: 100%;
height: 5px;
background: linear-gradient(90deg, #fcb0f3, #5b27ec);

&::before {
position: absolute;
z-index: -1;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: inherit;
content: '';
filter: blur(10px);
}
}
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,13 +1,15 @@
---
import Layout from '@/layouts/layout.astro';
import { Gradient } from '@/components/gradient';
import { Hero } from '@/components/hero';
import { App } from '@/components/app';
import { Footer } from '@/components/footer';
import { AboutSection, WhySection, ReadySection } from '@/components/sections';
---

<Layout title="Welcome to Astro.">
<Gradient />
<Hero />
<App client:load />
<AboutSection />
Expand Down

0 comments on commit ea722ea

Please sign in to comment.