Yoshie Muranaka | 8d12910 | 2019-12-19 09:51:55 -0800 | [diff] [blame] | 1 | <template> |
Yoshie Muranaka | c11d389 | 2020-02-19 08:07:40 -0800 | [diff] [blame] | 2 | <div class="page-section"> |
3 | <h2 v-if="sectionTitle">{{ sectionTitle }}</h2> | ||||
Yoshie Muranaka | 8d12910 | 2019-12-19 09:51:55 -0800 | [diff] [blame] | 4 | <slot /> |
Yoshie Muranaka | c11d389 | 2020-02-19 08:07:40 -0800 | [diff] [blame] | 5 | </div> |
Yoshie Muranaka | 8d12910 | 2019-12-19 09:51:55 -0800 | [diff] [blame] | 6 | </template> |
7 | |||||
8 | <script> | ||||
9 | export default { | ||||
10 | name: 'PageSection', | ||||
Derick Montague | 09e45cd | 2020-01-23 15:45:57 -0600 | [diff] [blame] | 11 | props: { |
12 | sectionTitle: { | ||||
13 | type: String, | ||||
Derick Montague | 602e98a | 2020-10-21 16:20:00 -0500 | [diff] [blame] | 14 | default: '', |
15 | }, | ||||
16 | }, | ||||
Yoshie Muranaka | 8d12910 | 2019-12-19 09:51:55 -0800 | [diff] [blame] | 17 | }; |
18 | </script> | ||||
19 | |||||
20 | <style lang="scss" scoped> | ||||
Ed Tanous | 9c72979 | 2024-03-23 14:56:34 -0700 | [diff] [blame^] | 21 | @import '@/assets/styles/bmc/helpers/_index.scss'; |
22 | @import '@/assets/styles/bootstrap/_helpers.scss'; | ||||
23 | |||||
Yoshie Muranaka | 8d12910 | 2019-12-19 09:51:55 -0800 | [diff] [blame] | 24 | .page-section { |
SurenNeware | 8ff0852 | 2020-08-28 20:01:55 +0530 | [diff] [blame] | 25 | margin-bottom: $spacer * 4; |
Yoshie Muranaka | 8d12910 | 2019-12-19 09:51:55 -0800 | [diff] [blame] | 26 | } |
Yoshie Muranaka | c11d389 | 2020-02-19 08:07:40 -0800 | [diff] [blame] | 27 | |
Yoshie Muranaka | 8d12910 | 2019-12-19 09:51:55 -0800 | [diff] [blame] | 28 | h2 { |
Dixsie Wolmers | be88c61 | 2020-07-20 13:29:54 -0500 | [diff] [blame] | 29 | @include font-size($h3-font-size); |
Yoshie Muranaka | 8d12910 | 2019-12-19 09:51:55 -0800 | [diff] [blame] | 30 | margin-bottom: $spacer; |
Yoshie Muranaka | 8d12910 | 2019-12-19 09:51:55 -0800 | [diff] [blame] | 31 | } |
32 | </style> |