-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
421 lines (380 loc) · 15.4 KB
/
index.html
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
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Warp Particle Effect with Text and Scroll Speed Up</title>
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Nunito&display=swap">
<script src="https://kit.fontawesome.com/e7756b1ea4.js" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/1.4.0/p5.js"></script>
<style>
body {
margin: 0;
background-color: black;
font-family: 'Nunito', sans-serif;
}
canvas {
display: block;
position: fixed;
top: 0;
left: 0;
z-index: -1;
}
.catchphrase {
position: fixed;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
font-family: Lato, sans-serif;
font-weight: bold;
font-size: 48px;
text-align: center;
color: #FFF;
z-index: 2;
white-space: nowrap;
}
.supplement {
position: fixed;
top: 50%;
left: 50%;
transform: translate(-50%, 120%);
font-family: Lato, sans-serif;
font-weight: normal;
font-size: 24px;
text-align: center;
color: #FFF;
z-index: 2;
white-space: nowrap;
opacity: 0;
}
.catchphrase, .supplement {
transition: font-size 1s ease-in-out, opacity 1s ease-in-out; /* ゆっくりとしたアニメーションに変更 */
}
.card-container {
z-index: 3;
position: relative;
top: 200vh;
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: 16px;
padding: 100px 0;
background-color: rgba(11, 19, 35, 0.8);
width: 100%; /* 画面の横幅いっぱいに広げる */
}
.card {
background-color: rgba(28, 35, 51, 1);
padding: 20px;
border-radius: 8px;
width: calc(100vw / 2);
height: calc(100vw / 9);
box-shadow: 0 4px 6px rgba(33, 40, 57, 0.1);
color: #fff;
display: flex;
justify-content: space-between;
position: relative;
}
.list-container {
display: flex;
flex-direction: column;
align-items: flex-start;
padding-right: 80px;
}
/* 追加: h3, p, ul のマージン設定 */
.list-container h3,
.list-container p,
.list-container ul {
margin-bottom: 2px; /* 任意の値に変更してください */
}
.icon-container {
font-size: 48px;
display: flex;
justify-content: center;
align-items: center;
flex: 1;
position: absolute;
right: 80px;
top: 80px;
}
.cta-button {
display: inline-block;
background-color: rgba(193, 40, 114, 1);
z-index: 3;
color: #fff;
text-decoration: none;
font-size: 24px;
padding: 6px 24px;
border-radius: 0;
width: calc(100vw / 2);
height: calc(100vw / 18);
line-height: calc(100vw / 18);
text-align: center;
margin-top: 16px;
box-sizing: border-box;
/* ボタン押下時のスタイルを追加 */
box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
transition-duration: 0.2s;
}
/* ボタンがアクティブ(押されている)時のスタイルを追加 */
.cta-button:active {
background-color: rgba(193, 40, 114, 0.9);
box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.15);
transform: translateY(2px);
}
.hidden {
opacity: 0;
transition: opacity 0.3s ease-in-out;
}
/* タブレット向けのスタイル */
@media only screen and (max-width: 768px) {
.catchphrase {
font-size: 36px;
}
.supplement {
font-size: 18px;
}
.card {
width: calc(100vw - 40px);
height: auto;
}
.cta-button {
width: calc(100vw - 40px);
height: calc(100vw / 12);
line-height: calc(100vw / 12);
}
}
/* モバイル向けのスタイル */
@media only screen and (max-width: 480px) {
.catchphrase {
font-size: 28px;
}
.supplement {
font-size: 14px;
}
.card {
width: calc(100vw - 40px);
height: auto;
}
.cta-button {
width: calc(100vw - 40px);
height: calc(100vw / 9);
line-height: calc(100vw / 9);
}
}
.chrome-optimized {
position: fixed;
right: 10px;
bottom: 10px;
font-size: 14px;
color: #333;
background-color: rgba(255, 255, 255, 0.8);
padding: 5px 10px;
border-radius: 5px;
}
</style>
</head>
<body>
<div class="catchphrase">Make your idea into reality</div>
<div class="supplement">with intelligent integration & hyper-automations.</div>
<div style="height: 2000px;"></div>
<div class="card-container">
<div class="card">
<div class="list-container">
<h3> <i class="fa-solid fa-cloud fa-lg" style="color: #ffffff;"></i> Cloud Native</h3>
<ul>
<li>AWS, GCP, Azure, Oracle における豊富な経験</li>
<li>Serverless, コンテナでのマイクロサービスの実現</li>
<li>高度なクラウドインフラストラクチャのスキル</li>
<ul>
</div>
<div class="icon-container">
<i class="fa-brands fa-aws fa-xl"></i>
</div>
</div>
<div class="card">
<div class="list-container">
<h3>IT Modernization</h3>
<p>スクラム、DevOps、CI/CD Pipeline</p>
<ul>
<li>スクラムによる短期間でのリリース、継続的な改善</li>
<li>GitLab, GitHub, CircleCI を用いた DevOps</li>
<li>Infra as Code によるインフラ領域の自動化</li>
<ul>
</div>
<div class="icon-container">
<i class="fa-brands fa-gitlab fa-xl"></i>
</div>
</div>
<div class="card">
<div class="list-container">
<h3>Digital Transformation</h3>
<ul>
<li>OpenAI, ChatGPT</li>
<li>AutoML, VertexAI, DataIku</li>
<li>UiPath, ServcieNow, GAS</li>
<li>API Integration, Data mining, UI Automation, Computer vision</li>
<ul>
</div>
<div class="icon-container">
<i class="fa-solid fa-robot fa-xl"></i>
</div>
</div>
<a href="https://www.yatatech.com/about" class="cta-button" target="_blank">Check More</a>
</div>
<div class="chrome-optimized" style="display: none;">
このページは Chrome に最適化されています
</div>
<script>
function isChromeBased() {
const userAgent = navigator.userAgent.toLowerCase();
return userAgent.includes("chrome") || userAgent.includes("brave") || userAgent.includes("edge");
}
if (isChromeBased()) {
const particles = [];
let scrollSpeed = 1;
let supplementVisible = false;
let catchphraseEmphasized = false;
let catchphraseFaded = false;
function setup() {
createCanvas(window.innerWidth, window.innerHeight, WEBGL);
for (let i = 0; i < 100; i++) {
particles[i] = new Particle();
}
}
function draw() {
background(255, 255, 255, 0);
for (let i = 0; i < particles.length; i++) {
particles[i].update();
particles[i].show();
}
}
function scrollingFunction() {
const scrollY = window.scrollY || window.pageYOffset;
const windowHeight = window.innerHeight;
const documentHeight = document.body.offsetHeight;
const scrollRatio = scrollY / (documentHeight - windowHeight);
scrollSpeed = 1 + 4 * scrollRatio;
}
window.addEventListener('scroll', () => {
scrollingFunction();
const windowHeight = window.innerHeight;
const catchphrase = document.querySelector('.catchphrase');
const supplement = document.querySelector('.supplement');
const documentHeight = document.documentElement.scrollHeight || document.body.scrollHeight; // 修正: documentHeightを定義
const scrollRatio = scrollY / (documentHeight - windowHeight);
const scrollThreshold = windowHeight / 2; // スクロール閾値を画面の半分に変更
const fadeThreshold = 0.8; // フェードアウト閾値を変更
if (window.scrollY > scrollThreshold && !supplementVisible) {
supplementVisible = true;
supplement.style.opacity = 1;
} else if (window.scrollY <= scrollThreshold && supplementVisible) {
supplementVisible = false;
supplement.style.opacity = 0;
}
if (!catchphraseEmphasized && window.scrollY > scrollThreshold / 2) {
catchphraseEmphasized = true;
catchphrase.style.fontSize = '60px';
} else if (catchphraseEmphasized && window.scrollY <= scrollThreshold / 2) {
catchphraseEmphasized = false;
catchphrase.style.fontSize = '48px';
}
if (!catchphraseFaded && scrollRatio > fadeThreshold) {
catchphraseFaded = true;
catchphrase.style.transition = 'opacity 0s, font-size 0s'; // 一瞬で消えるように変更
catchphrase.style.opacity = 0;
supplement.style.transition = 'opacity 0s'; // 一瞬で消えるように変更
supplement.style.opacity = 0;
} else if (catchphraseFaded && scrollRatio <= fadeThreshold) {
catchphraseFaded = false;
catchphrase.style.transition = 'opacity 1s ease-in-out, font-size 1s ease-in-out'; // 元のアニメーションに戻す
catchphrase.style.opacity = 1;
supplement.style.transition = 'opacity 1s ease-in-out'; // 元のアニメーションに戻す
supplement.style.opacity = supplementVisible ? 1 : 0; // 修正: supplementVisible に応じて opacity を設定
}
const cardContainer = document.querySelector('.card-container');
const containerRect = cardContainer.getBoundingClientRect();
const containerTop = containerRect.top;
// card-container が画面を覆ったときにパーティクルのアニメーションが停止するようにする
if (containerTop <= 0) {
noLoop();
} else {
loop();
}
});
class Particle {
constructor() {
this.angle = random(TWO_PI);
this.radius = random(width / 4);
this.x = this.radius * cos(this.angle);
this.y = this.radius * sin(this.angle);
this.color = this.randomColor();
this.alpha = 255;
this.warpSpeed = false;
this.size = random(2, 4);
}
randomColor() {
const colors = [
color(255, 255, 255),
color(255, 255, 255),
color(255, 255, 255),
color(255, 255, 200),
color(255, 200, 200),
];
return random(colors);
}
update() {
this.angle += 0.01;
this.radius += 4 * scrollSpeed;
if (this.radius > width / 2) {
this.warpSpeed = true;
this.radius += 10 * scrollSpeed;
this.alpha -= 5 * scrollSpeed;
}
this.x = this.radius * cos(this.angle);
this.y = this.radius * sin(this.angle);
if (this.alpha <= 0) {
this.reset();
}
}
reset() {
this.angle = random(TWO_PI);
this.radius = random(width / 4);
this.x = this.radius * cos(this.angle);
this.y = this.radius * sin(this.angle);
this.color = this.randomColor();
this.alpha = 255;
this.warpSpeed= false;
this.size = random(2, 4);
}
show() {
const size = map(this.radius, 0, width / 2, 2, 8);
stroke(this.color.levels[0], this.color.levels[1], this.color.levels[2], this.alpha);
strokeWeight(size);
point(this.x, this.y);
}
}
} else {
// Chrome系以外のブラウザの場合
document.addEventListener('DOMContentLoaded', () => {
const catchphrase = document.querySelector('.catchphrase');
const supplement = document.querySelector('.supplement');
// catchphraseとsupplementを非表示にする
//catchphrase.style.display = 'none';
supplement.style.opacity = 1;
// card-containerを固定表示にする
const cardContainer = document.querySelector('.card-container');
//cardContainer.style.position = 'fixed';
cardContainer.style.top = '0';
cardContainer.style.left = '0';
cardContainer.style.right = '0';
cardContainer.style.bottom = '0';
cardContainer.style.overflowY = 'scroll';
const chromeOptimized = document.querySelector(".chrome-optimized");
if (chromeOptimized) {
chromeOptimized.style.display = "block";
}
});
}
</script>
</body>
</html>