Skip to main content

These components are for prototyping the GOV.UK app, not for use in production.

Home

The app’s Home tab, as a user sees it once they’ve chosen some topics, set their council and visited some pages: the header and search, then the Topics, Your local services and Pages you’ve visited widgets, and a way to give feedback.

From the app: Home, the root of the Home tab, with its topics, local services and recent activity widgets. To start a prototype from it, copy the folder src/templates/home/ from the repository.

When to start from it

  • Prototyping a new widget on Home, or a change to one.
  • Prototyping a journey that starts on Home, such as from a topic or a page the user has visited.
  • Showing a new feature in the place a user would find it, in the app as it is.

Screens

The journey starts on the first. Open one to try it, in a phone.

Home

The root of the Home tab. Your topics and All topics switch the topics shown; the local council and the pages visited open GOV.UK in the browser.

index.html

Open Home

Using it

  • The page has a comment at its top saying what to change and what to leave.
  • The topics, Edit, See all and Give feedback go nowhere, as the library has no screens for them. Give a row an href to a page of yours to make it open one.
  • Searching isn’t here: the field takes typing, but there are no results.
  • Chat and Settings on the tab bar open the Chat and Settings templates, if they’re beside this one.

Components it uses

Sources

The app’s iOS screens it was taken from
  • iOS: HomeViewController in govuk-once/govuk-mobile-ios-app/Production/govuk_ios/ViewControllers/HomeViewController.swift at 3813aa2a
  • iOS: HomeContentView, its widgets in order in govuk-once/govuk-mobile-ios-app/Production/govuk_ios/Views/Home/HomeContentView.swift at 3813aa2a
  • iOS: TopicsWidgetView in govuk-once/govuk-mobile-ios-app/Production/govuk_ios/Views/Home/Topics/TopicsWidgetView.swift at 3813aa2a
  • iOS: StoredLocalAuthorityWidgetView in govuk-once/govuk-mobile-ios-app/Production/govuk_ios/Views/Home/LocalAuthority/StoredLocalAuthorityWidgetView.swift at 3813aa2a
  • iOS: RecentActivityWidgetView in govuk-once/govuk-mobile-ios-app/Production/govuk_ios/Views/Home/RecentActivity/RecentActivityWidgetView.swift at 3813aa2a