Skip to content

Commit

Permalink
Add localization (#3)
Browse files Browse the repository at this point in the history
* Update _config.yml

* Create README.md

* add node.js and live reload for windows setup

* fix

* fix

* fix

* add alternate config for dev envirement

* add theme files

* add first styles

* update styles

* base markup for footer

* update config

* styleguide

* styleguide

* styleguide

* update

* update assets and add js

* update

* mobile menu

* base header ans layout

* update

* update

* update

* move update

* style footer

* added logos

* Delete .DS_Store

* style footer

* add base style for footer

* add footer logo

* add footer logo

* Update _config.yml

* Update page2.md

* changed menue

* update

* update

* update

* update

* update

* update

* update

* update

* update

* add selenide hero mashine

* add image instead text for hero

* selenid 26 svg sprite (#1)

* move node js tasks to util_node_js folder

* clean and update tasks

* add svg icons to folder

* restore image

* updete paths and inject styles for svg

* add svg icons

* clean code and add scroll button for hero

* add hover efeect for scroll button

* Update hero

* add content for product page

* add spacings

* apdate veriables for spacing

* Update index page

* update image link

* update page links

* SELENID-31:  Remove shadow from logo text at footer

* SELENID-24: Scroll reveal blocks

* SELENID-33 Add mixin for typography and spasings sass

* SELENID-33 Add mixin for typography and spasings sass

* SELENID-33 update index page and add current spacings

* update index page

* SELENID-33 Add mixinfor backgrounds and update index page

* Update product page

* Update pages

* Update page1.html

* updated main page

* playing with a her

* fixing

* product page update

* product page update

* fixed hero height. updated product page

* product page update

* footer without menu

* link added

* product updated

* fix hero and product

* clean hero at index page

* clean hero at index page

* clean hero at index page

* fix heroat product page

* fix misspelling

* update paddings and add bottom reveals

* add left and right reveals

* update 404 page

* fix buutons and hero foe product page

* replace relative url to absolute

* add localization plugin

* Update buttons and add secondary button

* Fix footer and update header

* create new pages for languages, language switch

* edit language switch

* fix paths

* update swich

* updawte swich

* Clean files

* update
  • Loading branch information
OleksandrPavlyshch authored Aug 7, 2018
1 parent 903761d commit 20b639b
Show file tree
Hide file tree
Showing 100 changed files with 8,702 additions and 39 deletions.
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
_site
.sass-cache
.jekyll-metadata
util_node_js/node_modules
util_node_js/source/bower
util_node_js/node_modules
util_node_js/build
Gemfile.lock
2 changes: 1 addition & 1 deletion 404.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<style type="text/css" media="screen">
.container {
margin: 10px auto;
max-width: 600px;
/*max-width: 600px;*/
text-align: center;
}
h1 {
Expand Down
4 changes: 3 additions & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ source "https://rubygems.org"
#
# This will help ensure the proper Jekyll version is running.
# Happy Jekylling!
gem "jekyll", "~> 3.8.2"
gem "jekyll", "~> 3.8.3"

# This is the default theme for new Jekyll sites. You may change this to anything you like.
gem "minima", "~> 2.0"
Expand All @@ -20,6 +20,8 @@ gem "minima", "~> 2.0"
# If you have any plugins, put them here!
group :jekyll_plugins do
gem "jekyll-feed", "~> 0.6"
gem "jekyll-polyglot", "~>1.3.0"
# gem 'jekyll-coffeescript'
end

# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
Expand Down
9 changes: 6 additions & 3 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ GEM
http_parser.rb (0.6.0)
i18n (0.9.5)
concurrent-ruby (~> 1.0)
jekyll (3.8.2)
jekyll (3.8.3)
addressable (~> 2.4)
colorator (~> 1.0)
em-websocket (~> 0.5)
Expand All @@ -29,6 +29,8 @@ GEM
safe_yaml (~> 1.0)
jekyll-feed (0.10.0)
jekyll (~> 3.3)
jekyll-polyglot (1.3.1)
jekyll (>= 3.0)
jekyll-sass-converter (1.5.2)
sass (~> 3.4)
jekyll-seo-tag (2.5.0)
Expand Down Expand Up @@ -71,11 +73,12 @@ PLATFORMS
x64-mingw32

DEPENDENCIES
jekyll (~> 3.8.2)
jekyll (~> 3.8.3)
jekyll-feed (~> 0.6)
jekyll-polyglot (~> 1.3.0)
minima (~> 2.0)
tzinfo-data
wdm (~> 0.1.0)

BUNDLED WITH
1.16.2
1.16.3
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# selenide_new
https://vinogradoff.github.io/selenide_new/
26 changes: 18 additions & 8 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,30 +13,40 @@
# you will see them accessed via {{ site.title }}, {{ site.email }}, and so on.
# You can create any custom variable you would like, and they will be accessible
# in the templates via {{ site.myvariable }}.
title: Jekyll test setup
title: selenide
email: your-email@example.com
description: >- # this means to ignore newlines until "baseurl:"
Write an awesome description for your new site here. You can edit this
line in _config.yml. It will appear in your document head meta (for
Google search results) and in your feed.xml site description.
baseurl: "jekyll_test" # the subpath of your site, e.g. /blog
baseurl: "selenide_new" # the subpath of your site, e.g. /blog
url: "" # the base hostname & protocol for your site, e.g. http://example.com
twitter_username: jekyllrb
github_username: jekyll
twitter_username: "jselenide"
github_username: "codeborne/selenide"

# Build settings
markdown: kramdown
theme: minima
plugins:
- jekyll-feed
- jekyll-polyglot
# - jekyll-coffeescript

languages: ["en", "ru"]
default_lang: "en"
exclude_from_localization: ["js", "img", "css"]
parallel_localization: false

# Exclude from processing.
# The following items will not be processed, by default. Create a custom list
# to override the default setting.
# exclude:
# - Gemfile
# - Gemfile.lock
# - node_modules
exclude:
- util_node_js
- Gemfile
- Gemfile.lock
- README.md
- svg-icons
- logo
# - vendor/bundle/
# - vendor/cache/
# - vendor/gems/
Expand Down
63 changes: 63 additions & 0 deletions _config_dev.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
# Welcome to Jekyll!
#
# This config file is meant for settings that affect your whole blog, values
# which you are expected to set up once and rarely edit after that. If you find
# yourself editing this file very often, consider using Jekyll's data files
# feature for the data you need to update frequently.
#
# For technical reasons, this file is *NOT* reloaded automatically when you use
# 'bundle exec jekyll serve'. If you change this file, please restart the server process.

# Site settings
# These are used to personalize your new site. If you look in the HTML files,
# you will see them accessed via {{ site.title }}, {{ site.email }}, and so on.
# You can create any custom variable you would like, and they will be accessible
# in the templates via {{ site.myvariable }}.


# DEV build
# jekyll build --config _config.yml,_config_dev.yml --watch
# bundle exec jekyll serve --config _config.yml,_config_dev.yml --livereload

# DEV build with drafts
# jekyll build --config _config.yml,_config_dev.yml --watch --drafts
# bundle exec jekyll serve --config _config.yml,_config_dev.yml --drafts --livereload

title: selenide
email: your-email@example.com
description: >- # this means to ignore newlines until "baseurl:"
Write an awesome description for your new site here. You can edit this
line in _config.yml. It will appear in your document head meta (for
Google search results) and in your feed.xml site description.
baseurl: "" # the subpath of your site, e.g. /blog
url: "" # the base hostname & protocol for your site, e.g. http://example.com
twitter_username: "jselenide"
github_username: "codeborne/selenide"

# Build settings
markdown: kramdown
theme: minima
plugins:
- jekyll-feed
- jekyll-polyglot
# - jekyll-coffeescript

languages: ["en", "ru"]
default_lang: "en"
exclude_from_localization: ["js", "img", "css"]
parallel_localization: false

# Exclude from processing.
# The following items will not be processed, by default. Create a custom list
# to override the default setting.
exclude:
- util_node_js
- Gemfile
- Gemfile.lock
- README.md
- svg-icons
- logo
# - vendor/bundle/
# - vendor/cache/
# - vendor/gems/
# - vendor/ruby/
88 changes: 88 additions & 0 deletions _drafts/style_guide.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
---
layout: page
title: Style guide
permalink: /stylequide/
---

<h2>Typography</h2>
<br>

<h1>Heading 1</h1>
<br>
<h2>Heading 2</h2>
<br>
<h3>Heading 3</h3>
<br>
<h4>Heading 4</h4>
<br>
<h5>Heading 5</h5>
<br>
<h6>Heading 6</h6>
<br>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse
cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non
proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>

<br>
<br>
<br>
<h2>Elements</h2>
<br>
<p>default</p>
<button class="button">Button</button>
<p>hover-state</p>
<button class="button hover-state">Button</button>
<p>disabled</p>
<button class="button disabled-state">Button</button>

<h2>Colors</h2>
<br>
<div class="guide_color" style="color: #ffffff;">
<div class="guide_color-name">
$white: <br>#ffffff
</div>
</div>
<div class="guide_color" style="color: #f8f8f8;">
<div class="guide_color-name">
$alabaster:<br> #f8f8f8
</div>
</div>
<div class="guide_color" style="color: #000000;">
<div class="guide_color-name">
$black:<br> #000000
</div>
</div>
<div class="guide_color" style="color: #29282b;">
<div class="guide_color-name">
$baltic-sea:<br> #29282b
</div>
</div>
<div class="guide_color" style="color: #3a3e4e;">
<div class="guide_color-name">
$bright-gray:<br> #3a3e4e
</div>
</div>
<div class="guide_color" style="color: #7c7b7d;">
<div class="guide_color-name">
$jumbo:<br> #7c7b7d
</div>
</div>
<div class="guide_color" style="color: #eef0f2;">
<div class="guide_color-name">
$porcelain:<br> #eef0f2
</div>
</div>
<div class="guide_color" style="color: #ae8fff;">
<div class="guide_color-name">
$heliotrope:<br> #ae8fff
</div>
</div>
<div class="guide_color" style="color: #abb2b8;">
<div class="guide_color-name">
$gray-chateau:<br> #abb2b8
</div>
</div>

20 changes: 20 additions & 0 deletions _includes/disqus_comments.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{%- if page.comments != false and jekyll.environment == "production" -%}

<div id="disqus_thread"></div>
<script>
var disqus_config = function () {
this.page.url = '{{ page.url | absolute_url }}';
this.page.identifier = '{{ page.url | absolute_url }}';
};

(function() {
var d = document, s = d.createElement('script');

s.src = 'https://{{ site.disqus.shortname }}.disqus.com/embed.js';

s.setAttribute('data-timestamp', +new Date());
(d.head || d.body).appendChild(s);
})();
</script>
<noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript" rel="nofollow">comments powered by Disqus.</a></noscript>
{%- endif -%}
51 changes: 51 additions & 0 deletions _includes/footer.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
{%- assign default_paths = site.pages | map: "path" -%}
{%- assign page_paths = site.header_pages | default: default_paths -%}

<footer class="footer">
<div class="container">
<div class="row">
<div class="col-xs-12">
<img class="footer-logo" src="{{ "/" | relative_url }}img/selenide_black_logo.svg">
</div>
</div>

{% comment %}
<div class="footer-top">
{%- if page_paths -%}
<nav class="footer_menu">
<ul class="row footer_menu-list">
{%- for path in page_paths -%}
{%- assign page = site.pages | where: "path", path | first -%}

{%- if page.title and page.exclude_from_nav != true -%}
<li class="footer_menu-item col-md-3 col-xs-12">
{{page.exclude_from_nav}}
<a href="{{ page.url | relative_url }}" class="footer_menu-link">{{ page.title | escape }}</a>

{% include lib/svg-icon.html name="arrow"%}
<ul class="footer_submenu">
<li class="footer_submenu-item">
<a class="footer_submenu-link" href="#">Why Selenise?</a></li>
<li class="footer_submenu-item">
<a class="footer_submenu-link" href="#">Why Selenise?</a></li>
<li class="footer_submenu-item">
<a class="footer_submenu-link" href="#">Why Selenise?</a></li>
</ul>

</li>
{%- endif -%}
{%- endfor -%}
</ul>
</nav>
{%- endif -%}
</div>
{% endcomment %}

<div class="row">
<p class="footer-copy col-xs-12 col-md-6 mb-3 pb-1 mt-0 mb-md-0 ">© 2018 Selenide</p>
<div class="footer-social col-xs-12 col-md-6">
{%- include social.html -%}
</div>
</div>
</div>
</footer>
12 changes: 12 additions & 0 deletions _includes/google-analytics.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<script>
if(!(window.doNotTrack === "1" || navigator.doNotTrack === "1" || navigator.doNotTrack === "yes" || navigator.msDoNotTrack === "1")) {
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');

ga('create', '{{ site.google_analytics }}', 'auto');
ga('send', 'pageview');
}
</script>

12 changes: 12 additions & 0 deletions _includes/head.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="https://fonts.googleapis.com/css?family=Montserrat:400,500,600&amp;subset=cyrillic-ext,latin-ext" rel="stylesheet">
{%- seo -%}
<link rel="stylesheet" href="{{ "/css/main.css" | absolute_url }}">
{%- feed_meta -%}
{%- if jekyll.environment == 'production' and site.google_analytics -%}
{%- include google-analytics.html -%}
{%- endif -%}
</head>
Loading

0 comments on commit 20b639b

Please sign in to comment.