From 6299b06b959ed0695c38eeea743f11d75075bc9e Mon Sep 17 00:00:00 2001 From: Jacek Lebioda <jacek.lebioda@uni.lu> Date: Tue, 9 Jul 2019 13:43:57 +0200 Subject: [PATCH] Search bar --- _includes/header.html | 1 + _layouts/search.html | 19 +++++++++++++++++++ _sass/elixir/_layout.scss | 16 ++++++++++++++++ elixir-theme.gemspec | 2 +- 4 files changed, 37 insertions(+), 1 deletion(-) create mode 100644 _layouts/search.html diff --git a/_includes/header.html b/_includes/header.html index f76f2e2..cd5fdd0 100644 --- a/_includes/header.html +++ b/_includes/header.html @@ -13,6 +13,7 @@ <li><a {% if page.section == 'Events' %} class="active" {% endif %} href="{{ site.baseurl }}/events">Events</a></li> <li><a {% if page.section == 'News' %} class="active" {% endif %} href="{{ site.baseurl }}/news">News</a></li> <li><a {% if page.section == 'Contact' %} class="active" {% endif-%} href="{{ site.baseurl }}/contact">Contact</a></li> + <li><a {% if page.section == 'Search' %} class="active" {% endif-%} href="{{ site.baseurl }}/search">Search</a></li> </ul> </div> </div> diff --git a/_layouts/search.html b/_layouts/search.html new file mode 100644 index 0000000..7c7a256 --- /dev/null +++ b/_layouts/search.html @@ -0,0 +1,19 @@ +--- +layout: default +--- + +<article> + + <div id="left-column"></div> + + <div> + <header> + <h1> + {{ page.title | escape }} + </h1> + </header> + + <input class="search" placeholder="Search " /> + <button type="submit" value="Search with Google">Search with Google</button> + </div> +</article> diff --git a/_sass/elixir/_layout.scss b/_sass/elixir/_layout.scss index b441a6e..6f597f2 100644 --- a/_sass/elixir/_layout.scss +++ b/_sass/elixir/_layout.scss @@ -442,3 +442,19 @@ div.post { } } } + +input.search { + width: 400px; + height: 35px; + font-size: 20px; + padding: 5px; + padding-left: 10px; + border-radius: 5px; + border: solid 3px #f47d21; +} + +button.search { + margin-left: 8px; + height: 50px; + font-size: 20px; +} diff --git a/elixir-theme.gemspec b/elixir-theme.gemspec index 57939ef..aadf7c6 100644 --- a/elixir-theme.gemspec +++ b/elixir-theme.gemspec @@ -2,7 +2,7 @@ Gem::Specification.new do |spec| spec.name = "elixir-theme" - spec.version = "0.2.10" + spec.version = "0.2.11" spec.authors = ["jacek.lebioda"] spec.email = ["jacek.lebioda@uni.lu"] -- GitLab