Skip to content

Commit 837032c

Browse files
committed
store and company logos
1 parent 0256e62 commit 837032c

9 files changed

Lines changed: 117 additions & 9 deletions

File tree

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
# tamashika.github.io
22
website
3+
python -m http.server

company.png

5.46 KB
Loading

index.html

Lines changed: 23 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,25 @@
1212
<!-- <div class="custom-cursor-outline"></div> -->
1313
<canvas id="bg"></canvas>
1414
<main class="page">
15-
<a href="https://store.steampowered.com/app/2996080/TAMASHIKA/" class="logo-link">
16-
<img id="logo" src="yy.png" alt="TAMASHIKA" class="logo-spin" />
17-
</a>
15+
<div class="page-stack">
16+
<!-- <a href="https://store.steampowered.com/app/2996080/TAMASHIKA/" class="logo-link"> -->
17+
<img id="logo" src="yy.png" alt="TAMASHIKA" class="logo-spin" />
18+
<!-- </a> -->
19+
<nav class="store-row" aria-label="Store links">
20+
<!-- Replace href with your URLs -->
21+
<a href="#" class="store-btn" title="PlayStation"><img src="ps_icon.png" alt="PlayStation" /></a>
22+
<a href="https://store.steampowered.com/app/2996080/TAMASHIKA/" class="store-btn" title="Steam"><img src="steam_icon.png" alt="Steam" /></a>
23+
<a href="https://www.nintendo.com/us/store/products/tamashika-switch/" class="store-btn" title="Nintendo Switch"><img src="switch_icon.png" alt="Nintendo Switch" /></a>
24+
<a href="#" class="store-btn" title="Xbox"><img src="xbox_icon.png" alt="Xbox" /></a>
25+
</nav>
26+
</div>
1827
</main>
1928

29+
<aside class="company-logos" aria-label="Company logos">
30+
<a href="https://quicktequila.com"><img src="company.png" alt="Company" class="company-logo company-logo--left" /></a>
31+
<a href="https://edglrd.com"><img src="publisher.png" alt="Publisher" class="company-logo company-logo--right" /></a>
32+
</aside>
33+
2034
<script src="shader.js"></script>
2135
<script>
2236
(function () {
@@ -47,12 +61,12 @@
4761
});
4862
const TARGET_URL = 'https://store.steampowered.com/app/2996080/TAMASHIKA/';
4963

50-
document.addEventListener('click', function (event) {
51-
if (event.target.closest('a')) {
52-
return;
53-
}
54-
window.location.href = TARGET_URL;
55-
});
64+
// document.addEventListener('click', function (event) {
65+
// if (event.target.closest('a')) {
66+
// return;
67+
// }
68+
// window.location.href = TARGET_URL;
69+
// });
5670
</script>
5771
</body>
5872
</html>

ps_icon.png

12.3 KB
Loading

publisher.png

4.6 KB
Loading

steam_icon.png

12.3 KB
Loading

styles.css

Lines changed: 93 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,16 +46,109 @@ body {
4646
z-index: 1;
4747
}
4848

49+
.page-stack {
50+
display: flex;
51+
flex-direction: column;
52+
align-items: center;
53+
gap: 1.25rem;
54+
}
55+
56+
.company-logos {
57+
position: fixed;
58+
inset: 0;
59+
/* pointer-events: none; */
60+
z-index: 1;
61+
}
62+
63+
.company-logo {
64+
position: fixed;
65+
bottom: clamp(0.75rem, 2.5vh, 1.5rem);
66+
height: auto;
67+
width: clamp(72px, 11vw, 150px);
68+
max-height: min(10vh, 100px);
69+
object-fit: contain;
70+
object-position: center bottom;
71+
filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.75)) drop-shadow(0 0 10px rgba(0, 0, 0, 0.45));
72+
}
73+
74+
.company-logo--left {
75+
left: clamp(0.75rem, 2.5vw, 1.5rem);
76+
}
77+
78+
.company-logo--right {
79+
right: clamp(0.75rem, 2.5vw, 1.5rem);
80+
}
81+
82+
.store-row {
83+
position: fixed;
84+
left: 0;
85+
right: 0;
86+
bottom: 25%;
87+
display: flex;
88+
flex-wrap: wrap;
89+
align-items: center;
90+
justify-content: center;
91+
gap: 0.65rem;
92+
z-index: 1;
93+
pointer-events: auto;
94+
}
95+
96+
.store-btn {
97+
display: flex;
98+
align-items: center;
99+
justify-content: center;
100+
padding: 0.35rem;
101+
border-radius: 6px;
102+
opacity: 0.85;
103+
transition: opacity 0.15s ease;
104+
}
105+
106+
.store-btn:hover,
107+
.store-btn:focus-visible {
108+
opacity: 1;
109+
}
110+
111+
.store-btn img {
112+
display: block;
113+
width: min(7vw, 128px);
114+
height: auto;
115+
filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.65)) drop-shadow(0 0 12px rgba(0, 0, 0, 0.45));
116+
}
117+
118+
/* Portrait: bigger store icons and more horizontal spread */
119+
@media (orientation: portrait) {
120+
.store-row {
121+
gap: clamp(0.35rem, 2.5vw, 0.85rem);
122+
padding-inline: clamp(0.75rem, 5vw, 2rem);
123+
justify-content: space-evenly;
124+
}
125+
126+
.store-btn {
127+
padding: clamp(0.45rem, 2.2vw, 0.7rem);
128+
}
129+
130+
.store-btn img {
131+
width: clamp(68px, 19vw, 112px);
132+
}
133+
134+
.company-logo {
135+
width: clamp(88px, 22vw, 140px);
136+
max-height: min(9vh, 90px);
137+
}
138+
}
139+
49140
.logo-spin {
50141
width: min(2.5vw, 75px);
51142
height: auto;
52143
animation: spin 1.5s linear infinite;
144+
/* filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.9)) drop-shadow(0 0 14px rgba(0, 0, 0, 0.6)); */
53145
}
54146

55147
.logo-no-spin {
56148
width: min(2.5vw, 75px);
57149
height: auto;
58150
animation: none;
151+
/* filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.9)) drop-shadow(0 0 14px rgba(0, 0, 0, 0.6)); */
59152
}
60153

61154
/* .logo-link,

switch_icon.png

6.15 KB
Loading

xbox_icon.png

7.25 KB
Loading

0 commit comments

Comments
 (0)