Skip to content

Commit e4b53ea

Browse files
committed
added landing page, fixes #72
1 parent 6ac3d3e commit e4b53ea

File tree

7 files changed

+37
-12
lines changed

7 files changed

+37
-12
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,4 @@ _build
1616
.idea
1717
rebar3.crashdump
1818
ct_log
19+
.DS_Store

priv/ui/resources/public/css/holiday.css

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,17 @@ footer {
3636
padding: 0 1rem;
3737
}
3838

39+
h1.title.landing-title {
40+
font-weight: normal;
41+
margin-bottom: 2rem;
42+
font-size: 3.5rem;
43+
}
44+
45+
img.landing-image {
46+
border: 3px solid rgba(157,157,157,.2);
47+
border-radius: 4px;
48+
}
49+
3950
.section {
4051
font-size: 1.2rem
4152
}
255 KB
Loading
215 KB
Loading

priv/ui/src/holiday_ping_ui/common/views.cljs

Lines changed: 21 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
(ns holiday-ping-ui.common.views
2-
(:require [re-frame.core :as re-frame]))
2+
(:require [re-frame.core :as re-frame]
3+
[holiday-ping-ui.routes :as routes]))
34

45
;; HELPER VIEWS
56
(defn message-view []
@@ -60,15 +61,26 @@
6061
"GitHub"]]
6162
[:div.navbar-end [user-info-view]]]]])
6263

63-
(defn footer-view
64+
(defn landing-view
6465
[]
65-
[:footer.footer
66-
[:div.container
67-
[:div.content.has-text-centered
68-
[:p [:strong "HolidayPing"] " by "
69-
[:a {:href "https://github.com/lambdaclass/" :target "_blank"} "LambdaClass"] "."]
70-
[:p [:a.icon {:href "https://github.com/lambdaclass/holiday_ping"}
71-
[:i.fa.fa-github]]]]]])
66+
[section
67+
[:div.has-text-centered
68+
[:br]
69+
[:h1.title.is-1.has-text-primary.landing-title "Don't forget your time off ever again"]
70+
[:h3.subtitle.is-4 "Let HolidayPing send your reminders and enjoy your daiquiri"]
71+
[:br]
72+
[:br]
73+
[:a.button.is-success.is-large
74+
{:href (routes/url-for :login)}
75+
[:span.icon [:i.fa.fa-calendar-check-o]]
76+
[:span "Sign in or register"]]
77+
[:br]
78+
[:br]
79+
[:br]
80+
[:div.columns.is-centered
81+
[:div.column.is-two-thirds
82+
[:figure.image.is-3by2
83+
[:img.landing-image {:src "/img/calendar.png"}]]]]]])
7284

7385
(defn loading-view
7486
[]

priv/ui/src/holiday_ping_ui/core.cljs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@
2020

2121
[holiday-ping-ui.config :as config]))
2222

23-
(def views {:channel-list [channels/list-view]
23+
(def views {:landing [common/landing-view]
24+
:channel-list [channels/list-view]
2425
:channel-edit [channels/edit-view]
2526
:channel-create [channels/create-view]
2627
:login [auth/login-view]

priv/ui/src/holiday_ping_ui/routes.cljs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
[re-frame.core :as re-frame]))
55

66
;; maybe slugify names instead of having to put a regex here?
7-
(def app-routes ["/" [["" :channel-list]
7+
(def app-routes ["/" [["" :landing]
88
["channels/new/" :channel-create]
99
[["channels/" [#".+" :channel] "/edit"] :channel-edit]
1010
[["channels/" [#".+" :channel] "/holidays"] :holidays]
@@ -44,7 +44,7 @@
4444
(loging, register, etc.)."
4545
[view]
4646
(contains?
47-
#{:login :register :github-callback :not-verified
47+
#{:landing :login :register :github-callback :not-verified
4848
:register-confirm :email-sent :register-confirm-error :resend-confirmation
4949
:request-password-reset :submit-password-reset :password-reset-sent}
5050
view))

0 commit comments

Comments
 (0)