Skip to content

Commit 3247c4a

Browse files
committed
feat: linear
1 parent d8f913c commit 3247c4a

2 files changed

Lines changed: 12 additions & 36 deletions

File tree

src/pages/home/index.jsx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -498,10 +498,7 @@ const Home = () => {
498498
/>
499499
</section>
500500
<section className={styles.line} />
501-
{/* <section className={styles.violetGradient}></section> */}
502-
{/* <section className={styles.linearGradient}></section>
503-
<section className={styles.linearGra}></section>
504-
<section className={styles.violet}></section> */}
501+
<section className={styles.linear} />
505502

506503
{/* <section>
507504
<AvatarCard avatar="https://picsum.photos/seed/picsum/300/160" text="Hi, I'm a developer." />

src/pages/home/index.module.less

Lines changed: 11 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -511,45 +511,24 @@
511511
}
512512

513513
.line {
514-
height: 1px;
515-
width: 360px;
516-
background-image: linear-gradient(97deg, #0096ff, #bb64ff 42%, #f2416b 74%, #eb7500);
517-
}
518-
519-
.violetGradient {
520514
margin: 30px 0;
521-
height: 1px;
522-
width: 360px;
523-
background: #804dee;
524-
background: linear-gradient(180deg, rgb(60 51 80 / 0%) 0%, #804dee 50%, rgb(60 51 80 / 0%) 100%);
525-
background: linear-gradient(180deg, rgb(60 51 80 / 0%) 0%, #804dee 50%, rgb(60 51 80 / 0%) 100%);
526-
}
527-
528-
.linearGradient {
529-
margin: 30px 0;
530-
height: 1px;
515+
height: 2px;
531516
width: 360px;
532-
background: #804dee;
533-
background: linear-gradient(180deg, #804dee 0%, rgb(60 51 80 / 0%) 100%);
534-
background: linear-gradient(180deg, #804dee 0%, rgb(60 51 80 / 0%) 100%);
517+
background-image: linear-gradient(97deg, #0096ff, #bb64ff 42%, #f2416b 74%, #eb7500);
535518
}
536519

537-
.linearGra {
520+
.linear {
538521
margin: 30px 0;
539522
height: 2px;
540523
width: 360px;
541-
background: #804dee;
542-
background: linear-gradient(180deg, rgb(60 51 80 / 0%) 0%, #804dee 100%);
543-
background: linear-gradient(180deg, rgb(60 51 80 / 0%) 0%, #804dee 100%);
544-
}
545-
546-
.violet {
547-
margin: 30px 0;
548-
height: 100px;
549-
width: 1px;
550-
background: #804dee;
551-
background: linear-gradient(-90deg, #804dee 0%, rgb(60 51 80 / 0%) 100%);
552-
background: linear-gradient(-90deg, #804dee 0%, rgb(60 51 80 / 0%) 100%);
524+
background: linear-gradient(
525+
90deg,
526+
rgb(94 223 69 / 0%) 0%,
527+
rgb(202 23 23 / 20%) 23.02%,
528+
rgb(40 11 202 / 67%) 40.41%,
529+
rgb(7 224 18 / 20%) 80.93%,
530+
rgb(99 15 15 / 0%) 95.93%
531+
);
553532
}
554533

555534
/* shift + alt +a

0 commit comments

Comments
 (0)