Skip to content

Commit eb46fa6

Browse files
committed
more mobile
1 parent 5b0dc04 commit eb46fa6

File tree

2 files changed

+33
-5
lines changed

2 files changed

+33
-5
lines changed

css/mobile.css

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,13 @@
1313

1414
/* Hero Section */
1515
.hero {
16-
height: 90vh;
17-
justify-content: space-between;
16+
height: 100vh;
1817
padding: 0;
1918
}
2019

2120
.bio {
2221
margin: 0;
23-
min-width: 80vw;
22+
min-width: 90vw;
2423
padding-bottom: 2em;
2524
}
2625

js/footer-delay.js

Lines changed: 31 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,31 @@ function initFooterDelay() {
5050
`;
5151
document.body.appendChild(debugIndicator);
5252

53-
// Remove debug indicator after 3 seconds
53+
// Add touch capability indicator
54+
const touchIndicator = document.createElement('div');
55+
touchIndicator.innerHTML = '👆 Touch events enabled';
56+
touchIndicator.style.cssText = `
57+
position: fixed;
58+
top: 10px;
59+
left: 10px;
60+
background: rgba(0,100,100,0.8);
61+
color: white;
62+
padding: 8px 12px;
63+
border-radius: 4px;
64+
font-size: 12px;
65+
z-index: 9999;
66+
font-family: monospace;
67+
`;
68+
document.body.appendChild(touchIndicator);
69+
70+
// Remove debug indicators after 3 seconds
5471
setTimeout(() => {
5572
if (debugIndicator.parentNode) {
5673
debugIndicator.parentNode.removeChild(debugIndicator);
5774
}
75+
if (touchIndicator.parentNode) {
76+
touchIndicator.parentNode.removeChild(touchIndicator);
77+
}
5878
}, 3000);
5979

6080
const footerLinks = document.querySelectorAll('.footer a[href]');
@@ -82,7 +102,8 @@ function initFooterDelay() {
82102
}, 2000);
83103

84104
footerLinks.forEach(link => {
85-
link.addEventListener('click', function(e) {
105+
// Add both click and touchstart events for mobile
106+
const handleInteraction = function(e) {
86107
// Show click indicator
87108
const clickIndicator = document.createElement('div');
88109
clickIndicator.innerHTML = `👆 Clicked: ${this.getAttribute('href')}`;
@@ -243,6 +264,14 @@ function initFooterDelay() {
243264

244265
window.location.href = href;
245266
}, 800); // 800ms delay
267+
};
268+
269+
// Add both click and touch events
270+
link.addEventListener('click', handleInteraction);
271+
link.addEventListener('touchstart', function(e) {
272+
// Prevent default touch behavior and call our handler
273+
e.preventDefault();
274+
handleInteraction.call(this, e);
246275
});
247276
});
248277
}

0 commit comments

Comments
 (0)