Skip to content

Commit 46b3373

Browse files
SAB212 - Start Page with new cards (#39)
1 parent 207a5c4 commit 46b3373

19 files changed

Lines changed: 250 additions & 47 deletions

File tree

src/SchoolAccount.Web.Mvc/Features/Accounts/AccountController.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public IActionResult Logout()
3838
{
3939
if (!userContext.IsAuthenticated)
4040
{
41-
return RedirectToAction("Home", "Home");
41+
return RedirectToAction("Start", "Start");
4242
}
4343

4444
HttpContext.Session.Clear();
@@ -54,6 +54,6 @@ public IActionResult LoggedOut()
5454
{
5555
HttpContext.Session.Clear();
5656

57-
return RedirectToAction("Start", "Home");
57+
return RedirectToAction("Start", "Start");
5858
}
5959
}

src/SchoolAccount.Web.Mvc/Features/Home/Home.cshtml

Lines changed: 0 additions & 12 deletions
This file was deleted.

src/SchoolAccount.Web.Mvc/Features/Home/HomeController.cs

Lines changed: 0 additions & 15 deletions
This file was deleted.

src/SchoolAccount.Web.Mvc/Features/Home/HomeViewModel.cs

Lines changed: 0 additions & 3 deletions
This file was deleted.
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
@model SchoolAccount.Web.Mvc.Features.Start.StartViewModel
2+
@{
3+
ViewData["Title"] = "Home Page";
4+
}
5+
6+
<div class="govuk-grid-row">
7+
<div class="govuk-grid-column-two-thirds">
8+
<h1 class="govuk-heading-xl">Sign in to school account</h1>
9+
10+
<p class="govuk-body-l">
11+
School account brings DfE services and guidance together in one place, helping you understand what you need
12+
to do and when.
13+
</p>
14+
15+
<p class="govuk-body">
16+
This is an early version that supports the school census. More services and guidance will follow.
17+
</p>
18+
19+
<p class="govuk-body">
20+
You'll need a DfE sign-in account.
21+
</p>
22+
23+
<a asp-controller="Account" asp-action="Login" class="govuk-button">
24+
Sign in or create an account
25+
<svg class="govuk-button__start-icon" xmlns="http://www.w3.org/2000/svg" width="17.5" height="19"
26+
viewBox="0 0 33 40" aria-hidden="true">
27+
<path fill="currentColor" d="M0 0h13l20 20-20 20H0l20-20z"/>
28+
</svg>
29+
</a>
30+
31+
</div>
32+
</div>
33+
34+
<partial name="_StartCards" />
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
using Microsoft.AspNetCore.Authorization;
2+
using Microsoft.AspNetCore.Mvc;
3+
4+
namespace SchoolAccount.Web.Mvc.Features.Start;
5+
6+
[Route("/")]
7+
public class StartController : Controller
8+
{
9+
[HttpGet, AllowAnonymous]
10+
public async Task<IActionResult> Start()
11+
{
12+
return View(new StartViewModel());
13+
}
14+
}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
namespace SchoolAccount.Web.Mvc.Features.Start;
2+
3+
public record StartViewModel;
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
<div class="govuk-grid-row">
2+
<div class="govuk-grid-column-full">
3+
<h2 class="govuk-heading-l govuk-!-margin-top-4">What you'll get</h2>
4+
5+
<div class="dfe-grid-container start-now-cards">
6+
<div class="dfe-card">
7+
<img src="/assets/images/card-1.jpg" alt="">
8+
<div class="dfe-card-container">
9+
<p class="govuk-body">
10+
Step-by-step guidance to help you complete your statutory returns
11+
</p>
12+
</div>
13+
</div>
14+
15+
<div class="dfe-card">
16+
<img src="/assets/images/card-2.jpg" alt="">
17+
<div class="dfe-card-container">
18+
<p class="govuk-body">
19+
Statuses that show where you are in the process
20+
</p>
21+
</div>
22+
</div>
23+
24+
<div class="dfe-card">
25+
<img src="/assets/images/card-3.jpg" alt="">
26+
<div class="dfe-card-container">
27+
<p class="govuk-body">
28+
Email notifications when something needs your attention
29+
</p>
30+
</div>
31+
</div>
32+
</div>
33+
</div>
34+
</div>

src/SchoolAccount.Web.Mvc/SchoolAccount.Web.Mvc.csproj

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,8 @@
2727
<PackageReference Include="Microsoft.Azure.AppConfiguration.AspNetCore" />
2828
<PackageReference Include="Microsoft.IdentityModel.Protocols.OpenIdConnect" />
2929
</ItemGroup>
30+
31+
<ItemGroup>
32+
<_ContentIncludedByDefault Remove="Features\Home\Home.cshtml" />
33+
</ItemGroup>
3034
</Project>

src/SchoolAccount.Web.Mvc/Styles/app.scss

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,22 +7,21 @@
77
);
88

99
@use 'components/dfe-header-static-sign-out';
10+
@use 'components/card';
1011

1112
* {
1213
font-family: 'Inter', sans-serif!important;
1314
}
1415

15-
.govuk-header__link .govuk-header__logotype{
16+
.govuk-header__link .govuk-header__logotype {
1617
height: 30px;
1718
}
1819

19-
.govuk-header__link:focus .govuk-header__logotype{
20+
.govuk-header__link:focus .govuk-header__logotype {
2021
content: url(/images/department-for-education_black.png);
2122
height: 30px;
2223
}
2324

2425
.govuk-width-container {
2526
max-width: 1140px;
26-
}
27-
28-
27+
}

0 commit comments

Comments
 (0)