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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5ca7c68ae4bfab4caa66f9306bbfd8955a2ae5375de8b35d4ec063c6603b6d99
4
- data.tar.gz: eceae0822a59964f3bd180ad7502891f0e18bea18b737bdf42a01d7a14aa0b38
3
+ metadata.gz: 9dd0e444fc008a8bb38073b1222f57922ff1c375c0a1f8ad947196eca6eade49
4
+ data.tar.gz: 0ca3e871063ea1fd5f43acbefea153837135ceaacee91a520f5dd7ba64d9bcfe
5
5
  SHA512:
6
- metadata.gz: 3ddebe151f54897d687ccc2444c44f2e691c8cf3cd9a572ef009ac5a1c57e996ea9ebccbe416a6e45a0f4da0481099df222e502b4c47e44fbd7a0e0e4e92e491
7
- data.tar.gz: fb1a2ec215f149c8afe480aef4b63996981d120873e48a367bea8592866fb79c203faa7ca2ac06e0b2b6d75b3253c5603e80955f96404c80b02d7b87bd44492d
6
+ metadata.gz: d541a588d43553f1f5257b47bd2253a4892c69feb1fc99c1df1ab7c39269b2798d079cce53b5eccd97b1f7cb867bede8fe040a40184e0bb4eda5e4854e127c10
7
+ data.tar.gz: a6f75cb66c3b559a6a23772a7d594ffe24919a3d937c1a756d72f01d07a152aa1725643fcb870e2d4bb699aec7ab99f89748b0ff137474716ba11aa63aa54ff5
data/_data/brand.yml ADDED
@@ -0,0 +1,5 @@
1
+ name: Generic Café
2
+ description: A template website for a café.
3
+ color_profile: dark # options: light, dark, pink
4
+ font_profile: futuristic # options: futuristic, rustic, cursive, formal
5
+ accent_color: "#b12b2b"
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
@@ -0,0 +1,8 @@
1
+ - title: Home
2
+ url: /
3
+ - title: Menu
4
+ url: /menu
5
+ - title: Gallery
6
+ url: /gallery
7
+ - title: Contact
8
+ url: /contact
@@ -0,0 +1,9 @@
1
+ - days: Weekdays
2
+ open: 6:00 AM
3
+ close: 2:00 PM
4
+ - days: Weekends
5
+ open: 6:30 AM
6
+ close: 2:00 PM
7
+ - days: Public holidays
8
+ open: 7:00 AM
9
+ close: 2:00 PM
@@ -0,0 +1,2 @@
1
+ demo: false
2
+ gtag:
@@ -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 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.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 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>
@@ -2,5 +2,8 @@
2
2
  layout: default
3
3
  ---
4
4
  {% include map.html %}
5
+ {% if content != "" %}
6
+ <p>{{ content }}</p>
7
+ {% endif %}
5
8
  {% include socials.html %}
6
9
  {% include openTimes.html %}
@@ -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 gallery_item in site.data.gallery.gallery %}
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="{{ gallery_item.description }}"">
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
- <p>{{ site.data.brand.description }}{% if site.data.production.demo %} This website is not the official website of {{ site.data.brand.name }}, it is a demo.{% endif %}</p>
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 menu in site.data.menu.menus %}
9
- {% unless forloop.first %}
10
- <hr>
11
- {% endunless %}
12
- <h1>{{ menu.title | upcase }}</h1>
13
- <p>{{ menu.time }}</p>
14
- <div id="{{ menu.title }}">
15
- {% for food in menu.foods %}
16
- <div onclick=""> <!-- onclick lets iOS recognise hover events -->
17
- <h2>{{ food.name }}
18
- <span>${{ food.price }}</span>
19
- {% if food.vegan %}
20
- {% assign has_vegan = true %}
21
- <img src="{{ '/assets/images/menu/diet/vegan.png' | relative_url }}" class="dietIcon" title="Vegan" alt="Vegan">
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
- {% if food.gluten_free %}
24
- {% assign has_gluten_free = true %}
25
- <img src="{{ '/assets/images/menu/diet/glutenFree.png' | relative_url }}" class="dietIcon" title="Gluten free" alt="Gluten free">
26
- {% endif %}
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 %}
@@ -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.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 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.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: {{ 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.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