File tree Expand file tree Collapse file tree 6 files changed +36
-36
lines changed Expand file tree Collapse file tree 6 files changed +36
-36
lines changed Original file line number Diff line number Diff line change 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 {
Original file line number Diff line number Diff line change @@ -2,27 +2,27 @@ import Plot
22import Foundation
33
44enum 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)
Original file line number Diff line number Diff line change @@ -2,27 +2,27 @@ import Plot
22import Foundation
33
44enum 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 " ) ,
Original file line number Diff line number Diff 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)
Original file line number Diff line number Diff 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 )
Original file line number Diff line number Diff line change @@ -2,28 +2,28 @@ import Plot
22import Foundation
33
44enum 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)
You can’t perform that action at this time.
0 commit comments