|
38 | 38 | <>
|
39 | 39 | -->
|
40 | 40 |
|
41 |
| -<Masthead |
42 |
| - title="MHCLG Component Library" |
43 |
| - description="A comprehensive collection of reusable UI components designed for consistency, accessibility, and ease of use across MHCLG's digital products." |
44 |
| - buttonText="Browse Components" |
45 |
| - buttonHref="/components" |
46 |
| -/> |
| 41 | +<div class="homepage-layout"> |
| 42 | + <Masthead |
| 43 | + title="MHCLG Svelte Component Library" |
| 44 | + description="Bring your service or page to life with dynamic content, layout, UI, charts, maps and data visualisations. The well tested and trusted GDS components are coded here in Svelte for data rich digital products." |
| 45 | + buttonHref="/components" |
| 46 | + backgroundColor="#00625E" |
| 47 | + /> |
47 | 48 |
|
48 |
| -<div class="govuk-width-container govuk-main-wrapper govuk-main-wrapper--l"> |
49 |
| - <div class="flex flex-col gap-6"> |
50 |
| - <div> |
51 |
| - <h1 class="govuk-heading-xl mb-6">Introduction</h1> |
52 |
| - <p> |
53 |
| - This library has been developed by members of the MHCLG's Digital, |
54 |
| - Design and Development team to house components for use in the |
55 |
| - organisation's digital products. |
56 |
| - </p> |
| 49 | + <div class="govuk-width-container govuk-main-wrapper govuk-main-wrapper--l"> |
| 50 | + <div class="flex flex-col gap-6"> |
| 51 | + <div> |
| 52 | + <!-- <h1 class="govuk-heading-xl mb-6">Introduction</h1> |
| 53 | + <p> |
| 54 | + This library has been developed by members of the MHCLG's Digital, |
| 55 | + Design and Development team to house components for use in the |
| 56 | + organisation's digital products. |
| 57 | + </p> --> |
| 58 | + <!-- |
| 59 | + <p class="govuk-body"> |
| 60 | + Check out our <a href="/user-guide" class="govuk-link">user guide</a> for |
| 61 | + guidance on how to build components for this library. |
| 62 | + </p> --> |
| 63 | + <DividerLine margin="1rem 0rem"></DividerLine> |
| 64 | + </div> |
57 | 65 |
|
58 |
| - <p class="govuk-body"> |
59 |
| - Check out our <a href="/user-guide" class="govuk-link">user guide</a> for |
60 |
| - guidance on how to build components for this library. |
61 |
| - </p> |
62 |
| - <DividerLine margin="1rem 0rem"></DividerLine> |
63 |
| - </div> |
| 66 | + <div> |
| 67 | + <h2 class="govuk-heading-l mb-6 mt-10">Components</h2> |
| 68 | + <p class="govuk-body"> |
| 69 | + Browse our collection of reusable UI components designed for |
| 70 | + consistency and accessibility. |
| 71 | + </p> |
| 72 | + <p class="govuk-body"> |
| 73 | + <a href="/components" class="govuk-link">View all components</a> in the |
| 74 | + library. |
| 75 | + </p> |
| 76 | + <DividerLine margin="1rem 0rem"></DividerLine> |
| 77 | + </div> |
64 | 78 |
|
65 |
| - <div> |
66 |
| - <h2 class="govuk-heading-l mb-6 mt-10">Components</h2> |
67 |
| - <p class="govuk-body"> |
68 |
| - Browse our collection of reusable UI components designed for consistency |
69 |
| - and accessibility. |
70 |
| - </p> |
71 |
| - <p class="govuk-body"> |
72 |
| - <a href="/components" class="govuk-link">View all components</a> in the library. |
73 |
| - </p> |
| 79 | + <div> |
| 80 | + <h2 class="govuk-heading-l mb-6 mt-10">Playground</h2> |
| 81 | + <p class="govuk-body"> |
| 82 | + The playground is a sandbox space where developers can test code and |
| 83 | + practice combining components. |
| 84 | + </p> |
| 85 | + <p class="govuk-body">All our playground examples are listed below.</p> |
| 86 | + </div> |
74 | 87 | <DividerLine margin="1rem 0rem"></DividerLine>
|
75 | 88 | </div>
|
76 |
| - |
77 |
| - <div> |
78 |
| - <h2 class="govuk-heading-l mb-6 mt-10">Playground</h2> |
79 |
| - <p class="govuk-body"> |
80 |
| - The playground is a sandbox space where developers can test code and |
81 |
| - practice combining components. |
82 |
| - </p> |
83 |
| - <p class="govuk-body">All our playground examples are listed below.</p> |
84 |
| - </div> |
85 |
| - <DividerLine margin="1rem 0rem"></DividerLine> |
86 | 89 | </div>
|
87 | 90 | </div>
|
88 | 91 |
|
89 | 92 | <style>
|
90 |
| - /* .app-content { |
91 |
| - padding: 30px 0px 30px 30px; |
92 |
| - } */ |
| 93 | + /* Allow masthead to break out of container and span full width */ |
| 94 | + .homepage-layout :global(.app-masthead) { |
| 95 | + width: 100%; |
| 96 | + } |
93 | 97 | </style>
|
0 commit comments