Skip to content

Commit

Permalink
Redesign arriving methods (#524)
Browse files Browse the repository at this point in the history
* Redesign arriving methods

* chore: Auto-fix some lint errors

* Lint

* General title

* chore: Auto-fix some lint errors

---------
  • Loading branch information
AdriMM26 authored Apr 7, 2024
1 parent 9a9798b commit de6cfeb
Showing 1 changed file with 42 additions and 22 deletions.
64 changes: 42 additions & 22 deletions src/views/Home.vue
Original file line number Diff line number Diff line change
Expand Up @@ -177,12 +177,11 @@ const submitDeadline = computed<string>(() =>
number: <b>112</b>
</p>
</Panel>

<Panel title="How to get to HackUPC" size="big">
<div class="travel">
<h2 class="travel__title text-centered">
<FontAwesomeIcon icon="plane-arrival" /> By plane
</h2>
<div>
<div class="panel">
<h2 class="travel__title">How to get and leave HackUPC</h2>
</div>
<Panel title="✈️ By plane">
<h3 class="travel__subtitle text-centered">Arriving</h3>
<p>
Take the metro L9 in either <b>Aeroport T2</b> or
Expand Down Expand Up @@ -224,10 +223,8 @@ const submitDeadline = computed<string>(() =>
This itinerary is completely accessible.
</p>
</div>
<div class="travel__separator"></div>
<h2 class="travel__title margin-bottom">
<FontAwesomeIcon icon="train-subway" /> By train
</h2>
</Panel>
<Panel title="🚂 By train">
<h3 class="travel__subtitle">Arriving</h3>
<p>
If you take the train, you will probably arrive at
Expand Down Expand Up @@ -265,10 +262,8 @@ const submitDeadline = computed<string>(() =>
will have to reach the elevator on the street at Sants Estació.
</p>
</div>
<div class="travel__separator"></div>
<h2 class="travel__title margin-bottom">
<FontAwesomeIcon icon="bus" /> By bus
</h2>
</Panel>
<Panel title="🚌 By bus">
<h3 class="travel__subtitle">Arriving</h3>
<p>
If you are coming by bus you can take one of the following lines
Expand Down Expand Up @@ -303,10 +298,8 @@ const submitDeadline = computed<string>(() =>
This itinerary is completely accessible.
</p>
</div>
<div class="travel__separator"></div>
<h2 class="travel__title margin-bottom">
<FontAwesomeIcon icon="car" /> By car
</h2>
</Panel>
<Panel title="🚗 By car">
<h3 class="travel__subtitle">Arriving</h3>
<p>
If you come by car, you can find a place to park in the top of the
Expand All @@ -318,8 +311,8 @@ const submitDeadline = computed<string>(() =>
Google Maps will know for sure your way back home. Just remember where
you parked your car.
</p>
</div>
</Panel>
</Panel>
</div>
</PanelContainer>
</template>

Expand Down Expand Up @@ -349,6 +342,13 @@ const submitDeadline = computed<string>(() =>
}
}
.block {
display: flex;
flex-direction: row;
align-items: center;
justify-content: center;
}
.wifi {
display: flex;
align-items: center;
Expand Down Expand Up @@ -407,10 +407,30 @@ const submitDeadline = computed<string>(() =>
}
}
.panel {
position: relative;
overflow: hidden;
flex: 1 1 350px;
margin: 16px;
background-color: $contrast-color;
border-radius: $border-radius;
box-shadow: 0 4px 8px 0 rgb(0 0 0 / 20%), 0 6px 20px 0 rgb(0 0 0 / 19%);
color: $text-color;
text-align: left;
}
.travel {
&__title {
margin-top: 0;
margin-bottom: 15px;
position: relative;
overflow: hidden;
flex: 1 1 1300px;
padding: 12px 24px;
margin: 0;
background-color: $primary-color;
border-radius: $border-radius;
color: #fff;
font-size: 20px;
line-height: 1.6;
text-align: center;
}
Expand Down

0 comments on commit de6cfeb

Please sign in to comment.