cafe-theme 0.1.0 → 0.1.3

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4a99e1c8fd05aa0e8231cd4426ccd0376a14c3360f64fa50809f79dc17763679
4
- data.tar.gz: '09a4b1c076c90e19a47aaa6aadb20bf097585c9962b3a4f40724e08b3d7e1da4'
3
+ metadata.gz: bb5fba304faf15a9a1b8e53fa997294281d738fc35934da5bc63411e9bd8ebe8
4
+ data.tar.gz: 48f7f9ca8afc3a95b81ab812258517f688ad2e18a87e868f0f576f7768e0f5cf
5
5
  SHA512:
6
- metadata.gz: b0cb2fd2da4dd3abe92de068f991e912ef7448658e0e21a8ce537a5a3ec87457b2bb2f64cdd0207d549e8060c4433cf1e764895e8ca2dac2c7e02fdfe2becdfc
7
- data.tar.gz: 9afd9586efcd739aced0178868cc27bc9648b04f3f6d21503c2859025cf35e2bec65928cd0619cabb59ba83b375eb3d43511b9f8542675df8413312dcbf0ff4c
6
+ metadata.gz: 4cd07f13ad326def75127c7a83649785b1114a8db71f27d0127485de93e5417253a56dd68a2639ce59665b41897e79f9af4e23da2de8cbdd2e5907b63261d4a3
7
+ data.tar.gz: 9d267c1aebc73047d041c36f140342701193e2652e50774dcb98c712d2bdb068072d06fe2b89f61496e8b14466c7794950f10d59a8f9e4b04acf018301c362bf
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 color_theme in site.data.themes.color_themes %}
29
- {% if color_theme.name == site.data.brand.color_theme %}
30
- <meta name="theme-color" content="{{ color_theme.background_color }}">
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 color_theme in site.data.themes.color_themes %}
25
- {% if color_theme.name == site.data.brand.color_theme %}
26
- <meta name="msapplication-TileColor" content="{{ color_theme.background_color }}">
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.pages %}
12
+ {% for navigation_page in site.data.navigation %}
13
13
  <li>
14
- <a href="{{ navigation_page.url | relative_url }}"{% if page.url == navigation_page.url %} class="currentPage"{% endif %} tabindex="0">{{ navigation_page.title }}</a>
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>
@@ -1,5 +1,5 @@
1
1
  <div class="openingTimes">
2
- {% for day_of_week in site.data.openingTimes.times %}
2
+ {% for day_of_week in site.data.openingTimes %}
3
3
  <p>{{ day_of_week.days }}:</p>
4
4
  <p>{{ day_of_week.open }} - {{ day_of_week.close }}</p>
5
5
  {% endfor %}
@@ -1,5 +1,5 @@
1
1
  <div id="reviews">
2
- {% for review in site.data.reviews.reviews %}
2
+ {% for review in site.data.reviews %}
3
3
  <a href="{{ review.link }}" target="_blank" rel="noopener">
4
4
  <h2>{{ review.title }}</h2>
5
5
  <p class="username">&mdash; {{ review.username }}</p>
data/_layouts/404.html ADDED
@@ -0,0 +1,5 @@
1
+ ---
2
+ layout: default
3
+ ---
4
+ <h1>404 - Page Not Found</h1>
5
+ <p>The page you were looking for could not be found. Please click on one of the navigation options above to find what you were looking for.</p>
@@ -0,0 +1,9 @@
1
+ ---
2
+ layout: default
3
+ ---
4
+ {% include map.html %}
5
+ {% if content != "" %}
6
+ <p>{{ content }}</p>
7
+ {% endif %}
8
+ {% include socials.html %}
9
+ {% include openTimes.html %}
@@ -0,0 +1,14 @@
1
+ ---
2
+ layout: default
3
+ ---
4
+ {% if content != "" %}
5
+ <p>{{ content }}</p>
6
+ {% endif %}
7
+ <div id="gallery">
8
+ {% for description in page.descriptions %}
9
+ <div onclick=""> <!-- onclick lets iOS recognise hover events -->
10
+ <img src="{{ '/assets/images/gallery/' | append: forloop.index | append: '.webp' | relative_url }}" alt="{{ description }}"">
11
+ <p>{{ gallery_item.description }}</p>
12
+ </div>
13
+ {% endfor %}
14
+ </div>
@@ -0,0 +1,14 @@
1
+ ---
2
+ layout: default
3
+ ---
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 %}
11
+ {% include reviews.html %}
12
+ {% include map.html %}
13
+ {% include openTimes.html %}
14
+ {% include socials.html %}
@@ -0,0 +1,55 @@
1
+ ---
2
+ layout: default
3
+ ---
4
+ {% if content != "" %}
5
+ <p>{{ content }}</p>
6
+ {% endif %}
7
+ <div id="menu">
8
+ {% assign has_vegan = false %}
9
+ {% assign has_gluten_free = false %}
10
+
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>
38
+ {% endif %}
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 %}
43
+ </div>
44
+ {% endfor %}
45
+ </div>
46
+ {% if has_vegan or has_gluten_free %}
47
+ <div id="menuKey">
48
+ {% if has_vegan %}
49
+ Vegan <img src="{{ '/assets/images/menu/diet/vegan.png' | relative_url }}" class="dietIcon" title="Vegan" alt="Vegan">
50
+ {% endif %}
51
+ {% if has_gluten_free %}
52
+ Gluten free <img src="{{ '/assets/images/menu/diet/glutenFree.png' | relative_url }}" class="dietIcon" title="Gluten free" alt="Gluten free">
53
+ {% endif %}
54
+ </div>
55
+ {% endif %}
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;
@@ -1,24 +1,24 @@
1
1
  ---
2
2
  ---
3
3
 
4
- // Color themes
5
- {% for color_theme in site.data.themes.color_themes %}
6
- {% if color_theme.name == site.data.brand.color_theme %}
7
- $foreground-color: {{ color_theme.foreground_color }};
8
- $background-color: {{ color_theme.background_color }};
9
- $transparent-nav-bar-text-color: {{ color_theme.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 themes
14
- {% for font_theme in site.data.themes.font_themes %}
15
- {% if font_theme.name == site.data.brand.font_theme %}
16
- {% if font_theme.font_url %}
17
- @import url({{ font_theme.font_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: {{ font_theme.title_font }};
21
- $body-font: {{ font_theme.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.0
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gavin Douch
@@ -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,8 +55,13 @@ 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
60
+ - _layouts/contact.html
45
61
  - _layouts/default.html
62
+ - _layouts/gallery.html
63
+ - _layouts/home.html
64
+ - _layouts/menu.html
46
65
  - _sass/gallery.mobile.scss
47
66
  - _sass/gallery.scss
48
67
  - _sass/gmap.mobile.scss