diff --git a/Sources/Application/Routes/WebClientRoutes.swift b/Sources/Application/Routes/WebClientRoutes.swift index d426ecd..be30a3c 100644 --- a/Sources/Application/Routes/WebClientRoutes.swift +++ b/Sources/Application/Routes/WebClientRoutes.swift @@ -54,7 +54,6 @@ func handleWebClient(request: RouterRequest, response: RouterResponse, next: @es slackRequestGroup.notify(queue: DispatchQueue.global(qos: .default), execute: { serveClientPage(channels: storedChannels, team: storedTeam, users: storedUserCount, response: response) }) -// slackRequestGroup.notify(queue: DispatchQueue.global(qos: .default), work: serveClientPage(channels: storedChannels, team: storedTeam, users: storedUserCount, response: response)) } catch let error { Log.error(error.localizedDescription) try! response.status(.internalServerError).render("error", context: ["error": "uncaught exception: \(error.localizedDescription)"]) @@ -71,11 +70,14 @@ private func serveClientPage(channels: [SlackChannel]?, team: SlackTeam?, users: try response.status(.internalServerError).render("error", context: ["error": "could not load team info"]) return } + var newUsers = (5, 40) + if let users = users { + newUsers = users + } // guard let users = users else { // try response.status(.internalServerError).render("Error", context: ["error": "could not load available user list"]) // return // } - let newUsers = (5, 40) let validList = channels.contains { element in return element.name == "general" } diff --git a/Views/home.stencil b/Views/home.stencil index ba447f3..9fbe63e 100644 --- a/Views/home.stencil +++ b/Views/home.stencil @@ -18,10 +18,10 @@

{{ usersOnline }} users online now out of {{ usersRegistered }} registered.

+ + + diff --git a/public/css/index.css b/public/css/index.css index 5947c3b..99bd440 100644 --- a/public/css/index.css +++ b/public/css/index.css @@ -6,7 +6,7 @@ .menu-container { background-color: white; color: #000; - padding-left: 200px 0; + padding-left: 200px 0; display: flex; justify-content: center; font-family: 'Open Sans', 'helvetica Neue', 'Helvetica', 'Arial', "Lucida Grande", sans-serif; @@ -24,7 +24,7 @@ justify-content: space-around; font-family: "Helvetica Neue", Helvetica, Arial; font-size:x-small; - + text-align: center; } .menu-add-component { @@ -32,25 +32,28 @@ display: flex; justify-content: space-around; width: 300px; - + max-width: 300px; font-family: "Helvetica Neue", Helvetica, Arial; } input.button-primary { - background-color: #DE1E64; + background-color: #E01563; color: #FFF; margin-bottom: 10px; - padding:10px 128px 10px 128px; - + padding:10px 10px 10px 10px; + min-width: 100px; + width: 320px; + max-width: 350px; + white-space: normal; font-family: 'Open Sans', 'Arial', sans-serif; } -input.acronym-field { +input.email-field { font-family: 'Open Sans', 'Arial', sans-serif; border-color: rgb(214,214,214); - - padding:10px 100px 10px 100px; + text-align: center; + padding:10px 10px 10px 10px; margin: 4px; - + width: 320px; } ::-webkit-input-placeholder { font-family: 'Open Sans', 'Arial', sans-serif; @@ -90,6 +93,6 @@ input.acronym-field { margin-bottom:16px; font-size:medium; } -.acronym-field{ +.email-field{ border:1px solid rgb(214, 214, 214); }