|
| 1 | +{{ define "head" }} |
| 2 | +<style> |
| 3 | + body { |
| 4 | + background-color: #000 !important; |
| 5 | + } |
| 6 | + |
| 7 | + header { |
| 8 | + background-color: transparent !important; |
| 9 | + border-bottom-color: rgba(255,255,255,0.1) !important; |
| 10 | + } |
| 11 | + header a, header button { |
| 12 | + color: #ccc !important; |
| 13 | + } |
| 14 | + |
| 15 | + footer { |
| 16 | + background-color: #000 !important; |
| 17 | + } |
| 18 | + |
| 19 | + .gif-text { |
| 20 | + background-image: url(https://media1.giphy.com/media/v1.Y2lkPTc5MGI3NjExOTlueXllMmF0YzYxMjY5aHY1b3JpNHJ3NmZpZWgxcnliaTVmbHZtbCZlcD12MV9pbnRlcm5hbF9naWZfYnlfaWQmY3Q9Zw/h6IEWL7c19SS6Yn1FM/giphy.gif); |
| 21 | + background-size: cover; |
| 22 | + background-position: center; |
| 23 | + background-attachment: fixed; |
| 24 | + -webkit-background-clip: text; |
| 25 | + -moz-background-clip: text; |
| 26 | + background-clip: text; |
| 27 | + color: transparent; |
| 28 | + -webkit-text-fill-color: transparent; |
| 29 | + text-decoration: none; |
| 30 | + } |
| 31 | +</style> |
| 32 | +{{ end }} |
| 33 | + |
1 | 34 | {{ define "main" }} |
2 | 35 | <style> |
3 | 36 | .gradient-overlay { |
4 | 37 | position: fixed; |
5 | 38 | inset: 0; |
6 | 39 | pointer-events: none; |
7 | 40 | z-index: 0; |
8 | | - opacity: 0.2; |
| 41 | + opacity: 0.15; |
9 | 42 | animation: gradientShift 30s ease-in-out infinite; |
10 | 43 | } |
11 | 44 | @keyframes gradientShift { |
|
23 | 56 | .particle { |
24 | 57 | position: absolute; |
25 | 58 | border-radius: 50%; |
26 | | - opacity: 0.4; |
| 59 | + opacity: 0.3; |
27 | 60 | animation: float var(--particle-duration, 120s) linear infinite; |
28 | 61 | transform-origin: 50vw 50vh; |
29 | 62 | } |
|
41 | 74 | const container = document.getElementById('particles'); |
42 | 75 | const baseSize = 1920 * 1080; |
43 | 76 |
|
44 | | - // 画面サイズに応じてアニメーション速度を計算 |
45 | 77 | function calcDuration() { |
46 | 78 | const currentSize = window.innerWidth * window.innerHeight; |
47 | 79 | const ratio = Math.sqrt(currentSize / baseSize); |
|
79 | 111 | } |
80 | 112 | })(); |
81 | 113 | </script> |
82 | | - <div class="hero-container relative z-10" id="heroContainer"> |
83 | | - <h1 class="font-public-sans font-bold text-4xl sm:text-6xl md:text-8xl mb-8 tracking-tight"> |
84 | | - <a href="/" class="text-stencil">Technoplasm</a> |
| 114 | + <div class="relative z-10"> |
| 115 | + <h1 class="font-public-sans font-bold text-6xl sm:text-8xl md:text-[120px] mb-4 tracking-tight leading-tight gif-text"> |
| 116 | + Technoplasm |
85 | 117 | </h1> |
86 | | - <p class="text-xl sm:text-2xl md:text-3xl font-medium"> |
87 | | - <span class="text-gray-900">その身体は</span><span class="text-stencil">テクノロジー</span><span class="text-gray-900">で出来ている</span> |
| 118 | + <p class="text-xl sm:text-2xl md:text-3xl font-medium leading-loose"> |
| 119 | + <span class="text-white">その身体は</span><span class="gif-text text-2xl sm:text-3xl md:text-4xl">テクノロジー</span><span class="text-white">で出来ている</span> |
88 | 120 | </p> |
89 | 121 | </div> |
| 122 | + <script> |
| 123 | + (function() { |
| 124 | + var gifs = [ |
| 125 | + 'url(https://media1.giphy.com/media/v1.Y2lkPTc5MGI3NjExOTlueXllMmF0YzYxMjY5aHY1b3JpNHJ3NmZpZWgxcnliaTVmbHZtbCZlcD12MV9pbnRlcm5hbF9naWZfYnlfaWQmY3Q9Zw/h6IEWL7c19SS6Yn1FM/giphy.gif)', |
| 126 | + 'url(https://media4.giphy.com/media/v1.Y2lkPTc5MGI3NjExOGliYmcxOWltOHRuZmR2aXdyd3Rsc2V0b3h6aThjMTIzbGU5MmRobCZlcD12MV9pbnRlcm5hbF9naWZfYnlfaWQmY3Q9Zw/RinDK3M9VVPclvxfKo/giphy.gif)', |
| 127 | + 'url(https://media2.giphy.com/media/v1.Y2lkPTc5MGI3NjExcDM2YmR6aHFqMTF1ZnFiYTUwN2k2MjN3ajA5azdlMzM2eWtycHM3biZlcD12MV9pbnRlcm5hbF9naWZfYnlfaWQmY3Q9Zw/59UXwJA1Wq6ZWgmgAi/giphy.gif)', |
| 128 | + 'url(https://media3.giphy.com/media/v1.Y2lkPTc5MGI3NjExOXM5eGNxYTVuZWZpaDVwaGk4ZTg4ejR6MzJmamVqdW5xdHE4bWZ5ZyZlcD12MV9pbnRlcm5hbF9naWZfYnlfaWQmY3Q9Zw/GIY4FhXDnT49CamnRn/giphy.gif)', |
| 129 | + 'url(https://media2.giphy.com/media/v1.Y2lkPTc5MGI3NjExcmNlMTBpZzU2MHl6NWIyZ2M1YnN1bGg1ZTJ5eXdqeGFzZmxrOGl2ZyZlcD12MV9pbnRlcm5hbF9naWZfYnlfaWQmY3Q9Zw/l0IyhNlpfmQtjkuDC/giphy.gif)' |
| 130 | + ]; |
| 131 | + var idx = Math.floor(Math.random() * gifs.length); |
| 132 | + var els = document.querySelectorAll('.gif-text'); |
| 133 | + for (var i = 0; i < els.length; i++) { |
| 134 | + els[i].style.backgroundImage = gifs[idx]; |
| 135 | + } |
| 136 | + setInterval(function() { |
| 137 | + idx = (idx + 1) % gifs.length; |
| 138 | + for (var i = 0; i < els.length; i++) { |
| 139 | + els[i].style.backgroundImage = gifs[idx]; |
| 140 | + } |
| 141 | + }, 10000); |
| 142 | + })(); |
| 143 | + </script> |
90 | 144 | </div> |
91 | 145 |
|
92 | 146 | <!-- News Section --> |
93 | | - <section class="py-16 px-6"> |
| 147 | + <section class="py-6 px-6"> |
94 | 148 | <div class="max-w-4xl mx-auto"> |
95 | | - <div class="flex items-center justify-between mb-8"> |
96 | | - <h2 class="text-2xl font-bold text-slate-800">お知らせ</h2> |
97 | | - <!-- <a href="/news/" class="text-sm text-slate-600 hover:text-slate-800 transition">すべて見る →</a> --> |
98 | | - </div> |
99 | | - <div class="bg-white rounded border border-gray-200 overflow-hidden"> |
100 | | - <div class="max-h-[11rem] overflow-y-auto divide-y divide-gray-100"> |
| 149 | + <div class="rounded border border-white/20 overflow-hidden bg-white/10"> |
| 150 | + <div class="max-h-[11rem] overflow-y-auto divide-y divide-white/10"> |
101 | 151 | {{ range first 5 (where .Site.RegularPages "Section" "news") }} |
102 | 152 | <div class="flex items-center px-4 py-3"> |
103 | | - <time class="text-base text-gray-500 shrink-0 w-36">{{ .Date.Format "2006年1月2日" }}</time> |
104 | | - <p class="text-base text-slate-800">{{ .Title }} |
105 | | - {{ with .Params.blog }} <a href="{{ . }}" class="text-sm text-blue-600 hover:text-blue-800">ブログ記事</a>{{ end }} |
| 153 | + <time class="text-base shrink-0 w-36 text-neutral-400">{{ .Date.Format "2006年1月2日" }}</time> |
| 154 | + <p class="text-base text-neutral-100">{{ .Title }} |
| 155 | + {{ with .Params.blog }} <a href="{{ . }}" class="text-sm text-blue-400 hover:text-blue-300">ブログ記事</a>{{ end }} |
106 | 156 | </p> |
107 | 157 | </div> |
108 | 158 | {{ end }} |
|
0 commit comments