From 6e646280c29e9e60574b3adbc79983c169e33914 Mon Sep 17 00:00:00 2001 From: Teemu Patja Date: Sun, 12 Feb 2017 22:25:32 +0200 Subject: [PATCH] WIP: new UX * semantic UI + less based UI styling * header, tabs, user-profile component * store avatar URL in DB, show image in user * unify :user and :user-profile in app-db for simplicity --- .../20170212181519-store-avatar-url.down.sql | 0 .../20170212181519-store-avatar-url.up.sql | 2 + resources/public/img/icon_dropdown.svg | 18 +++ resources/sql/queries.sql | 5 +- resources/templates/home.html | 8 +- src/clj/commiteth/db/users.clj | 3 +- src/clj/commiteth/github/core.clj | 1 + src/clj/commiteth/middleware.clj | 2 - src/clj/commiteth/routes/home.clj | 8 +- src/clj/commiteth/routes/redirect.clj | 5 +- src/clj/commiteth/routes/services.clj | 3 +- src/cljs/commiteth/activity.cljs | 6 + src/cljs/commiteth/core.cljs | 136 ++++++++++-------- src/cljs/commiteth/db.cljs | 1 - src/cljs/commiteth/handlers.cljs | 9 +- src/cljs/commiteth/manage.cljs | 1 - src/cljs/commiteth/subscriptions.cljs | 2 - src/cljs/commiteth/svg.cljs | 2 +- src/less/style.less | 123 ++++++++++++++++ test/cljs/commiteth/cards.cljs | 99 +++++++++---- 20 files changed, 324 insertions(+), 110 deletions(-) create mode 100644 resources/migrations/20170212181519-store-avatar-url.down.sql create mode 100644 resources/migrations/20170212181519-store-avatar-url.up.sql create mode 100644 resources/public/img/icon_dropdown.svg create mode 100644 src/cljs/commiteth/activity.cljs create mode 100644 src/less/style.less diff --git a/resources/migrations/20170212181519-store-avatar-url.down.sql b/resources/migrations/20170212181519-store-avatar-url.down.sql new file mode 100644 index 0000000..e69de29 diff --git a/resources/migrations/20170212181519-store-avatar-url.up.sql b/resources/migrations/20170212181519-store-avatar-url.up.sql new file mode 100644 index 0000000..94d509b --- /dev/null +++ b/resources/migrations/20170212181519-store-avatar-url.up.sql @@ -0,0 +1,2 @@ +ALTER TABLE public.users + ADD avatar_url VARCHAR(255); diff --git a/resources/public/img/icon_dropdown.svg b/resources/public/img/icon_dropdown.svg new file mode 100644 index 0000000..64c31be --- /dev/null +++ b/resources/public/img/icon_dropdown.svg @@ -0,0 +1,18 @@ + + + + C09316C0-28C3-4D2D-AF57-806E1D6C1FE6 + Created with sketchtool. + + + + + + + + + + + + + \ No newline at end of file diff --git a/resources/sql/queries.sql b/resources/sql/queries.sql index 5082030..3a5aa30 100644 --- a/resources/sql/queries.sql +++ b/resources/sql/queries.sql @@ -3,19 +3,20 @@ -- :name create-user! :
-
-
-{% style "//cdn.jsdelivr.net/bootstrap/4.0.0-alpha.6/css/bootstrap.min.css" %} -{% style "//cdn.jsdelivr.net/bootstrap-social/5.1.1/bootstrap-social.css" %} -{% style "//cdn.jsdelivr.net/fontawesome/4.7.0/css/font-awesome.min.css" %} -{% style "/css/main.css" %} +{% style "https://cdnjs.cloudflare.com/ajax/libs/semantic-ui/2.1.8/semantic.min.css" %} +{% style "/css/style.css" %}