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, |
Yoshie Muranaka | c11d389 | 2020-02-19 08:07:40 -0800 | [diff] [blame] | 14 | default: '' |
Derick Montague | 09e45cd | 2020-01-23 15:45:57 -0600 | [diff] [blame] | 15 | } |
| 16 | } |
Yoshie Muranaka | 8d12910 | 2019-12-19 09:51:55 -0800 | [diff] [blame] | 17 | }; |
| 18 | </script> |
| 19 | |
| 20 | <style lang="scss" scoped> |
| 21 | .page-section { |
| 22 | margin-bottom: $spacer * 2; |
| 23 | } |
Yoshie Muranaka | c11d389 | 2020-02-19 08:07:40 -0800 | [diff] [blame] | 24 | |
Yoshie Muranaka | 8d12910 | 2019-12-19 09:51:55 -0800 | [diff] [blame] | 25 | h2 { |
| 26 | @include font-size($h4-font-size); |
| 27 | margin-bottom: $spacer; |
| 28 | &::after { |
| 29 | content: ''; |
| 30 | display: block; |
| 31 | width: 100px; |
| 32 | border: 1px solid $gray-300; |
| 33 | margin-top: 10px; |
| 34 | } |
| 35 | } |
| 36 | </style> |