Skip to content

Commit

Permalink
fix(headers): 모바일 반응을 위한 viewport 추가,일부 css 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
mcauto committed Oct 2, 2021
1 parent 98ea7f4 commit 44b66bc
Show file tree
Hide file tree
Showing 4 changed files with 77 additions and 25 deletions.
2 changes: 1 addition & 1 deletion assets/css/_device.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ $breakpoint-mobile: 840px;
$breakpoint-tablet: 1200px;

@mixin mobile {
@media(max-width: #{$breakpoint-mobile}) {
@media (min-width: 0px) and (max-width: #{$breakpoint-mobile}) {
@content;
}
}
Expand Down
16 changes: 12 additions & 4 deletions components/footer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -111,10 +111,7 @@ footer {
padding-left: 64px;
width: 1200px;
margin: auto auto 32px auto;
.copyrights {
margin-left: auto;
margin-right: 64px;
}
.sns {
display: flex;
img {
Expand All @@ -126,6 +123,17 @@ footer {
margin-right: 32px;
}
}
.copyrights {
margin-left: auto;
padding-right: 64px;
font-style: normal;
font-weight: normal;
font-size: 16px;
line-height: 24px;
text-align: center;
letter-spacing: -0.02em;
}
}
}
</style>
5 changes: 4 additions & 1 deletion nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ import type { NuxtConfig } from "@nuxt/types";

const config: NuxtConfig = {
target: "static",
head:{
meta:[{charset: 'utf-8'}, {name: 'viewport', content: 'width=device-width, initial-scale=1'}]
},
modules: ["@nuxt/content"],
components: true,
content: {
Expand All @@ -13,7 +16,7 @@ const config: NuxtConfig = {
},
},
buildModules: ["@nuxt/typescript-build"],
plugins: ["~/plugins/composition-api", "~/plugins/vue-mq"],
plugins: ["~/plugins/composition-api"],
css:["~/assets/css/reset.css", "~/assets/css/webfont.css", "~/assets/css/_device.scss"],
// image:{
// facebook: "~/assets/img/facebook.png",
Expand Down
79 changes: 60 additions & 19 deletions pages/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -32,26 +32,7 @@ export default defineComponent({
color: #ffffff;
display: flex;
margin: auto;
.quick-link {
display: flex;
flex-direction: row;
align-content: center;
padding-top: 40px;
font-style: normal;
font-weight: bold;
font-size: 16px;
line-height: 24px;
letter-spacing: -0.02em;
cursor: pointer;
img {
width: 16px;
height: 16px;
margin: auto 0 auto 8px;
}
}
@include mobile {
.slogan {
width: 327px;
Expand All @@ -71,6 +52,26 @@ export default defineComponent({
line-height: 24px;
letter-spacing: -0.02em;
}
.quick-link {
display: flex;
flex-direction: row;
align-content: center;
padding-top: 40px;
font-style: normal;
font-weight: bold;
font-size: 16px;
line-height: 24px;
letter-spacing: -0.02em;
cursor: pointer;
img {
width: 16px;
height: 16px;
margin: auto 0 auto 8px;
}
}
}
}
@include tablet {
Expand All @@ -92,6 +93,26 @@ export default defineComponent({
line-height: 24px;
letter-spacing: -0.02em;
}
.quick-link {
display: flex;
flex-direction: row;
align-content: center;
padding-top: 40px;
font-style: normal;
font-weight: bold;
font-size: 16px;
line-height: 24px;
letter-spacing: -0.02em;
cursor: pointer;
img {
width: 16px;
height: 16px;
margin: auto 0 auto 8px;
}
}
}
}
@include desktop {
Expand All @@ -114,6 +135,26 @@ export default defineComponent({
line-height: 36px;
letter-spacing: -0.02em;
}
.quick-link {
display: flex;
flex-direction: row;
align-content: center;
padding-top: 86px;
font-style: normal;
font-weight: bold;
font-size: 24px;
line-height: 24px;
letter-spacing: -0.02em;
cursor: pointer;
img {
width: 24px;
height: 24px;
margin: auto 0 auto 8px;
}
}
}
}
}
Expand Down

0 comments on commit 44b66bc

Please sign in to comment.