Skip to content

Commit

Permalink
fix(index): adjust rwd styles
Browse files Browse the repository at this point in the history
  • Loading branch information
tingchun0113 committed Aug 14, 2022
1 parent 3556224 commit 0265278
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 12 deletions.
17 changes: 16 additions & 1 deletion components/intro/Intro.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
<core-h2
:title="$t('whatIsPyConAPAC')"
:is-bulleted="isBulleted"
class="intro-h2"
></core-h2>
<p class="info-section-description">
{{ $t('whatIsPyConAPACContent') }}
Expand All @@ -14,14 +15,20 @@
<core-h2
:title="$t('pyConWillBeHeldOnline')"
:is-bulleted="isBulleted"
class="intro-h2"
></core-h2>
<p class="info-section-description">
{{ $t('pyConWillBeHeldOnlineContent') }}
</p>
</div>
</div>

<core-h2 :title="$t('pyconIntro')" :is-bulleted="isBulleted"> </core-h2>
<core-h2
:title="$t('pyconIntro')"
:is-bulleted="isBulleted"
class="intro-h2 intro-milestones-title"
>
</core-h2>
<div class="intro-milestones">
<intro-milestone
v-for="(item, index) in $t('milestone')"
Expand Down Expand Up @@ -82,4 +89,12 @@ export default {
@apply pl-0 md:pl-14 my-0 mx-auto;
@apply text-justify;
}
.intro-h2 {
@apply mx-auto justify-center md:justify-start;
}
.intro-milestones-title {
@apply mb-14 md:mb-7;
}
</style>
4 changes: 1 addition & 3 deletions components/intro/IntroMilestone.vue
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,6 @@ export default {
.milestone__unit {
@apply text-2xl;
@media (max-width: 833px) {
position: relative;
bottom: -30px;
font-size: 1.2rem;
}
}
Expand All @@ -60,7 +58,7 @@ export default {
.milestone__unit {
@apply mb-2;
@media (max-width: 833px) {
top: -8px;
@apply mb-12;
}
}
</style>
32 changes: 24 additions & 8 deletions pages/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -44,27 +44,29 @@
{{ $t('callForProposals') }}
</text-button>
</div>
<div class="text-button-wrapper">
<text-button to="/registration/tickets">{{
$t('getTicket')
}}</text-button>
</div>
</div>
</div>

<i18n-page-wrapper>
<intro :is-bulleted="isBulleted"></intro>
<div class="text-button-wrapper">
<text-button to="/registration/tickets">{{
$t('getTicket')
}}</text-button>
</div>
<div class="bulletin-section">
<core-h2
:title="$t('bulletinList')"
:is-bulleted="isBulleted"
class="index-h2"
></core-h2>
<bulletin-card-collection></bulletin-card-collection>
</div>
<div id="sponsor" class="sponsor-section">
<core-h2
:title="$t('sponsorList')"
:is-bulleted="isBulleted"
class="index-h2"
></core-h2>
<sponsor-card-collection
v-for="(leveledSponsors, i) in sponsorsData"
Expand Down Expand Up @@ -180,10 +182,19 @@ export default {
@media (max-width: 567px) {
.page-home .page-homeLandingFocus::after {
background-position: -40vw center;
background-size: 200vw;
background-position: -35vw center;
background-size: 150vw;
background-repeat: no-repeat;
}
.page-home__title {
left: 50%;
margin-left: -50vw;
margin-right: -50vw;
max-width: 100vw;
position: relative;
right: 50%;
width: 100vw;
}
}
.page-home__title {
Expand All @@ -206,8 +217,13 @@ export default {
@apply pt-12 lg:mx-auto lg:w-full;
}
.index-h2 {
@apply mx-auto justify-center md:justify-start;
}
.text-button-wrapper {
@apply flex justify-center mt-16 mb-28;
@apply mt-48 mb-12 md:mt-32 md:mb-28;
@apply w-full flex justify-center md:justify-start;
}
.fade-enter-active,
Expand Down

0 comments on commit 0265278

Please sign in to comment.