cafe-theme 0.1.2 → 0.1.5

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: 9dd0e444fc008a8bb38073b1222f57922ff1c375c0a1f8ad947196eca6eade49
4
- data.tar.gz: 0ca3e871063ea1fd5f43acbefea153837135ceaacee91a520f5dd7ba64d9bcfe
3
+ metadata.gz: 0c65d61b055213822557cf22ea4ac3efbe6c5a31061184eb792fe82055311f4f
4
+ data.tar.gz: 3fb47a01afc20ffc8141831affa5e8321528628eecc3071efa12b8a115f64992
5
5
  SHA512:
6
- metadata.gz: d541a588d43553f1f5257b47bd2253a4892c69feb1fc99c1df1ab7c39269b2798d079cce53b5eccd97b1f7cb867bede8fe040a40184e0bb4eda5e4854e127c10
7
- data.tar.gz: a6f75cb66c3b559a6a23772a7d594ffe24919a3d937c1a756d72f01d07a152aa1725643fcb870e2d4bb699aec7ab99f89748b0ff137474716ba11aa63aa54ff5
6
+ metadata.gz: 131c0d1a02c45d85af2c5d45aff544356b41096062d263ba9ee8ab2f961d484e96830b96ab5e489c142a541e0b15dd841c3e96a388d60c8e0cf1b3caa3f390b2
7
+ data.tar.gz: 45f81775b38716a89a4e1621b365e991d2641fd197428b943d36325c40a8755dcc93e98ade6ad84b60d271c2a0971173c3ca9382183d91c48fda79d39b51fc47
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,7 +25,7 @@
25
25
 
26
26
  <!-- Styles -->
27
27
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
28
- {% for color_profile in site.data.profiles.color_profiles %}
28
+ {% for color_profile in site.color_profiles %}
29
29
  {% if color_profile.name == site.data.brand.color_profile %}
30
30
  <meta name="profile-color" content="{{ color_profile.background_color }}">
31
31
  {% endif %}
@@ -1,6 +1,12 @@
1
1
  <div class="openingTimes">
2
2
  {% for day_of_week in site.data.openingTimes %}
3
3
  <p>{{ day_of_week.days }}:</p>
4
- <p>{{ day_of_week.open }} - {{ day_of_week.close }}</p>
4
+ <p>
5
+ {% if day_of_week.open and day_of_week.close %}
6
+ {{ day_of_week.open }} - {{ day_of_week.close }}
7
+ {% else %}
8
+ Closed
9
+ {% endif %}
10
+ </p>
5
11
  {% endfor %}
6
12
  </div>
@@ -7,8 +7,8 @@ layout: default
7
7
  <div id="gallery">
8
8
  {% for description in page.descriptions %}
9
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>
10
+ <img src="{{ '/assets/images/gallery/' | append: forloop.index | append: '.webp' | relative_url }}" alt="{{ description }}">
11
+ <p>{{ description }}</p>
12
12
  </div>
13
13
  {% endfor %}
14
14
  </div>
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;
@@ -2,7 +2,7 @@
2
2
  ---
3
3
 
4
4
  // Color profiles
5
- {% for color_profile in site.data.profiles.color_profiles %}
5
+ {% for color_profile in site.color_profiles %}
6
6
  {% if color_profile.name == site.data.brand.color_profile %}
7
7
  $foreground-color: {{ color_profile.foreground_color }};
8
8
  $background-color: {{ color_profile.background_color }};
@@ -11,7 +11,7 @@
11
11
  {% endfor %}
12
12
 
13
13
  // Font profiles
14
- {% for font_profile in site.data.profiles.font_profiles %}
14
+ {% for font_profile in site.font_profiles %}
15
15
  {% if font_profile.name == site.data.brand.font_profile %}
16
16
  {% if font_profile.font_url %}
17
17
  @import url({{ font_profile.font_url }});
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.2
4
+ version: 0.1.5
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 00:00:00.000000000 Z
11
+ date: 2022-07-16 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: []
@@ -31,13 +45,6 @@ extensions: []
31
45
  extra_rdoc_files: []
32
46
  files:
33
47
  - _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
41
48
  - _includes/banner.html
42
49
  - _includes/footer.html
43
50
  - _includes/gtag.html
data/_data/brand.yml DELETED
@@ -1,5 +0,0 @@
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 DELETED
@@ -1,14 +0,0 @@
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/navigation.yml DELETED
@@ -1,8 +0,0 @@
1
- - title: Home
2
- url: /
3
- - title: Menu
4
- url: /menu
5
- - title: Gallery
6
- url: /gallery
7
- - title: Contact
8
- url: /contact
@@ -1,9 +0,0 @@
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
data/_data/production.yml DELETED
@@ -1,2 +0,0 @@
1
- demo: false
2
- gtag:
data/_data/profiles.yml DELETED
@@ -1,30 +0,0 @@
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 DELETED
@@ -1,15 +0,0 @@
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