Skip to content

Commit 10be90d

Browse files
committed
Move links to header and add contact
1 parent 4b38426 commit 10be90d

File tree

4 files changed

+34
-21
lines changed

4 files changed

+34
-21
lines changed

resources/public/index.html

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" integrity="sha384-rbsA2VBKQhggwzxH7pPCaAqO46MgnOM80zW1RWuH61DGLwZJEdK2Kadq2F9CUG65" crossorigin="anonymous"/>
77
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@picocss/pico@2/css/pico.classless.min.css"/>
88
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.5.1/styles/default.min.css" integrity="sha512-hasIneQUHlh06VNBe7f6ZcHmeRTLIaQWFd43YriJ0UND19bvYRauxthDg8E4eVNPm9bRUhr5JGeqH7FRFXQu5g==" crossorigin="anonymous" referrerpolicy="no-referrer" />
9+
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
910
<link rel="stylesheet" href="/style.css"/>
1011
<title>Casa</title>
1112
</head>

src/com/sagar/casa/ui/blog.cljc

+3-3
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,11 @@
3939
%2])
4040
"img"
4141
(as-element
42-
;; Center images
43-
;; TODO: Fix div cannot be inside p
42+
;; Center images
43+
;; TODO: Fix div cannot be inside p
4444
[:div {:style {:text-align :center}}
4545
[:img {:src (.-src %1)}]])
46-
;; Other elements as they are
46+
;; Other elements as they are
4747
(as-element
4848
[(string/lower-case (.-tagName %1))
4949
%2]))

src/com/sagar/casa/ui/header.cljs

+15-6
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
(ns com.sagar.casa.ui.header
2-
(:require ["react-bootstrap" :refer [Container Col Row Navbar Stack]]
2+
(:require ["react-bootstrap" :refer [Container Col Row Navbar Stack Nav]]
33
[com.sagar.casa.ui.routes :as routes]))
44

55

@@ -19,15 +19,24 @@
1919
:bg :dark
2020
:variant :dark}
2121
[:> Stack {:direction :horizontal :gap 3 :class-name "w-100"}
22-
[:> Container {:fluid true}
22+
[:> Container {:fluid true :class-name "align-items-center"}
2323
[:> Row
24-
[:> Col
25-
[:> (.-Brand Navbar) {:class-name "mx-2 display-6"
24+
[:> Col {:class-name "mx-2"}
25+
[:> (.-Brand Navbar) {:class-name "display-1"
2626
:href routes/home}
27-
[:big "Casa 🏠"]]]
27+
"Casa 🏠"]
28+
[:a {:href routes/blog
29+
:style {:text-decoration :none}}
30+
"[Blog]"]
31+
[:a {:href routes/literature
32+
:style {:text-decoration :none}}
33+
"[Literature]"]]
2834
[:> Col {:xs "auto" :class-name "d-none d-sm-block"}
2935
[:> (.-Text Navbar)
3036
[:small (str "Made with " \u2665 " using ")]]
3137
(for [{:keys [index label url]} links]
32-
[:a {:href url :target "_blank" :key index}
38+
[:a {:href url
39+
:target "_blank"
40+
:style {:text-decoration :none}
41+
:key index}
3342
[:small "[" label "]"]])]]]]])

src/com/sagar/casa/ui/home.cljs

+15-12
Original file line numberDiff line numberDiff line change
@@ -5,24 +5,27 @@
55

66
(defn Home []
77
[:> Container {:data-theme :light
8-
:fluid true
9-
:style {:text-align :center}}
8+
:class-name "align-self-center"
9+
:fluid true}
1010
[:div {:class-name "pt-3 col-xs-12 col-md-4 mx-auto"}
1111
[:h1 {:class-name "display-4"} "Hi. I'm Sagar."]
12-
[:p "I'm a Backend Developer @ "
12+
[:p "I'm a Backend Engineer @ "
1313
[:a {:href "https://unifize.com" :target "_blank"} "Unifize"]
1414
" where I'm working on making processes collaborative."]
1515
[:p "I use this space to "
1616
[:a {:href "https://addyosmani.com/blog/write-learn/" :target "_blank"}
1717
"write about the interestings things I learn"] " during my"
1818
" relaxing evening reading sessions, or cold, dark and rainy night"
1919
" debugging sessions, and everything in between."]
20-
[:> Stack {:class-name "pt-3" :gap 5}
21-
[:> Button {:href routes/blog
22-
:variant :dark
23-
:class-name "contrast mx-auto"}
24-
"Blog"]
25-
[:> Button {:href routes/literature
26-
:variant :dark
27-
:class-name "contrast mx-auto"}
28-
"Literature"]]]])
20+
[:p "When I'm not writing code, I enjoy going on a walk, doing some"
21+
" yoga, playing with my dog or swimming."]
22+
[:p "You can reach out to me via the below links."
23+
[:> Stack {:style {:font-size "36px"}
24+
:direction :horizontal
25+
:gap 2}
26+
[:a {:href "https://github.com/S4G4R" :target "/_blank"}
27+
[:i {:class-name "fa fa-github"}]]
28+
[:a {:href "https://linkedin.com/in/sagar-vrajalal" :target "/_blank"}
29+
[:i {:class-name "fa fa-linkedin"}]]
30+
[:a {:href "mailto:[email protected]"}
31+
[:i {:class-name "fa fa-envelope"}]]]]]])

0 commit comments

Comments
 (0)