Yoshie Muranaka | 8d12910 | 2019-12-19 09:51:55 -0800 | [diff] [blame] | 1 | <template> |
| 2 | <section class="page-section"> |
| 3 | <h2>{{ sectionTitle }}</h2> |
| 4 | <slot /> |
| 5 | </section> |
| 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, |
| 14 | required: true |
| 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 | } |
| 24 | h2 { |
| 25 | @include font-size($h4-font-size); |
| 26 | margin-bottom: $spacer; |
| 27 | &::after { |
| 28 | content: ''; |
| 29 | display: block; |
| 30 | width: 100px; |
| 31 | border: 1px solid $gray-300; |
| 32 | margin-top: 10px; |
| 33 | } |
| 34 | } |
| 35 | </style> |