diff --git a/layouts/partials/header.html b/layouts/partials/header.html index 622f609..464f542 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -2,6 +2,15 @@ + + + \ No newline at end of file diff --git a/layouts/partials/home.html b/layouts/partials/home.html index ee7248b..ecb66b0 100644 --- a/layouts/partials/home.html +++ b/layouts/partials/home.html @@ -14,23 +14,26 @@ {{ $data := .Site.Data.home }} - + {{ partial "home_title" (dict "title" "About Me") }} {{ range $data.about.link }} {{end}} - - {{ replace $data.about.text "\n" "" | safeHTML }} + + {{$data.about.title}} + + {{ replace $data.about.text "\n" "" | safeHTML }} + - + {{ partial "home_title" (dict "title" "Skills") }} {{ range $data.skills.list }} @@ -55,12 +58,12 @@ {{end}} - + {{ partial "home_title" (dict "title" "Projects") }} {{ range $data.project.list }} @@ -75,20 +78,6 @@ {{ .text }} - - #photography - #travel - #winter - {{end}} diff --git a/layouts/partials/navbar.html b/layouts/partials/navbar.html index bddca45..6991881 100644 --- a/layouts/partials/navbar.html +++ b/layouts/partials/navbar.html @@ -1,44 +1,11 @@ - - - - {{ $.Site.Title }} - - - - - Menu - - - - - - - {{ $currentPage := . }} {{ range .Site.Menus.main }} - - {{ .Name }} - - {{end}} - - - Blog - - - + + {{ .Site.Title }} + + {{ range .Site.Menus.main }} + + {{ .Name }} + + {{end}} + + \ No newline at end of file diff --git a/static/css/index.css b/static/css/index.css index 6e83f65..ef50956 100644 --- a/static/css/index.css +++ b/static/css/index.css @@ -81,7 +81,7 @@ content: ""; width: 42px; height: 4px; - background: #EE7785; + background: #ee7785; left: 0; bottom: 0px; } diff --git a/static/css/navbar.css b/static/css/navbar.css new file mode 100644 index 0000000..6fb9683 --- /dev/null +++ b/static/css/navbar.css @@ -0,0 +1,53 @@ +nav { + position: fixed; + top: 0; + left: 0; + width: 100%; + display: flex; + justify-content: space-between; + align-items: center; + transition: 0.6s; + padding: 40px 100px; + z-index: 600; +} + +nav.onscroll { + padding: 5px 100px; + background: rgba(0, 0, 0, 0.5); +} + +nav .logo { + position: relative; + font-weight: 700; + color: #fff; + text-decoration: none; + font-size: 2em; + text-transform: uppercase; + letter-spacing: 2px; +} + +nav ul { + position: relative; + display: flex; + justify-content: center; + align-items: center; +} + +nav ul li { + position: relative; + list-style: none; +} + +nav ul li a { + position: relative; + margin: 0 15px; + text-decoration: none; + color: #fff; + letter-spacing: 2px; + font-weight: 500px; + transition: 0.6s; +} +nav.onscroll .logo, +nav.onscroll ul li a { + color: #fff; +}