mirror of
https://github.com/remvze/moodist.git
synced 2025-12-17 08:54:13 +00:00
style: add wrap balancer to desc
This commit is contained in:
parent
31c087ebc8
commit
276639b0d3
4 changed files with 18 additions and 3 deletions
11
package-lock.json
generated
11
package-lock.json
generated
|
|
@ -14,7 +14,8 @@
|
|||
"astro": "^3.2.3",
|
||||
"react": "^18.2.0",
|
||||
"react-dom": "^18.2.0",
|
||||
"react-icons": "4.11.0"
|
||||
"react-icons": "4.11.0",
|
||||
"react-wrap-balancer": "1.1.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@commitlint/cli": "17.7.2",
|
||||
|
|
@ -12544,6 +12545,14 @@
|
|||
"node": ">=0.10.0"
|
||||
}
|
||||
},
|
||||
"node_modules/react-wrap-balancer": {
|
||||
"version": "1.1.0",
|
||||
"resolved": "https://registry.npmjs.org/react-wrap-balancer/-/react-wrap-balancer-1.1.0.tgz",
|
||||
"integrity": "sha512-EhF3jOZm5Fjx+Cx41e423qOv2c2aOvXAtym2OHqrGeMUnwERIyNsRBgnfT3plB170JmuYvts8K2KSPEIerKr5A==",
|
||||
"peerDependencies": {
|
||||
"react": ">=16.8.0 || ^17.0.0 || ^18"
|
||||
}
|
||||
},
|
||||
"node_modules/read-pkg": {
|
||||
"version": "6.0.0",
|
||||
"resolved": "https://registry.npmjs.org/read-pkg/-/read-pkg-6.0.0.tgz",
|
||||
|
|
|
|||
|
|
@ -27,7 +27,8 @@
|
|||
"astro": "^3.2.3",
|
||||
"react": "^18.2.0",
|
||||
"react-dom": "^18.2.0",
|
||||
"react-icons": "4.11.0"
|
||||
"react-icons": "4.11.0",
|
||||
"react-wrap-balancer": "1.1.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@commitlint/cli": "17.7.2",
|
||||
|
|
|
|||
|
|
@ -44,6 +44,7 @@
|
|||
& .desc {
|
||||
margin-top: 5px;
|
||||
color: var(--color-foreground-subtle);
|
||||
line-height: 1.6;
|
||||
}
|
||||
|
||||
& .free {
|
||||
|
|
|
|||
|
|
@ -1,3 +1,5 @@
|
|||
import { Balancer } from 'react-wrap-balancer';
|
||||
|
||||
import { Container } from '@/components/container';
|
||||
|
||||
import styles from './hero.module.css';
|
||||
|
|
@ -18,7 +20,9 @@ export function Hero() {
|
|||
<div className={styles.right} />
|
||||
</div>
|
||||
|
||||
<p className={styles.desc}>Ambient background sounds for focus.</p>
|
||||
<p className={styles.desc}>
|
||||
<Balancer>Ambient background sounds for focus.</Balancer>
|
||||
</p>
|
||||
|
||||
<p className={styles.free}>100% Free</p>
|
||||
</Container>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue