Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ const AverageMetricsChart = ({ data }: Props) => {
const chartOptions: Highcharts.Options = {
chart: {
type: 'areaspline',
width: 1000,
height: 450,
backgroundColor: '#FFFFFF',
zooming: {
Expand Down Expand Up @@ -176,6 +175,20 @@ const AverageMetricsChart = ({ data }: Props) => {
pointPlacement: 'on',
},
],
responsive: {
rules: [
{
condition: {
maxWidth: 1000,
},
chartOptions: {
chart: {
width: null,
},
},
},
],
},
credits: { enabled: false },
}

Expand Down
4 changes: 3 additions & 1 deletion app/(landing)/(home)/_ui/average-metrics-section/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,9 @@ const AverageMetricsSection = () => {
FROM <span className={cx('date')}>{startDate}</span>TO
<span className={cx('date')}>{endDate}</span>
</div>
<AverageMetricsChart data={chartData} />
<div className={cx('chart-wrapper')}>
<AverageMetricsChart data={chartData} />
</div>
</div>
</div>
</section>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,7 @@
background-color: $color-gray-200;
}
}

.chart-wrapper {
width: 100%;
}
2 changes: 1 addition & 1 deletion app/(landing)/(home)/_ui/hero-section/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const HeroSection = () => {
<br />
참고하거나 공유하고 싶다면
<br />
<Logo className={cx('logo')} width="65" height="39" /> 인베스트메틱에서!
<Logo className={cx('logo')} /> 인베스트메틱에서!
</h1>
<LinkButton href={PATH.SIGN_UP_USER_TYPE} variant="filled" className={cx('button')}>
바로 함께하기
Expand Down
8 changes: 8 additions & 0 deletions app/(landing)/(home)/_ui/hero-section/styles.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,14 @@
display: inline-block;
width: 65px;
height: auto;

@include tablet-md {
width: 42px;
}

@include mobile {
width: 34px;
}
}

.button {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,8 @@
display: flex;
justify-content: center;
gap: 20px;

@include tablet-md {
flex-direction: column;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,10 @@
grid-row: 1 / 3;
}
}

@include tablet-md {
display: flex;
flex-direction: column;
align-items: center;
}
}
13 changes: 13 additions & 0 deletions app/(landing)/(home)/_ui/user-metrics-section/styles.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,17 @@
gap: 20px;
justify-content: center;
margin-top: 36px;

@include tablet-md {
& > div {
padding: 10px;
}
}

@include mobile {
flex-wrap: wrap;
& > div {
width: calc(50% - 10px);
}
}
}
38 changes: 35 additions & 3 deletions shared/styles/base/_mixins.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,19 @@
}

@mixin tablet-sm {
@media (min-width: #{$breakpoint-sm}) and (max-width: #{$breakpoint-md - 1}) {
@media (max-width: #{$breakpoint-md - 1}) {
@content;
}
}

@mixin tablet-md {
@media (min-width: #{$breakpoint-md}) and (max-width: #{$breakpoint-lg - 1}) {
@media (max-width: #{$breakpoint-lg - 1}) {
@content;
}
}

@mixin desktop {
@media (min-width: #{$breakpoint-lg}) and (max-width: #{$breakpoint-xl - 1}) {
@media (max-width: #{$breakpoint-xl - 1}) {
@content;
}
}
Expand All @@ -39,24 +39,52 @@
@extend %base-headline;
font-size: $text-h1;
font-weight: $text-bold;

@include tablet-md {
font-size: $text-h2;
}

@include mobile {
font-size: $text-h3;
}
}

@mixin typo-h2 {
@extend %base-headline;
font-size: $text-h2;
font-weight: $text-bold;

@include tablet-md {
font-size: $text-h3;
}

@include mobile {
font-size: $text-h4;
}
}

@mixin typo-h3 {
@extend %base-headline;
font-size: $text-h3;
font-weight: $text-semibold;

@include tablet-md {
font-size: $text-h4;
}

@include mobile {
font-size: $text-b1;
}
}

@mixin typo-h4 {
@extend %base-headline;
font-size: $text-h4;
font-weight: $text-semibold;

@include tablet-md {
font-size: $text-b1;
}
}

// body
Expand All @@ -70,6 +98,10 @@
@mixin typo-b1 {
@extend %base-body;
font-size: $text-b1;

@include tablet-md {
font-size: $text-b2;
}
}

@mixin typo-b2 {
Expand Down