Skip to content

Commit 42c38c8

Browse files
committed
Better naming for the form container div.
1 parent cc08f45 commit 42c38c8

File tree

6 files changed

+36
-36
lines changed

6 files changed

+36
-36
lines changed

FrontEnd/styles/portal.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@
1616
// Styles for authentication pages (login, signup, etc.)
1717
// -------------------------------------------------------------------------
1818

19-
.portal-page {
19+
.portal-form-container {
2020
height: 55vh;
21-
padding-top: 10%;
21+
padding: 10%;
2222
}
2323

2424
.portal-form-inputs {

Sources/App/Views/Portal/ForgotPassword+View.swift

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,27 +2,27 @@ import Plot
22
import Foundation
33

44
enum ForgotPassword {
5-
5+
66
struct Model {
77
var errorMessage: String = ""
88
}
9-
9+
1010
class View: PublicPage {
11-
11+
1212
let model: Model
13-
13+
1414
init(path: String, model: Model) {
1515
self.model = model
1616
super.init(path: path)
1717
}
18-
18+
1919
override func pageTitle() -> String? {
2020
"Forgot Password"
2121
}
22-
22+
2323
override func content() -> Node<HTML.BodyContext> {
2424
.div(
25-
.class("portal-page"),
25+
.class("portal-form-container"),
2626
.h2("An email will be sent with a reset code"),
2727
.forgotPasswordForm(),
2828
.text(model.errorMessage)

Sources/App/Views/Portal/Portal+View.swift

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,27 +2,27 @@ import Plot
22
import Foundation
33

44
enum PortalPage {
5-
5+
66
struct Model {
77
var errorMessage: String = ""
88
}
9-
9+
1010
class View: PublicPage {
11-
11+
1212
let model: Model
13-
13+
1414
init(path: String, model: Model) {
1515
self.model = model
1616
super.init(path: path)
1717
}
18-
18+
1919
override func pageTitle() -> String? {
2020
"Portal"
2121
}
22-
22+
2323
override func content() -> Node<HTML.BodyContext> {
2424
.div(
25-
.class("portal-page"),
25+
.class("portal-form-container"),
2626
.h2("Portal"),
2727
.logoutButton(),
2828
.deleteButton(),
@@ -45,7 +45,7 @@ extension Node where Context: HTML.BodyContext {
4545
)
4646
)
4747
}
48-
48+
4949
static func deleteButton() -> Self {
5050
.form(
5151
.class("portal-form-inputs"),

Sources/App/Views/Portal/Signup+View.swift

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,23 +6,23 @@ enum Signup {
66
struct Model {
77
var errorMessage: String = ""
88
}
9-
9+
1010
class View: PublicPage {
11-
11+
1212
let model: Model
13-
13+
1414
init(path: String, model: Model) {
1515
self.model = model
1616
super.init(path: path)
1717
}
18-
18+
1919
override func pageTitle() -> String? {
2020
"Sign up"
2121
}
22-
22+
2323
override func content() -> Node<HTML.BodyContext> {
2424
.div(
25-
.class("portal-page"),
25+
.class("portal-form-container"),
2626
.h2("Signup"),
2727
.signupForm(),
2828
.text(model.errorMessage)

Sources/App/Views/Portal/Successful+Password+Change.swift

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,23 +6,23 @@ enum SuccessfulChange {
66
struct Model {
77
var successMessage: String = ""
88
}
9-
9+
1010
class View: PublicPage {
11-
11+
1212
let model: Model
13-
13+
1414
init(path: String, model: Model) {
1515
self.model = model
1616
super.init(path: path)
1717
}
18-
18+
1919
override func pageTitle() -> String? {
2020
"Success"
2121
}
22-
22+
2323
override func content() -> Node<HTML.BodyContext> {
2424
.div(
25-
.class("portal-page"),
25+
.class("portal-form-container"),
2626
.text(self.model.successMessage),
2727
.loginRedirectButton()
2828
)

Sources/App/Views/Portal/Verify+View.swift

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,28 +2,28 @@ import Plot
22
import Foundation
33

44
enum Verify {
5-
5+
66
struct Model {
77
var email: String
88
var errorMessage: String = ""
99
}
10-
10+
1111
class View: PublicPage {
12-
12+
1313
let model: Model
14-
14+
1515
init(path: String, model: Model) {
1616
self.model = model
1717
super.init(path: path)
1818
}
19-
19+
2020
override func pageTitle() -> String? {
2121
"Verify"
2222
}
23-
23+
2424
override func content() -> Node<HTML.BodyContext> {
2525
.div(
26-
.class("portal-page"),
26+
.class("portal-form-container"),
2727
.h2("Please enter the confirmation code sent to your email"),
2828
.verifyForm(email: model.email),
2929
.text(model.errorMessage)

0 commit comments

Comments
 (0)