Skip to content

Commit

Permalink
Begin work on UI design improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
Peter York committed Aug 1, 2024
1 parent 9d63acf commit b635188
Show file tree
Hide file tree
Showing 3 changed files with 132 additions and 17 deletions.
54 changes: 54 additions & 0 deletions src/lib/shared/SchemeSummaryArea.svelte
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
<DateInput
label="Date of design review"
bind:value={$state.summary.dateDesignReview}
/>
<TextInput
label="Scheme reference"
bind:value={$state.summary.schemeReference}
/>
<TextInput label="Scheme name" bind:value={$state.summary.schemeName} />
<TextArea label="Scheme summary" bind:value={$state.summary.schemeSummary} />
<TextArea
label="Scheme information reviewed"
bind:value={$state.summary.schemeInfoReviewed}
/>

<Select
label="Authority"
emptyOption
choices={pairs(authorities)}
bind:value={$state.summary.authority}
/>
<Select
label="Transport / Combined Authority"
emptyOption
choices={pairs(transportOrCombinedAuthorities)}
bind:value={$state.summary.transportOrCombinedAuthority}
/>
<SelectWithCustom
label="Region"
emptyOption
choices={pairs(regions)}
bind:value={$state.summary.region}
/>
<SelectWithCustom
label="Funding programme"
emptyOption
choices={pairs(fundingProgrammes)}
bind:value={$state.summary.fundingProgramme}
/>
<SelectWithCustom
label="Design stage"
emptyOption
choices={pairs(designStages)}
bind:value={$state.summary.designStage}
/>
<TextArea
label="Funding conditions"
bind:value={$state.summary.fundingConditions}
/>

<TextInput
label="Inspector email address"
bind:value={$state.summary.inspectorEmail}
/>
52 changes: 52 additions & 0 deletions src/lib/shared/SchemeSummaryRoute.svelte
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
<DateInput
label="Date of design review"
bind:value={$state.summary.dateDesignReview}
/>
<TextInput
label="Scheme reference"
bind:value={$state.summary.schemeReference}
/>
<TextInput label="Scheme name" bind:value={$state.summary.schemeName} />
<TextArea label="Scheme summary" bind:value={$state.summary.schemeSummary} />
<TextArea
label="Scheme information reviewed"
bind:value={$state.summary.schemeInfoReviewed}
/>

<AutocompleteTextInput
label="Authority"
name="Authority"
options={pairs(authorities)}
bind:value={$state.summary.authority}
/>
<AutocompleteTextInput
label="Transport / Combined Authority"
name="Transport / Combined Authority"
options={pairs(transportOrCombinedAuthorities)}
bind:value={$state.summary.transportOrCombinedAuthority}
/>
<SelectWithCustom
label="Region"
emptyOption
choices={pairs(regions)}
bind:value={$state.summary.region}
/>
<Radio
legend="Funding programme"
choices={pairs(fundingProgrammes)}
bind:value={$state.summary.fundingProgramme}
/>
<Radio
legend="Design stage"
choices={pairs(designStages)}
bind:value={$state.summary.designStage}
/>
<TextArea
label="Funding conditions"
bind:value={$state.summary.fundingConditions}
/>

<TextInput
label="Inspector email address"
bind:value={$state.summary.inspectorEmail}
/>
43 changes: 26 additions & 17 deletions src/routes/+layout.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import "../style/main.css";
// @ts-expect-error no declarations
import { initAll } from "govuk-frontend";
import { WarningText } from "govuk-svelte";
import { AlphaBanner, WarningText } from "govuk-svelte";
import { page } from "$app/stores";
import { getTitle } from "$lib/nav";
Expand All @@ -12,23 +12,32 @@
<svelte:head>
<title>{getTitle($page.url.pathname)}</title>
</svelte:head>

<WarningText>
This is an experimental tool by <a href="mailto:[email protected]">
Dustin
</a>
and
<a href="mailto:[email protected]">Pete</a>
. Use only for internal testing. Please give feedback in the
<a
href="https://departmentfortransportuk.sharepoint.com/:x:/r/sites/ATE-Data-and-DigitalRLG-ATE-ATE/Shared%20Documents/ATIP/ATE%20Tools%202024%20Feedback%20Log_V2.xlsx?d=w31a14d35e31f46a8b9cf6f4f697b2692&csf=1&web=1&e=jLUWFN"
target="_blank"
>
Web Tools tab
</a>
.
</WarningText>
<div class="govuk-width-container">
<header class="govuk-header">
<img class="ate-logo" src="/assets/images/ATE-Logo.webp" />
</header>
</div>
<div class="sub-header-border" />
<div class="govuk-width-container">
<AlphaBanner />
</div>

<div class="govuk-prose">
<slot />
</div>

<style>
.govuk-header {
background: white;
height: 150px;
}
.sub-header-border {
width: 100vw;
margin-left: -8px;
border-bottom: 0.5rem solid #007161;
}
.ate-logo {
height: 90%;
background: white;
}
</style>

0 comments on commit b635188

Please sign in to comment.