commit ed7888660e9f476cf95b5a42717066829377036d
parent 1813c1eb5c9029a1fa504567cb6e0cfc48e749f3
Author: Yongbin Kim <iam@yongbin.kim>
Date: Sun, 29 Jan 2023 14:01:47 +0900
Hero 링크 스타일 수정
Signed-off-by: Yongbin Kim <iam@yongbin.kim>
Diffstat:
4 files changed, 5 insertions(+), 10 deletions(-)
diff --git a/components/layout/Hero.module.css b/components/layout/Hero.module.css
@@ -1 +1 @@
-.hero{display:flex;flex-direction:column;position:relative;padding:4rem 0;overflow:hidden;justify-content:center;background-color:#fafdfa;color:#191c1b}.hero.is-small{min-height:10rem}.hero.is-medium{min-height:15rem}.hero.is-large{min-height:20rem}@media(min-width: 40rem){.hero.is-small{min-height:15rem}.hero.is-medium{min-height:20rem}.hero.is-large{min-height:25rem}}.hero.is-primary{background-color:#58fbda;color:#00201a}.hero.is-secondary{background-color:#f5d9ff;color:#30004a}.hero.is-tertiary{background-color:#c7e7ff;color:#001e2e}.hero.is-error{background-color:#ffdad6;color:#410002}@media(prefers-color-scheme: dark){.hero{background-color:#191c1b;color:#e1e3e0}.hero.is-primary{background-color:#005143;color:#58fbda}.hero.is-secondary{background-color:#61317e;color:#f5d9ff}.hero.is-tertiary{background-color:#2a4a5f;color:#c7e7ff}.hero.is-error{background-color:#93000a;color:#ffdad6}}.hero .hero-body{padding:0 2rem}.hero .hero-body :last-child{margin-bottom:0}.hero .hero-body a[href]{color:inherit;text-decoration:underline}/*# sourceMappingURL=Hero.module.css.map */
+.hero{display:flex;flex-direction:column;position:relative;padding:4rem 0;overflow:hidden;justify-content:center;background-color:#fafdfa;color:#191c1b}.hero.is-small{min-height:10rem}.hero.is-medium{min-height:15rem}.hero.is-large{min-height:20rem}@media(min-width: 40rem){.hero.is-small{min-height:15rem}.hero.is-medium{min-height:20rem}.hero.is-large{min-height:25rem}}.hero.is-primary{background-color:#58fbda;color:#00201a}.hero.is-secondary{background-color:#f5d9ff;color:#30004a}.hero.is-tertiary{background-color:#c7e7ff;color:#001e2e}.hero.is-error{background-color:#ffdad6;color:#410002}@media(prefers-color-scheme: dark){.hero{background-color:#191c1b;color:#e1e3e0}.hero.is-primary{background-color:#005143;color:#58fbda}.hero.is-secondary{background-color:#61317e;color:#f5d9ff}.hero.is-tertiary{background-color:#2a4a5f;color:#c7e7ff}.hero.is-error{background-color:#93000a;color:#ffdad6}}.hero .hero-body{padding:0 2rem}.hero .hero-body :last-child{margin-bottom:0}/*# sourceMappingURL=Hero.module.css.map */
diff --git a/components/layout/Hero.module.css.map b/components/layout/Hero.module.css.map
@@ -1 +1 @@
-{"version":3,"sourceRoot":"","sources":["Hero.module.scss","../../styles/core/_responsive.scss","../../styles/core/_colors.scss"],"names":[],"mappings":"AA2BA,MACE,aACA,sBACA,kBACA,QAtBQ,OAuBR,gBACA,uBASE,yBACA,cAtBA,eACE,iBADF,gBACE,iBADF,eACE,iBCjBF,yBDgBA,eACE,iBADF,gBACE,iBADF,eACE,kBAwBA,iBACE,iBEiGM,QFhGN,MEiGS,QFnGX,mBACE,iBEiGM,QFhGN,MEiGS,QFnGX,kBACE,iBEiGM,QFhGN,MEiGS,QFnGX,eACE,iBEiGM,QFhGN,MEiGS,QAjBf,mCFrGF,MAeI,yBACA,cAGE,iBACE,iBEiGM,QFhGN,MEiGS,QFnGX,mBACE,iBEiGM,QFhGN,MEiGS,QFnGX,kBACE,iBEiGM,QFhGN,MEiGS,QFnGX,eACE,iBEiGM,QFhGN,MEiGS,SF5Ff,iBACE,QA5CW,OA8CX,6BACE,gBAGF,yBACE,cACA","file":"Hero.module.css"}
-\ No newline at end of file
+{"version":3,"sourceRoot":"","sources":["Hero.module.scss","../../styles/core/_responsive.scss","../../styles/core/_colors.scss"],"names":[],"mappings":"AA2BA,MACE,aACA,sBACA,kBACA,QAtBQ,OAuBR,gBACA,uBASE,yBACA,cAtBA,eACE,iBADF,gBACE,iBADF,eACE,iBCjBF,yBDgBA,eACE,iBADF,gBACE,iBADF,eACE,kBAwBA,iBACE,iBEiGM,QFhGN,MEiGS,QFnGX,mBACE,iBEiGM,QFhGN,MEiGS,QFnGX,kBACE,iBEiGM,QFhGN,MEiGS,QFnGX,eACE,iBEiGM,QFhGN,MEiGS,QAjBf,mCFrGF,MAeI,yBACA,cAGE,iBACE,iBEiGM,QFhGN,MEiGS,QFnGX,mBACE,iBEiGM,QFhGN,MEiGS,QFnGX,kBACE,iBEiGM,QFhGN,MEiGS,QFnGX,eACE,iBEiGM,QFhGN,MEiGS,SF5Ff,iBACE,QA5CW,OA8CX,6BACE","file":"Hero.module.css"}
+\ No newline at end of file
diff --git a/components/layout/Hero.module.scss b/components/layout/Hero.module.scss
@@ -57,10 +57,5 @@ $_heights: (
:last-child {
margin-bottom: 0;
}
-
- a[href] {
- color: inherit;
- text-decoration: underline;
- }
}
}
diff --git a/components/layout/Hero.tsx b/components/layout/Hero.tsx
@@ -9,7 +9,7 @@ export interface HeroProps extends HTMLAttributes<HTMLDivElement> {
size?: 'small' | 'medium' | 'large'
}
-export default function Hero(props: HeroProps) {
+export default function Hero (props: HeroProps) {
const { className, color, size, children, ...restProps } = props
return (
@@ -18,7 +18,7 @@ export default function Hero(props: HeroProps) {
className,
styles['hero'],
color ? styles[`is-${color}`] : null,
- size ? styles[`is-${size}`] : null
+ size ? styles[`is-${size}`] : null,
)}
{...restProps}
>