yoyoyo 0.0.10 → 0.0.11

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.
Files changed (76) hide show
  1. checksums.yaml +4 -4
  2. data/LICENSE +21 -0
  3. data/README.md +31 -0
  4. data/_includes/categories.html +8 -0
  5. data/_includes/footer.html +6 -0
  6. data/_includes/head.html +129 -0
  7. data/_includes/header.html +9 -0
  8. data/_includes/home-footer.html +3 -0
  9. data/_includes/home-header.html +4 -0
  10. data/_includes/home-navigation.html +7 -0
  11. data/_includes/navigation.html +7 -0
  12. data/_includes/pagination.html +33 -0
  13. data/_includes/post-card.html +20 -0
  14. data/_includes/tags.html +8 -0
  15. data/_layouts/about.html +6 -0
  16. data/_layouts/author.html +15 -0
  17. data/_layouts/default.html +28 -0
  18. data/_layouts/home.html +14 -0
  19. data/_layouts/post.html +43 -0
  20. data/_sass/.DS_Store +0 -0
  21. data/_sass/footer.scss +45 -0
  22. data/_sass/header.scss +83 -0
  23. data/_sass/highlight.scss +159 -0
  24. data/_sass/main.scss +300 -0
  25. data/_sass/post.scss +3 -0
  26. data/assets/.DS_Store +0 -0
  27. data/assets/css/styles.scss +4 -0
  28. data/assets/icon/.DS_Store +0 -0
  29. data/assets/icon/android-icon-144x144.png +0 -0
  30. data/assets/icon/android-icon-192x192.png +0 -0
  31. data/assets/icon/android-icon-36x36.png +0 -0
  32. data/assets/icon/android-icon-48x48.png +0 -0
  33. data/assets/icon/android-icon-72x72.png +0 -0
  34. data/assets/icon/android-icon-96x96.png +0 -0
  35. data/assets/icon/apple-icon-114x114.png +0 -0
  36. data/assets/icon/apple-icon-120x120.png +0 -0
  37. data/assets/icon/apple-icon-144x144.png +0 -0
  38. data/assets/icon/apple-icon-152x152.png +0 -0
  39. data/assets/icon/apple-icon-180x180.png +0 -0
  40. data/assets/icon/apple-icon-57x57.png +0 -0
  41. data/assets/icon/apple-icon-60x60.png +0 -0
  42. data/assets/icon/apple-icon-72x72.png +0 -0
  43. data/assets/icon/apple-icon-76x76.png +0 -0
  44. data/assets/icon/apple-icon-precomposed.png +0 -0
  45. data/assets/icon/apple-icon.png +0 -0
  46. data/assets/icon/arrow_left.svg +1 -0
  47. data/assets/icon/arrow_left_dark.svg +1 -0
  48. data/assets/icon/arrow_right.svg +1 -0
  49. data/assets/icon/arrow_right_dark.svg +1 -0
  50. data/assets/icon/favicon-16x16.png +0 -0
  51. data/assets/icon/favicon-32x32.png +0 -0
  52. data/assets/icon/favicon-96x96.png +0 -0
  53. data/assets/icon/logo-dark.svg +9 -0
  54. data/assets/icon/logo.svg +9 -0
  55. data/assets/icon/ms-icon-144x144.png +0 -0
  56. data/assets/icon/ms-icon-150x150.png +0 -0
  57. data/assets/icon/ms-icon-310x310.png +0 -0
  58. data/assets/icon/ms-icon-70x70.png +0 -0
  59. data/assets/images/.DS_Store +0 -0
  60. data/assets/images/default.jpg +0 -0
  61. data/assets/images/programming_code.svg +1 -0
  62. data/assets/images/wxmp.png +0 -0
  63. data/assets/js/app.js +16 -0
  64. data/assets/js/precache-manifest.11bcfbfe6b7dae85e86faa087e0a5e06.js +6 -0
  65. data/assets/js/precache-manifest.1915fac201dd24dae9507688967c5188.js +6 -0
  66. data/assets/js/precache-manifest.2065e6686799b73f209ccb8fd864b1b8.js +6 -0
  67. data/assets/js/precache-manifest.39102f4dc1b24b71a25b460ac941d00b.js +6 -0
  68. data/assets/js/precache-manifest.a688172c829679a4a1893fe27d269fe6.js +6 -0
  69. data/assets/js/precache-manifest.a83e5c3f4f128d9750d50cf5abb68afd.js +6 -0
  70. data/assets/js/precache-manifest.c327e4d6b681a2a6c7a14644cb451ef5.js +6 -0
  71. data/assets/js/precache-manifest.f1b04314ba8d2ced03f1d0431a7dd77d.js +6 -0
  72. data/assets/js/sw.js +1 -0
  73. data/assets/js/workbox-0eb1d4be.js +1 -0
  74. data/assets/js/workbox-468c4d03.js +1 -0
  75. data/assets/js/workbox-d9851aed.js +1 -0
  76. metadata +78 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3584025c5ab1947faf267e04b3d16b82063485f9f0abd30bf357dfa7c0e04ab0
4
- data.tar.gz: 55bda56e0194c32467c644bfe490675fb22f5b0617c7abe20ad38bbf0b67c4ad
3
+ metadata.gz: 075a3338b3e9d6cea546c551720b91ac5c54d581141d88814d58fcb9b6ddae30
4
+ data.tar.gz: b206054fe73522159dffbfba0cd434d38950184f5e7241df3f83b0c8a3bd3b29
5
5
  SHA512:
6
- metadata.gz: fac18df42a7bfba9fb0aa560fbc00f577a38ef073a042eb6e9a3355c4f21b4b18d8977230e5f7b3455439884b8eb425b13ba35ffe30a8da6a33425027e24ed35
7
- data.tar.gz: 9f2fb09d698cc0e23783f906f16aeff4f0aa145a4377c0f677da12a4e8c1b4a3fb75c7ebc344bd9fd58b176958fb1769a9f5798995eac609d0f7883b721e5c50
6
+ metadata.gz: 3b166fbbc43d19927e5b8005f651655a2533770717904d2be5475f78b1febbd54a6b2eb9a0cc46f98ea669a0509b9bda53c7786cb9430912b70fed38a33fe228
7
+ data.tar.gz: 523a1ef471218b607fb8e5c3a0d4ddb5c8e8e6c4a072626707490044a6ba77f088005c130bc38423ca79d2e7b33792e1931acac3a111e82463dde5fcb2ed648d
data/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2019 张赫
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,31 @@
1
+ [![yoyoyo](https://socialify.git.ci/zhanghecool/yoyoyo/image?description=1&language=1&logo=https%3A%2F%2Fyoyoyo.zhanghe.cool%2Fassets%2Ficon%2Fms-icon-310x310.png&owner=1&pattern=Brick%20Wall&theme=Light)](https://yoyoyo.zhanghe.cool/)
2
+
3
+ <p align="center">
4
+ 采用 `kramdown` 文档编写的 GitHub Pages 模版主题。
5
+ 图片链接建议用自己的CDN加速服务,如果没有的话使用`https://cdn.jsdelivr.net/gh/GitHub的用户名/你的仓库名@发布的版本号/文件路径`进行文件加速服务。
6
+ <br>
7
+ <a href="https://yoyoyo.zhanghe.cool/"><strong>例子 »</strong></a>
8
+ <br>
9
+ <br>
10
+ </p>
11
+
12
+ ## Status
13
+
14
+ ![ci](https://github.com/zhanghecool/yoyoyo/workflows/ci/badge.svg)
15
+ ![Gem](https://img.shields.io/gem/v/yoyoyo.svg)
16
+ ![Gem](https://img.shields.io/gem/dt/yoyoyo.svg?color=%23e9573f&label=Gem%E4%B8%8B%E8%BD%BD%E6%80%BB%E6%AC%A1%E6%95%B0)
17
+ ![GitHub issues](https://img.shields.io/github/issues/zhanghecool/yoyoyo.svg)
18
+ ![GitHub code size in bytes](https://img.shields.io/github/languages/code-size/zhanghecool/yoyoyo.svg)
19
+ ![GitHub](https://img.shields.io/github/license/zhanghecool/yoyoyo.svg)
20
+ ![Website](https://img.shields.io/website-up-down-green-red/https/zhanghe.org/yoyoyo/.svg)
21
+ ![Twitter Follow](https://img.shields.io/twitter/follow/zhanghecool.svg?style=social)
22
+
23
+ ## Quick start
24
+
25
+ Several quick start options are available:
26
+
27
+ - Clone the repo: `git clone https://github.com/zhanghecool/yoyoyo.git`
28
+ - Install with [rubygems](https://rubygems.org/gems/yoyoyo): `gem install yoyoyo`
29
+ - GEMFILE: `gem 'yoyoyo', '~> 0.0.9'`
30
+
31
+ Read the [Getting started page](https://github.com/zhanghecool/yoyoyo/wiki/Quickstart) for information on the framework contents, templates and examples, and more.
@@ -0,0 +1,8 @@
1
+ {% for category in site.categories %}
2
+ <h3>{{ category[0] }}</h3>
3
+ <ul>
4
+ {% for post in category[1] %}
5
+ <li><a href="{{ site.baseurl }}{{ post.url }}">{{ post.title }}</a></li>
6
+ {% endfor %}
7
+ </ul>
8
+ {% endfor %}
@@ -0,0 +1,6 @@
1
+ <footer>
2
+ <div class="footer-nav">
3
+ {% include navigation.html %}
4
+ </div>
5
+ <div class="footer-info"></div>
6
+ </footer>
@@ -0,0 +1,129 @@
1
+ <meta charset="utf-8" /> <meta name="renderer" content="webkit" />
2
+ <!-- 用在360中 -->
3
+ <meta name="force-rendering" content="webkit" />
4
+ <!-- 用在其它 -->
5
+ <meta http-equiv="X-UA-Compatible" content="IE=edge" />
6
+ <!-- 针对 IE 浏览器 -->
7
+ <meta http-equiv="Cache-Control" content="no-transform" />
8
+ <!-- 针对百度搜索 -->
9
+ <meta name="format-detection" content="telephone=no,email=no,adress=no" />
10
+ <meta
11
+ name="viewport"
12
+ content="width=device-width, initial-scale=1,
13
+ shrink-to-fit=no, user-scalable=no, viewport-fit=cover"
14
+ />
15
+ <meta name="author" content="{{ site.metaAuthor}}" />
16
+ <meta name="robots" content="index,follow" />
17
+ <meta name="referrer" content="origin-when-cross-origin" />
18
+ <meta name="theme-color" content="{{ site.themeColor }}" />
19
+ <meta name="color-scheme" content="dark light" />
20
+ <meta name="application-name" content="{{site.blogName}}" />
21
+ <meta name="apple-mobile-web-app-capable" content="yes" />
22
+ <meta name="apple-mobile-web-app-status-bar-style" content="white" />
23
+ <meta name="apple-mobile-web-app-title" content="{{site.appTitle}}" />
24
+ <meta name="msapplication-tooltip" content="{{site.description}}" />
25
+ <meta name="msapplication-TileColor" content="{{ site.themeColor }}" />
26
+ <meta
27
+ name="msapplication-TileImage"
28
+ content="{{ site.baseurl }}/assets/icon/apple-icon-144x144.png"
29
+ />
30
+ <link rel="dns-prefetch" href="{{ site.url }}" />
31
+ <link
32
+ rel="shortcut icon"
33
+ href="{{ site.baseurl }}/favicon.ico"
34
+ sizes="128x128"
35
+ />
36
+ <link
37
+ rel="apple-touch-icon"
38
+ sizes="57x57"
39
+ href="{{ site.baseurl }}/assets/icon/apple-icon-57x57.png"
40
+ />
41
+ <link
42
+ rel="apple-touch-icon"
43
+ sizes="60x60"
44
+ href="{{ site.baseurl }}/assets/icon/apple-icon-60x60.png"
45
+ />
46
+ <link
47
+ rel="apple-touch-icon"
48
+ sizes="72x72"
49
+ href="{{ site.baseurl }}/assets/icon/apple-icon-72x72.png"
50
+ />
51
+ <link
52
+ rel="apple-touch-icon"
53
+ sizes="76x76"
54
+ href="{{ site.baseurl }}/assets/icon/apple-icon-76x76.png"
55
+ />
56
+ <link
57
+ rel="apple-touch-icon"
58
+ sizes="114x114"
59
+ href="{{ site.baseurl }}/assets/icon/apple-icon-114x114.png"
60
+ />
61
+ <link
62
+ rel="apple-touch-icon"
63
+ sizes="120x120"
64
+ href="{{ site.baseurl }}/assets/icon/apple-icon-120x120.png"
65
+ />
66
+ <link
67
+ rel="apple-touch-icon"
68
+ sizes="144x144"
69
+ href="{{ site.baseurl }}/assets/icon/apple-icon-144x144.png"
70
+ />
71
+ <link
72
+ rel="apple-touch-icon"
73
+ sizes="152x152"
74
+ href="{{ site.baseurl }}/assets/icon/apple-icon-152x152.png"
75
+ />
76
+ <link
77
+ rel="apple-touch-icon"
78
+ sizes="180x180"
79
+ href="{{ site.baseurl }}/assets/icon/apple-icon-180x180.png"
80
+ />
81
+ <link
82
+ rel="icon"
83
+ type="image/png"
84
+ sizes="192x192"
85
+ href="{{ site.baseurl }}/assets/icon/android-icon-192x192.png"
86
+ />
87
+ <link
88
+ rel="icon"
89
+ type="image/png"
90
+ sizes="32x32"
91
+ href="{{ site.baseurl }}/assets/icon/favicon-32x32.png"
92
+ />
93
+ <link
94
+ rel="icon"
95
+ type="image/png"
96
+ sizes="96x96"
97
+ href="{{ site.baseurl }}/assets/icon/favicon-96x96.png"
98
+ />
99
+ <link
100
+ rel="icon"
101
+ type="image/png"
102
+ sizes="16x16"
103
+ href="{{ site.baseurl }}/assets/icon/favicon-16x16.png"
104
+ />
105
+ <link rel="manifest" href="{{ site.baseurl }}/manifest.json" />
106
+ <link
107
+ href="https://cdn.jsdelivr.net/npm/tailwindcss/dist/tailwind.css"
108
+ rel="stylesheet"
109
+ />
110
+ <link rel="stylesheet" href="{{ site.baseurl }}/assets/css/styles.css" />
111
+ {% seo %}
112
+ <!-- Global site tag (gtag.js) - Google Analytics -->
113
+ <script
114
+ async
115
+ src="https://www.googletagmanager.com/gtag/js?id={{ site.ga.userid }}"
116
+ ></script>
117
+ <script>
118
+ window.dataLayer = window.dataLayer || [];
119
+ function gtag() {
120
+ dataLayer.push(arguments);
121
+ }
122
+ gtag('js', new Date());
123
+
124
+ gtag('config', '{{ site.ga.userid }}');
125
+ </script>
126
+ <!--[if lt IE 9]>
127
+ <script src="//cdn.bootcss.com/html5shiv/3.7.3/html5shiv.min.js"></script>
128
+ <script src="//cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script>
129
+ <![endif]-->
@@ -0,0 +1,9 @@
1
+ <header class="yoyoyo-header">
2
+ <div class="header-description">{{ site.description }}</div>
3
+ <a
4
+ class="yoyoyo-header-logo"
5
+ title="{{ site.title }}"
6
+ href="{{ site.baseurl }}/"
7
+ ></a>
8
+ {% include navigation.html %}
9
+ </header>
@@ -0,0 +1,3 @@
1
+ <div class="grid-item theme-footer">
2
+ {% include tags.html %}
3
+ </div>
@@ -0,0 +1,4 @@
1
+ <div class="grid-item theme-header">
2
+ {% include home-navigation.html %}
3
+ {% include categories.html %}
4
+ </div>
@@ -0,0 +1,7 @@
1
+ <nav>
2
+ {% for item in site.data.navigation %}
3
+ <a href="{{ site.baseurl }}{{ item.link }}" {% if page.url == item.link %}class="current"{% endif %}>
4
+ {{ item.name }}
5
+ </a>
6
+ {% endfor %}
7
+ </nav>
@@ -0,0 +1,7 @@
1
+ <nav>
2
+ {% for item in site.data.navigation %}
3
+ <a class="{% if page.url == item.link %}current{% endif %}" href="{{ site.baseurl }}{{ item.link }}">
4
+ {{ item.name }}
5
+ </a>
6
+ {% endfor %}
7
+ </nav>
@@ -0,0 +1,33 @@
1
+ {% if paginator.total_pages > 1 %}
2
+ <div class="list-pagination">
3
+ {% if paginator.previous_page %}
4
+ <a
5
+ class="pagination-arrow arrow-left"
6
+ href="{{ paginator.previous_page_path | relative_url }}"
7
+ >
8
+ 上一页
9
+ </a>
10
+ {% endif %}
11
+ <!-- {% for page in (1..paginator.total_pages) %} {% if page ==
12
+ paginator.page %}
13
+ <em>{{ page }}</em>
14
+ {% elsif page == 1 %}
15
+ <a href="{{ paginator.previous_page_path | relative_url }}">
16
+ {{ page }}
17
+ </a>
18
+ {% else %}
19
+ <a href="{{ site.paginate_path | relative_url | replace: ':num', page }}">
20
+ {{ page }}
21
+ </a>
22
+ {% endif %} {% endfor %} -->
23
+ {% if paginator.next_page %}
24
+ <a
25
+ class="pagination-arrow arrow-right"
26
+ href="{{ paginator.next_page_path | relative_url }}"
27
+ >
28
+ 下一页
29
+ </a>
30
+ {% endif %}
31
+ </div>
32
+
33
+ {% endif %}
@@ -0,0 +1,20 @@
1
+ <div class="post-item" itemprop="blogPost" itemscope itemtype="http://schema.org/BlogPosting">
2
+ <a class="post-item-body posts-link" href="{{ post.url | prepend: site.baseurl }}" itemprop="url">
3
+ {% if post.image %}
4
+ <div class="posts-image" data-aos="fade-in" itemprop="image" title="{{ post.title }}" style="background-image: url({{ post.image }})"></div>
5
+ {% endif %}
6
+ <div class="posts-content">
7
+ <div class="posts-body">
8
+ <h2 class="posts-title" itemprop="name">{{ post.title }}</h2>
9
+ {% if post.description %}
10
+ <p class="posts-description" itemprop="description">{{ post.description }}</p itemprop="description">
11
+ {% endif %}
12
+ <p class="posts-author">
13
+ {{ post.date | date_to_string }} {% assign author = site.authors | where:
14
+ 'short_name', post.author | first %} {% if author %} - {{ author.name }}
15
+ {% endif %}
16
+ </p>
17
+ </div>
18
+ </div>
19
+ </a>
20
+ </div>
@@ -0,0 +1,8 @@
1
+ {% for tag in site.tags %}
2
+ <h3>{{ tag[0] }}</h3>
3
+ <ul>
4
+ {% for post in tag[1] %}
5
+ <li><a href="{{ site.baseurl }}{{ post.url }}">{{ post.title }}</a></li>
6
+ {% endfor %}
7
+ </ul>
8
+ {% endfor %}
@@ -0,0 +1,6 @@
1
+ ---
2
+ layout: default
3
+ title: About
4
+ ---
5
+ This page tells you a little bit about me.
6
+ {{ content }}
@@ -0,0 +1,15 @@
1
+ ---
2
+ layout: default
3
+ ---
4
+ <h1>{{ page.name }}</h1>
5
+ <h2>{{ page.position }}</h2>
6
+
7
+ {{ content }}
8
+
9
+ <h2>Posts</h2>
10
+ <ul>
11
+ {% assign filtered_posts = site.posts | where: 'author', page.short_name %}
12
+ {% for post in filtered_posts %}
13
+ <li><a href="{{ site.baseurl }}{{ post.url }}">{{ post.title }}</a></li>
14
+ {% endfor %}
15
+ </ul>
@@ -0,0 +1,28 @@
1
+ <!DOCTYPE html>
2
+ <html lang="{{ site.lang }}">
3
+ <head>
4
+ {% include head.html %}
5
+ </head>
6
+ <body>
7
+ {% include header.html %}
8
+ <main>{{ content }}</main>
9
+ {% include footer.html %}
10
+ <script src="{{ site.baseurl }}/assets/js/app.js"></script>
11
+ <script type="application/ld+json">
12
+ {
13
+ "@context": "https://ziyuan.baidu.com/contexts/cambrian.jsonld",
14
+ "@id": "{{ site.url }}{{ site.baseurl }}{{ page.url }}",
15
+ "appid": "{{ site.baidu.appid }}",
16
+ {% if page.title %}
17
+ "title": "{{ page.title }}",
18
+ {% else %}
19
+ "title": "{{ site.title }}",
20
+ {% endif%}
21
+ "images": [
22
+ "{{ site.url }}{{ site.baseurl }}{{ page.previewimg}}"
23
+ ],
24
+ "pubDate": "{{ page.date | date_to_xmlschema }}"
25
+ }
26
+ </script>
27
+ </body>
28
+ </html>
@@ -0,0 +1,14 @@
1
+ ---
2
+ layout: default
3
+ title: Home
4
+ pagination:
5
+ enabled: true
6
+ ---
7
+
8
+ <div class="home-list">
9
+ {% for post in paginator.posts %} {% include post-card.html %} {% endfor %}
10
+ </div>
11
+ {{ content }}
12
+ <div class="home-pagination">
13
+ {% include pagination.html %}
14
+ </div>
@@ -0,0 +1,43 @@
1
+ ---
2
+ layout: default
3
+ ---
4
+
5
+ <section class="post-item post-header">
6
+ <div class="post-item-body posts-link">
7
+ {% if page.image %}
8
+ <div
9
+ class="posts-image"
10
+ data-aos="fade-in"
11
+ title="{{ page.title }}"
12
+ style="background-image: url({{ page.image }})"
13
+ ></div>
14
+ {% endif %}
15
+ <div class="posts-content">
16
+ <div class="posts-body">
17
+ <h2 class="posts-title" itemprop="name">{{ page.title }}</h2>
18
+ {% if page.description %}
19
+ <p class="posts-description">{{ page.description }}</p>
20
+ {% endif %}
21
+ <p class="posts-author">
22
+ {{ page.date | date_to_string }} {% assign author = site.authors |
23
+ where: 'short_name', page.author | first %} {% if author %} - {{
24
+ author.name }} {% endif %}
25
+ </p>
26
+ </div>
27
+ </div>
28
+ </div>
29
+ </section>
30
+ <section class="post-main">
31
+ {{ content }}
32
+ </section>
33
+ <section class="post-utteranc">
34
+ <script
35
+ src="https://utteranc.es/client.js"
36
+ repo="{{ site.repo }}"
37
+ issue-term="pathname"
38
+ label="comment"
39
+ theme="github-light"
40
+ crossorigin="anonymous"
41
+ async
42
+ ></script>
43
+ </section>
data/_sass/.DS_Store ADDED
Binary file
data/_sass/footer.scss ADDED
@@ -0,0 +1,45 @@
1
+ footer {
2
+ padding: 0 80px;
3
+ position: relative;
4
+ background-color: v(body-background-color);
5
+ overflow: hidden;
6
+
7
+ .footer-nav {
8
+ padding: 64px 0;
9
+ text-align: center;
10
+
11
+ nav {
12
+ display: flex;
13
+ align-items: center;
14
+
15
+ a {
16
+ padding: 0 8px;
17
+ font-size: 16px;
18
+ line-height: 32px;
19
+ color: v(footer-text-color);
20
+ opacity: 0.4;
21
+ transition: all ease-in-out 380ms;
22
+
23
+ &:hover {
24
+ text-decoration: none;
25
+ opacity: 1;
26
+ }
27
+
28
+ &.current {
29
+ opacity: 1;
30
+ }
31
+ }
32
+ }
33
+ }
34
+ }
35
+
36
+
37
+ @media (max-width: 768px) {
38
+ footer {
39
+ padding: 0 20px;
40
+
41
+ .footer-nav {
42
+ padding: 24px 0;
43
+ }
44
+ }
45
+ }
data/_sass/header.scss ADDED
@@ -0,0 +1,83 @@
1
+ .yoyoyo-header {
2
+ .header-description {
3
+ font-size: 11px;
4
+ line-height: 1.4;
5
+ position: fixed;
6
+ z-index: 2;
7
+ top: 55px;
8
+ left: 33px;
9
+ max-width: 400px;
10
+ height: 100px;
11
+ cursor: default;
12
+ transform: rotate(-90deg) translate(-100%, 0%);
13
+ transform-origin: 0 0;
14
+ text-align: right;
15
+ letter-spacing: 2.5px;
16
+ text-transform: uppercase;
17
+ color: v(h1-color);
18
+ }
19
+
20
+ nav,
21
+ .header-contact {
22
+ // display: flex;
23
+ display: none;
24
+ align-items: center;
25
+
26
+ a {
27
+ padding: 0 8px;
28
+ font-size: 16px;
29
+ line-height: 32px;
30
+ color: #3a3a3a;
31
+ opacity: 0.4;
32
+ transition: all ease-in-out 380ms;
33
+
34
+ &:hover {
35
+ text-decoration: none;
36
+ opacity: 1;
37
+ }
38
+
39
+ &.current {
40
+ opacity: 1;
41
+ }
42
+ }
43
+ }
44
+
45
+ a.yoyoyo-header-logo {
46
+ position: absolute;
47
+ z-index: 9999;
48
+ width: 50px;
49
+ height: 50px;
50
+ left: 80px;
51
+ top: 55px;
52
+ padding: 0;
53
+ flex-shrink: 0;
54
+ display: block;
55
+ transition: all ease-in-out 380ms;
56
+ background-image: url(/assets/icon/logo.svg);
57
+ background-position: center;
58
+ background-repeat: no-repeat;
59
+ background-size: contain;
60
+ }
61
+ }
62
+
63
+ @media (prefers-color-scheme: dark), (max-width: 992px) {
64
+ .yoyoyo-header a.yoyoyo-header-logo {
65
+ background-image: url(/assets/icon/logo-dark.svg);
66
+ }
67
+
68
+ .yoyoyo-header .header-description {
69
+ opacity: 0.8;
70
+ }
71
+ }
72
+
73
+ @media (max-width: 768px) {
74
+ a.yoyoyo-header-logo {
75
+ left: 30px !important;
76
+ top: 33px !important;
77
+ }
78
+
79
+ .header-description {
80
+ top: 33px !important;
81
+ left: 2px !important;
82
+ }
83
+ }