Skip to content

Commit

Permalink
fix: move footer to components
Browse files Browse the repository at this point in the history
  • Loading branch information
WarFox committed Jun 11, 2024
1 parent c3cc2c3 commit 93e8aca
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 17 deletions.
21 changes: 21 additions & 0 deletions src/cljs_2048/components.cljs
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
(ns cljs-2048.components)

(defn footer
[]
[:footer {:class "m-4"}
[:div {:class "mx-auto p-4 md:py-8"}
[:div {:class "text-sm text-gray-500 sm:text-center dark:text-gray-400"}
"Play using arrow keys on your browser"]
[:div {:class "text-sm text-gray-500 sm:text-center dark:text-gray-400"}
"Implemented using "
[:a {:href "https://day8.github.io/re-frame/re-frame/" :class "hover:underline"} "re-frame"]
", "
[:a {:href "https://clojurescript.org/" :class "hover:underline"} "ClojureScript"]
", "
[:a {:href "https://tailwindcss.com/" :class "hover:underline"} "tailwindcss"]
", and "
[:a {:href "https://react.dev/" :class "hover:underline"} "React"]]
[:div {:class "text-sm text-gray-500 sm:text-center dark:text-gray-400"}
"© 2024 "
[:a {:href "https://deepumohan.com/" :class "hover:underline"} "Deepu Mohan Puthrote"]
". All Rights Reserved."]]])
19 changes: 2 additions & 17 deletions src/cljs_2048/views.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
(:require
[cljs-2048.events :as events]
[cljs-2048.subs :as subs]
[cljs-2048.components :as components]
[re-frame.core :as re-frame]
[re-pressed.core :as rp]))

Expand Down Expand Up @@ -119,23 +120,7 @@
[grid-panel]
[board-panel]]

[:footer {:class "m-4"}
[:div {:class "mx-auto p-4 md:py-8"}
[:div {:class "text-sm text-gray-500 sm:text-center dark:text-gray-400"}
"Play using arrow keys on your browser"]
[:div {:class "text-sm text-gray-500 sm:text-center dark:text-gray-400"}
"Implemented using "
[:a {:href "https://day8.github.io/re-frame/re-frame/" :class "hover:underline"} "re-frame"]
", "
[:a {:href "https://clojurescript.org/" :class "hover:underline"} "ClojureScript"]
", "
[:a {:href "https://tailwindcss.com/" :class "hover:underline"} "tailwindcss"]
", and "
[:a {:href "https://react.dev/" :class "hover:underline"} "React"]]
[:div {:class "text-sm text-gray-500 sm:text-center dark:text-gray-400"}
"© 2024 "
[:a {:href "https://deepumohan.com/" :class "hover:underline"} "Deepu Mohan Puthrote"]
". All Rights Reserved."]]]]))
[components/footer]]))

(defn main-panel
[]
Expand Down

0 comments on commit 93e8aca

Please sign in to comment.