summaryrefslogtreecommitdiff
path: root/projs/index.html
blob: da06215dfb11bc46f01ed2fcdd776f6c8cf416fd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />

    <!-- HTML Meta Tags -->
    <title>Yuuta Projects</title>
    <meta name="description" content="Project panel of Yuuta Liang." />

    <!-- Facebook Meta Tags -->
    <meta property="og:url" content="https://blog.yuuta.moe/projs/" />
    <meta property="og:type" content="website" />
    <meta property="og:title" content="Yuuta Projects" />
    <meta property="og:description" content="Project panel of Yuuta Liang." />
    <meta
      property="og:image"
      content="https://imagedelivery.net/b21oeeg7p6hqWEI-IA5xDw/0db4540a-72fb-4f01-6a04-a03ad5bf8400/public"
    />

    <!-- Twitter Meta Tags -->
    <meta name="twitter:card" content="summary_large_image" />
    <meta property="twitter:domain" content="blog.yuuta.moe" />
    <meta property="twitter:url" content="https://blog.yuuta.moe/projs/" />
    <meta name="twitter:title" content="Yuuta Projects" />
    <meta name="twitter:description" content="Project panel of Yuuta Liang." />
    <meta
      name="twitter:image"
      content="https://imagedelivery.net/b21oeeg7p6hqWEI-IA5xDw/0db4540a-72fb-4f01-6a04-a03ad5bf8400/public"
    />
  </head>

  <body>
    <div id="app" class="min-h-screen flex flex-col mx-auto bg-zinc-100">
      <header class="box bg-red-700 shadow-md">
        <div
          class="
            flex
            items-center
            justify-between
            text-gray-100
            max-w-5xl
            mx-auto
          "
        >
          <span class="text-3xl font-bold select-none cursor-default"
            >Proj.</span
          >
          <div class="">
            <a href="https://github.com/George-Miao/proj">
              <span
                class="iconify cursor-pointer"
                data-width="24"
                data-height="24"
                data-icon="akar-icons:github-fill"
              ></span>
            </a>
          </div>
        </div>
      </header>
      <main
        class="
          flex-grow
          box
          grid
          auto-rows-min
          lg:grid-cols-3 lg:gap-6
          md:grid-cols-2 md:gap-5
          sm:grid-cols-2 sm:gap-4
          overflow-hidden
          mx-auto
        "
        style="width: min(100vw, 70rem)"
        x-data="{
          projects,
        }"
      >
        <template x-for="category in projects">
          <!-- Category -->
          <div class="text-left mb-8 overflow-hidden">
            <!-- Category meta -->
            <div class="flex items-baseline pb-4">
              <!-- Category icon -->
              <template x-if="category.icon">
                <div class="my-auto text-gray-500 select-none">
                  <span
                    class="iconify mr-2"
                    data-width="24"
                    data-height="24"
                    :data-icon="category.icon"
                  ></span>
                </div>
              </template>
              <!-- Category name -->
              <h1 class="text-2xl" x-text="category.name"></h1>
              <!-- Category description -->
              <span
                x-text="category.description"
                class="
                  ml-3
                  text-gray-600 text-sm
                  whitespace-nowrap
                  overflow-hidden
                  text-ellipsis
                "
              ></span>
            </div>
            <template x-for="item in category.items">
              <!-- Item -->
              <a
                class="
                  flex
                  items-center
                  px-5
                  py-3
                  md:mb-4
                  sm:mb-3
                  mb-3
                  rounded
                  bg-white
                  shadow
                "
                x-data="
                // Not tested, no result
                {
                  up: 0
                }"
                :label="item.link ?? null"
              >
                <!-- Item content -->
                <div class="flex-grow overflow-hidden overflow-ellipsis">
                  <!-- Item name  -->
                  <!-- Item name -->
                  <h3 x-text="item.name" class="mb-1.5 text-lg"></h3>
                  <!-- Item description -->
                  <p
                    class="text-gray-500 text-sm w-full mb-3"
                    x-text="item.description"
                  />
                  <!-- Item indicator -->
                  <div class="flex item-indicators" x-data="{ size: 18 }">
                    <!-- isPrivate -->
                    <template x-if="item.isPrivate">
                      <div>
                        <span
                          class="iconify text-gray-600"
                          data-icon="bx:bx-lock-alt"
                          :data-width="size"
                          :data-height="size"
                        ></span>
                      </div>
                    </template>
                    <!-- Has link -->
                    <template x-if="item.link">
                      <a :href="item.link">
                        <span
                          class="
                            iconify
                            text-gray-500
                            hover:text-black
                            transition-none
                            cursor-pointer
                          "
                          :data-width="size"
                          :data-height="size"
                          data-icon="akar-icons:link-chain"
                        ></span>
                      </a>
                    </template>
                    <!-- Has github -->
                    <template x-if="item.github">
                      <a :href="item.github">
                        <span
                          class="
                            iconify
                            text-gray-500
                            hover:text-black
                            transition-none
                            cursor-pointer
                          "
                          :data-width="size"
                          :data-height="size"
                          data-icon="akar-icons:github-fill"
                        ></span>
                      </a>
                    </template>
                    <!-- Other indicators -->
                    <template x-for="indicator in item.indicators">
                      <a :href="indicator.link ?? null">
                        <span
                          class="iconify text-gray-500 transition-none"
                          :class="indicator.link && 'hover:text-black cursor-pointer' + indicator.class"
                          :data-width="size"
                          :data-height="size"
                          :data-icon="indicator.icon"
                        ></span>
                      </a>
                    </template>
                  </div>
                </div>
                <!-- Item icon -->
                <template x-if="item.icon"
                  ><div class="m-2 overflow-visible text-gray-500 select-none">
                    <span
                      class="iconify"
                      data-width="28"
                      data-height="28"
                      :data-icon="item.icon"
                    ></span></div
                ></template>
              </a>
            </template>
          </div>
        </template>
      </main>
      <footer
        class="
          box
          md:py-8 md:leading-7 md:text-s
          sm:py-6
          text-xs
          py-4
          bg-zinc-200
          text-zinc-600
          leading-6
        "
      >
        <p><b>Proj.</b> by George Miao &COPY; 2021</p>
        <p>
          Built with
          <a href="https://tailwindcss.com">TailwindCSS</a>
          &
          <a href="https://alpinejs.dev/directives/bind">AlpineJS</a>
        </p>
        <p>The source code is in MIT license</p>
      </footer>
    </div>
    <script type="module" src="/src/main.ts"></script>
    <script
      src="https://unpkg.com/alpinejs@3.7.1/dist/cdn.min.js"
      defer
    ></script>
    <script
      src="https://code.iconify.design/2/2.1.0/iconify.min.js"
      defer
    ></script>
  </body>
</html>