Skip to content

Commit a55e713

Browse files
committed
Style Help section according to the mockup
Convert Help buttons into links; render links using 'modals' object and v-for loop Signed-off-by: Olga Bulat <obulat@gmail.com>
1 parent d26dac8 commit a55e713

File tree

1 file changed

+24
-60
lines changed

1 file changed

+24
-60
lines changed

src/components/HelpSection.vue

Lines changed: 24 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -1,58 +1,17 @@
1-
<!-- eslint-disable no-trailing-spaces -->
21
<template>
3-
<div>
4-
<h2 class="title is-2 vocab-h2">Confused? Need Help?</h2>
5-
<p class="help__instructions desktop-hide mobile-show">{{ $t('help.instructions.mobile') }}</p>
6-
<p class="help__instructions mobile-hide desktop-show">{{ $t('help.instructions.desktop') }}</p>
7-
8-
<div class="columns" id="modal-buttons">
9-
<div class="column top-bottom-paddingless">
10-
<button id="cc_license_btn" class="button is-light is-large is-fullwidth help-button"
11-
@click="clickHandler(1)">
12-
<p>
13-
{{ $t('help.what_are_cc_licenses.heading') }}
14-
</p>
15-
</button>
16-
<button id="license_work_btn" class="button is-light is-large is-fullwidth help-button"
17-
@click="clickHandler(2)">
18-
<p>
19-
{{ $t('help.how_licenses_work.heading') }}
20-
</p>
21-
</button>
22-
<button id="icons_meaning_btn" class="button is-light is-large is-fullwidth help-button"
23-
@click="clickHandler(3)">
24-
<p>
25-
{{ $t('help.what_icons_mean.heading') }}
26-
</p>
27-
</button>
28-
<button id="license_communication_btn" class="button is-light is-large is-fullwidth help-button"
29-
@click="clickHandler(7)">
30-
<p>
31-
{{ $t('help.how_licenses_communicated.heading') }}
32-
</p>
33-
</button>
34-
</div>
35-
<div class="column top-bottom-paddingless">
36-
<button id="consideration_btn" class="button is-light is-large is-fullwidth help-button"
37-
@click="clickHandler(4)">
38-
<p>
39-
{{ $t('help.considerations_before_licensing.heading') }}
40-
</p>
41-
</button>
42-
<button id="formal_license_btn" class="button is-light is-large is-fullwidth help-button"
43-
@click="clickHandler(5)">
44-
<p>
45-
{{ $t('help.how_formally_license.heading') }}
46-
</p>
47-
</button>
48-
<button id="license_description_btn" class="button is-light is-large is-fullwidth help-button"
49-
@click="clickHandler(6)">
50-
<p>
51-
{{ $t('help.six_cc_licenses.heading') }}
52-
</p>
53-
</button>
54-
</div>
55-
</div>
2+
<div class="column top-bottom-paddingless">
3+
<h3 class="vocab-h3">{{$t('help.heading')}}</h3>
4+
<ul class="help-links">
5+
<li class="help-link"
6+
v-for="(modal, idx) in this.modals"
7+
:key="idx">
8+
<b-icon
9+
icon-pack="fas"
10+
icon="angle-right" />
11+
<a class="vocab-body-big vocab-tomato"
12+
@click="clickHandler(idx)">{{$t(`help.${modal.title}.heading`)}}</a>
13+
</li>
14+
</ul>
5615

5716
<b-modal :active.sync="modals[1].status">
5817
<header class="modal-card-head">
@@ -289,7 +248,17 @@ export default {
289248
}
290249
</script>
291250
<style scoped>
292-
251+
.help-links {
252+
list-style-position: inside;
253+
}
254+
.help-link {
255+
padding-bottom: 8px;
256+
}
257+
.help-link .icon {
258+
vertical-align: text-bottom;
259+
margin-left: -3px;
260+
margin-right: 8px;
261+
}
293262
table svg {
294263
width: 28px !important;
295264
height: 28px !important;
@@ -348,11 +317,6 @@ export default {
348317
.help-h5 {
349318
font-weight: bold;
350319
}
351-
.vocab-h2 {
352-
font-size: 50px;
353-
text-align: center;
354-
margin-bottom: 1%;
355-
}
356320
.edu-icons-section {
357321
margin-top: 1.5%;
358322
}

0 commit comments

Comments
 (0)