cafe-theme 0.1.1 → 0.1.2
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/_data/brand.yml +5 -0
- data/_data/contact.yml +14 -0
- data/_data/navigation.yml +8 -0
- data/_data/openingTimes.yml +9 -0
- data/_data/production.yml +2 -0
- data/_data/profiles.yml +30 -0
- data/_data/reviews.yml +15 -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 +5 -2
- data/_layouts/home.html +7 -1
- data/_layouts/menu.html +34 -31
- data/assets/css/style.scss +13 -13
- metadata +9 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9dd0e444fc008a8bb38073b1222f57922ff1c375c0a1f8ad947196eca6eade49
|
4
|
+
data.tar.gz: 0ca3e871063ea1fd5f43acbefea153837135ceaacee91a520f5dd7ba64d9bcfe
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d541a588d43553f1f5257b47bd2253a4892c69feb1fc99c1df1ab7c39269b2798d079cce53b5eccd97b1f7cb867bede8fe040a40184e0bb4eda5e4854e127c10
|
7
|
+
data.tar.gz: a6f75cb66c3b559a6a23772a7d594ffe24919a3d937c1a756d72f01d07a152aa1725643fcb870e2d4bb699aec7ab99f89748b0ff137474716ba11aa63aa54ff5
|
data/_data/brand.yml
ADDED
data/_data/contact.yml
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
location:
|
2
|
+
address: X Location St, City, State, Country
|
3
|
+
google_maps: https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d3151.808975176893!2d144.9651933152148!3d-37.81794314205539!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x6ad642b6bb2ad6c3%3A0x81524da322c3d6d5!2sFlinders%20Street%20Railway%20Station%20Police%20Booth!5e0!3m2!1sen!2sau!4v1654361982938!5m2!1sen!2sau
|
4
|
+
locale: en-AU
|
5
|
+
|
6
|
+
socials:
|
7
|
+
- platform: Facebook
|
8
|
+
link: https://www.facebook.com/example
|
9
|
+
- platform: Instagram
|
10
|
+
link: https://www.instagram.com/example
|
11
|
+
- platform: email
|
12
|
+
link: mailto:example@example.com
|
13
|
+
- platform: phone
|
14
|
+
link: tel:xxxxxxxxxx
|
data/_data/profiles.yml
ADDED
@@ -0,0 +1,30 @@
|
|
1
|
+
color_profiles:
|
2
|
+
- name: light
|
3
|
+
foreground_color: black
|
4
|
+
background_color: "#eeeeee"
|
5
|
+
transparent_nav_bar_text_color: "#eeeeee"
|
6
|
+
- name: dark
|
7
|
+
foreground_color: white
|
8
|
+
background_color: "#111111"
|
9
|
+
transparent_nav_bar_text_color: white
|
10
|
+
- name: pink
|
11
|
+
foreground_color: black
|
12
|
+
background_color: "#e2dbdd"
|
13
|
+
transparent_nav_bar_text_color: "#e2dbdd"
|
14
|
+
|
15
|
+
font_profiles:
|
16
|
+
- name: futuristic
|
17
|
+
font_url: https://fonts.googleapis.com/css2?family=Red+Hat+Display:wght@500&display=swap
|
18
|
+
title_font: '"Red Hat Display", "Century Gothic", Futura, "Avenir Next", Avenir, "Helvetica Neue", Helvetica, Arial, sans-serif'
|
19
|
+
body_font: '"Avenir Next", Avenir, "Helvetica Neue", Helvetica, Arial, sans-serif'
|
20
|
+
- name: rustic
|
21
|
+
font_url: https://fonts.googleapis.com/css2?family=Condiment&display=swap
|
22
|
+
title_font: 'Condiment, "Brush Script MT", cursive'
|
23
|
+
body_font: '"Helvetica Neue", Helvetica, Arial, sans-serif'
|
24
|
+
- name: cursive
|
25
|
+
font_url: https://fonts.googleapis.com/css2?family=Cookie&display=swap
|
26
|
+
title_font: 'Cookie, "Brush Script MT", cursive'
|
27
|
+
body_font: '"Helvetica Neue", Helvetica, Arial, sans-serif'
|
28
|
+
- name: formal
|
29
|
+
title_font: 'Georgia, "Times New Roman", serif'
|
30
|
+
body_font: '"Helvetica Neue", Helvetica, Arial, serif'
|
data/_data/reviews.yml
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
- title: Great Café
|
2
|
+
username: John Doe
|
3
|
+
message: Loved the coffee and the views. I'll be coming back!
|
4
|
+
link: https://example.com/1
|
5
|
+
stars: 5
|
6
|
+
- title: Brilliant!
|
7
|
+
username: Jane Doe
|
8
|
+
message: Staff were exceptional and the breakfast was lovely.
|
9
|
+
link: https://example.com/2
|
10
|
+
stars: 5
|
11
|
+
- title: Friendly staff
|
12
|
+
username: Smith Doe
|
13
|
+
message: I have never seen a better looking café, and the staff were so friendly. I'm so glad I live nearby.
|
14
|
+
link: https://example.com/3
|
15
|
+
stars: 5
|
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.data.profiles.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,10 +1,13 @@
|
|
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="{{
|
10
|
+
<img src="{{ '/assets/images/gallery/' | append: forloop.index | append: '.webp' | relative_url }}" alt="{{ description }}"">
|
8
11
|
<p>{{ gallery_item.description }}</p>
|
9
12
|
</div>
|
10
13
|
{% endfor %}
|
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/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.data.profiles.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.data.profiles.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,7 +1,7 @@
|
|
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.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Gavin Douch
|
@@ -31,6 +31,13 @@ extensions: []
|
|
31
31
|
extra_rdoc_files: []
|
32
32
|
files:
|
33
33
|
- _config.yml
|
34
|
+
- _data/brand.yml
|
35
|
+
- _data/contact.yml
|
36
|
+
- _data/navigation.yml
|
37
|
+
- _data/openingTimes.yml
|
38
|
+
- _data/production.yml
|
39
|
+
- _data/profiles.yml
|
40
|
+
- _data/reviews.yml
|
34
41
|
- _includes/banner.html
|
35
42
|
- _includes/footer.html
|
36
43
|
- _includes/gtag.html
|
@@ -41,6 +48,7 @@ files:
|
|
41
48
|
- _includes/openTimes.html
|
42
49
|
- _includes/reviews.html
|
43
50
|
- _includes/socials.html
|
51
|
+
- _layouts/404.html
|
44
52
|
- _layouts/compress.html
|
45
53
|
- _layouts/contact.html
|
46
54
|
- _layouts/default.html
|