cafe-theme 0.1.1 → 0.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/_config.yml +31 -0
- data/_includes/head.html +3 -3
- data/_includes/icons.html +3 -3
- data/_includes/nav.html +2 -2
- data/_includes/openTimes.html +1 -1
- data/_includes/reviews.html +1 -1
- data/_layouts/404.html +5 -0
- data/_layouts/contact.html +3 -0
- data/_layouts/gallery.html +6 -3
- data/_layouts/home.html +7 -1
- data/_layouts/menu.html +34 -31
- data/_sass/nav.scss +3 -1
- data/assets/css/style.scss +13 -13
- metadata +17 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 33a8e51fc286db224939016a320b549e48e3fe0fa924ed88e3a74a269b28dd9f
|
4
|
+
data.tar.gz: d0664e1009c3b7d54b9e065b02e27220884f474d9929f5d7a0f555e97ed51a70
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f244673e67aa1d706789f389f833028edc39867bb2ed5081f5ea3f2737284a2ea756e42369922ca5c73edd9fdfed5c15cbcb5fc601cb436f933830c415556cf5
|
7
|
+
data.tar.gz: 108d2ad8ded7386ceae1ff0428b3c9a53415988cdf8a72cc23d8736df9da21abf1a1d60e925aa9bf1c5ea6198ca2a7ca9c7c525c8df8ff1f2b9edc06c49c90e5
|
data/_config.yml
CHANGED
@@ -4,6 +4,37 @@ permalink: /:title
|
|
4
4
|
author: Gavin Douch
|
5
5
|
author_url: https://gavindou.ch
|
6
6
|
|
7
|
+
color_profiles:
|
8
|
+
- name: light
|
9
|
+
foreground_color: black
|
10
|
+
background_color: "#eeeeee"
|
11
|
+
transparent_nav_bar_text_color: "#eeeeee"
|
12
|
+
- name: dark
|
13
|
+
foreground_color: white
|
14
|
+
background_color: "#111111"
|
15
|
+
transparent_nav_bar_text_color: white
|
16
|
+
- name: pink
|
17
|
+
foreground_color: black
|
18
|
+
background_color: "#e2dbdd"
|
19
|
+
transparent_nav_bar_text_color: "#e2dbdd"
|
20
|
+
|
21
|
+
font_profiles:
|
22
|
+
- name: futuristic
|
23
|
+
font_url: https://fonts.googleapis.com/css2?family=Red+Hat+Display:wght@500&display=swap
|
24
|
+
title_font: '"Red Hat Display", "Century Gothic", Futura, "Avenir Next", Avenir, "Helvetica Neue", Helvetica, Arial, sans-serif'
|
25
|
+
body_font: '"Avenir Next", Avenir, "Helvetica Neue", Helvetica, Arial, sans-serif'
|
26
|
+
- name: rustic
|
27
|
+
font_url: https://fonts.googleapis.com/css2?family=Condiment&display=swap
|
28
|
+
title_font: 'Condiment, "Brush Script MT", cursive'
|
29
|
+
body_font: '"Helvetica Neue", Helvetica, Arial, sans-serif'
|
30
|
+
- name: cursive
|
31
|
+
font_url: https://fonts.googleapis.com/css2?family=Cookie&display=swap
|
32
|
+
title_font: 'Cookie, "Brush Script MT", cursive'
|
33
|
+
body_font: '"Helvetica Neue", Helvetica, Arial, sans-serif'
|
34
|
+
- name: formal
|
35
|
+
title_font: 'Georgia, "Times New Roman", serif'
|
36
|
+
body_font: '"Helvetica Neue", Helvetica, Arial, serif'
|
37
|
+
|
7
38
|
plugins:
|
8
39
|
- jekyll-sitemap
|
9
40
|
|
data/_includes/head.html
CHANGED
@@ -25,9 +25,9 @@
|
|
25
25
|
|
26
26
|
<!-- Styles -->
|
27
27
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
28
|
-
{% for
|
29
|
-
{% if
|
30
|
-
<meta name="
|
28
|
+
{% for color_profile in site.color_profiles %}
|
29
|
+
{% if color_profile.name == site.data.brand.color_profile %}
|
30
|
+
<meta name="profile-color" content="{{ color_profile.background_color }}">
|
31
31
|
{% endif %}
|
32
32
|
{% endfor %}
|
33
33
|
<link rel="stylesheet" href="{{ '/assets/css/style.css' | relative_url }}">
|
data/_includes/icons.html
CHANGED
@@ -21,9 +21,9 @@
|
|
21
21
|
<link rel="apple-touch-icon" sizes="152x152" href="{{ icons_path | append: 'favicon-152.png' | append: nonce | relative_url }}">
|
22
22
|
<link rel="apple-touch-icon" sizes="180x180" href="{{ icons_path | append: 'favicon-180.png' | append: nonce | relative_url }}">
|
23
23
|
|
24
|
-
{% for
|
25
|
-
{% if
|
26
|
-
<meta name="msapplication-TileColor" content="{{
|
24
|
+
{% for color_profile in site.data.profiles.color_profiles %}
|
25
|
+
{% if color_profile.name == site.data.brand.color_profile %}
|
26
|
+
<meta name="msapplication-TileColor" content="{{ color_profile.background_color }}">
|
27
27
|
{% endif %}
|
28
28
|
{% endfor %}
|
29
29
|
|
data/_includes/nav.html
CHANGED
@@ -9,9 +9,9 @@
|
|
9
9
|
<img src="{{ '/assets/images/logo.webp' | relative_url }}" alt="{{ site.data.brand.name }} logo">
|
10
10
|
</a>
|
11
11
|
</li>
|
12
|
-
{% for navigation_page in site.data.navigation
|
12
|
+
{% for navigation_page in site.data.navigation %}
|
13
13
|
<li>
|
14
|
-
<a href="{{ navigation_page.url | relative_url }}"{% if page.
|
14
|
+
<a href="{{ navigation_page.url | relative_url }}"{% if page.title == navigation_page.title %} class="currentPage"{% endif %} tabindex="0">{{ navigation_page.title }}</a>
|
15
15
|
</li>
|
16
16
|
{% endfor %}
|
17
17
|
</ul>
|
data/_includes/openTimes.html
CHANGED
data/_includes/reviews.html
CHANGED
data/_layouts/404.html
ADDED
data/_layouts/contact.html
CHANGED
data/_layouts/gallery.html
CHANGED
@@ -1,11 +1,14 @@
|
|
1
1
|
---
|
2
2
|
layout: default
|
3
3
|
---
|
4
|
+
{% if content != "" %}
|
5
|
+
<p>{{ content }}</p>
|
6
|
+
{% endif %}
|
4
7
|
<div id="gallery">
|
5
|
-
{% for
|
8
|
+
{% for description in page.descriptions %}
|
6
9
|
<div onclick=""> <!-- onclick lets iOS recognise hover events -->
|
7
|
-
<img src="{{ '/assets/images/gallery/' | append: forloop.index | append: '.webp' | relative_url }}" alt="{{
|
8
|
-
<p>{{
|
10
|
+
<img src="{{ '/assets/images/gallery/' | append: forloop.index | append: '.webp' | relative_url }}" alt="{{ description }}">
|
11
|
+
<p>{{ description }}</p>
|
9
12
|
</div>
|
10
13
|
{% endfor %}
|
11
14
|
</div>
|
data/_layouts/home.html
CHANGED
@@ -1,7 +1,13 @@
|
|
1
1
|
---
|
2
2
|
layout: default
|
3
3
|
---
|
4
|
-
|
4
|
+
{% if site.data.production.demo %}
|
5
|
+
<p>This website is not the official website of {{ site.data.brand.name }}, it is a demo. This website will also not show up in search engine results.</p>
|
6
|
+
{% endif %}
|
7
|
+
<p>{{ site.data.brand.description }}</p>
|
8
|
+
{% if content != "" %}
|
9
|
+
<p>{{ content }}</p>
|
10
|
+
{% endif %}
|
5
11
|
{% include reviews.html %}
|
6
12
|
{% include map.html %}
|
7
13
|
{% include openTimes.html %}
|
data/_layouts/menu.html
CHANGED
@@ -1,43 +1,46 @@
|
|
1
1
|
---
|
2
2
|
layout: default
|
3
3
|
---
|
4
|
+
{% if content != "" %}
|
5
|
+
<p>{{ content }}</p>
|
6
|
+
{% endif %}
|
4
7
|
<div id="menu">
|
5
8
|
{% assign has_vegan = false %}
|
6
9
|
{% assign has_gluten_free = false %}
|
7
10
|
|
8
|
-
{% for
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
11
|
+
{% for section in page.sections %}
|
12
|
+
{% unless forloop.first %}
|
13
|
+
<hr>
|
14
|
+
{% endunless %}
|
15
|
+
<h1>{{ section.title | upcase }}</h1>
|
16
|
+
<p>{{ section.time }}</p>
|
17
|
+
<div id="{{ menu.title }}">
|
18
|
+
{% for food in section.foods %}
|
19
|
+
<div onclick=""> <!-- onclick lets iOS recognise hover events -->
|
20
|
+
<h2>{{ food.name }}
|
21
|
+
<span>${{ food.price }}</span>
|
22
|
+
{% if food.vegan %}
|
23
|
+
{% assign has_vegan = true %}
|
24
|
+
<img src="{{ '/assets/images/menu/diet/vegan.png' | relative_url }}" class="dietIcon" title="Vegan" alt="Vegan">
|
25
|
+
{% endif %}
|
26
|
+
{% if food.gluten_free %}
|
27
|
+
{% assign has_gluten_free = true %}
|
28
|
+
<img src="{{ '/assets/images/menu/diet/glutenFree.png' | relative_url }}" class="dietIcon" title="Gluten free" alt="Gluten free">
|
29
|
+
{% endif %}
|
30
|
+
</h2>
|
31
|
+
<p>{{ food.description }}</p>
|
32
|
+
{% if food.options.size > 0 %}
|
33
|
+
<ul>
|
34
|
+
{% for option in food.options %}
|
35
|
+
<li>{{ option.name }}<span>${{ option.price }}</span></li>
|
36
|
+
{% endfor %}
|
37
|
+
</ul>
|
22
38
|
{% endif %}
|
23
|
-
{%
|
24
|
-
{
|
25
|
-
|
26
|
-
|
27
|
-
</h2>
|
28
|
-
<p>{{ food.description }}</p>
|
29
|
-
{% if food.options.size > 0 %}
|
30
|
-
<ul>
|
31
|
-
{% for option in food.options %}
|
32
|
-
<li>{{ option.name }}<span>${{ option.price }}</span></li>
|
33
|
-
{% endfor %}
|
34
|
-
</ul>
|
35
|
-
{% endif %}
|
36
|
-
{% assign slugified_food_name = food.name | slugify %}
|
37
|
-
<img src="{{ '/assets/images/menu/' | append: slugified_food_name | append: '.webp' | relative_url }}" alt="{{ food.name }}">
|
39
|
+
{% assign slugified_food_name = food.name | slugify %}
|
40
|
+
<img src="{{ '/assets/images/menu/' | append: slugified_food_name | append: '.webp' | relative_url }}" alt="{{ food.name }}">
|
41
|
+
</div>
|
42
|
+
{% endfor %}
|
38
43
|
</div>
|
39
|
-
{% endfor %}
|
40
|
-
</div>
|
41
44
|
{% endfor %}
|
42
45
|
</div>
|
43
46
|
{% if has_vegan or has_gluten_free %}
|
data/_sass/nav.scss
CHANGED
@@ -33,6 +33,7 @@ nav {
|
|
33
33
|
|
34
34
|
a {
|
35
35
|
color: $foreground-color;
|
36
|
+
text-shadow: 0 0 5px transparent;
|
36
37
|
}
|
37
38
|
}
|
38
39
|
|
@@ -57,8 +58,9 @@ nav {
|
|
57
58
|
align-items: center;
|
58
59
|
height: 100%;
|
59
60
|
padding: 0 10px;
|
60
|
-
transition: box-shadow 0.2s, color 0.2s;
|
61
|
+
transition: box-shadow 0.2s, color 0.2s, text-shadow, 0.2s;
|
61
62
|
color: $transparent-nav-bar-text-color;
|
63
|
+
text-shadow: 0 0 5px invert(grayscale($transparent-nav-bar-text-color));
|
62
64
|
|
63
65
|
&:hover, &.currentPage {
|
64
66
|
box-shadow: 0 -5px $accent-color inset;
|
data/assets/css/style.scss
CHANGED
@@ -1,24 +1,24 @@
|
|
1
1
|
---
|
2
2
|
---
|
3
3
|
|
4
|
-
// Color
|
5
|
-
{% for
|
6
|
-
{% if
|
7
|
-
$foreground-color: {{
|
8
|
-
$background-color: {{
|
9
|
-
$transparent-nav-bar-text-color: {{
|
4
|
+
// Color profiles
|
5
|
+
{% for color_profile in site.color_profiles %}
|
6
|
+
{% if color_profile.name == site.data.brand.color_profile %}
|
7
|
+
$foreground-color: {{ color_profile.foreground_color }};
|
8
|
+
$background-color: {{ color_profile.background_color }};
|
9
|
+
$transparent-nav-bar-text-color: {{ color_profile.transparent_nav_bar_text_color }};
|
10
10
|
{% endif %}
|
11
11
|
{% endfor %}
|
12
12
|
|
13
|
-
// Font
|
14
|
-
{% for
|
15
|
-
{% if
|
16
|
-
{% if
|
17
|
-
@import url({{
|
13
|
+
// Font profiles
|
14
|
+
{% for font_profile in site.font_profiles %}
|
15
|
+
{% if font_profile.name == site.data.brand.font_profile %}
|
16
|
+
{% if font_profile.font_url %}
|
17
|
+
@import url({{ font_profile.font_url }});
|
18
18
|
{% endif %}
|
19
19
|
|
20
|
-
$title-font: {{
|
21
|
-
$body-font: {{
|
20
|
+
$title-font: {{ font_profile.title_font }};
|
21
|
+
$body-font: {{ font_profile.body_font }};
|
22
22
|
{% endif %}
|
23
23
|
{% endfor %}
|
24
24
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cafe-theme
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Gavin Douch
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-06-
|
11
|
+
date: 2022-06-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|
@@ -24,6 +24,20 @@ dependencies:
|
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '4.2'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: jekyll-sitemap
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '1.4'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '1.4'
|
27
41
|
description:
|
28
42
|
email:
|
29
43
|
executables: []
|
@@ -41,6 +55,7 @@ files:
|
|
41
55
|
- _includes/openTimes.html
|
42
56
|
- _includes/reviews.html
|
43
57
|
- _includes/socials.html
|
58
|
+
- _layouts/404.html
|
44
59
|
- _layouts/compress.html
|
45
60
|
- _layouts/contact.html
|
46
61
|
- _layouts/default.html
|