Skip to content

Commit e61a363

Browse files
committed
Fix hero content display, remove cursor trail, and remove duplicate contact section CSS
1 parent abddb39 commit e61a363

File tree

3 files changed

+10
-120
lines changed

3 files changed

+10
-120
lines changed

assets/css/style.scss

Lines changed: 0 additions & 89 deletions
Original file line numberDiff line numberDiff line change
@@ -1069,95 +1069,6 @@ p {
10691069
}
10701070
}
10711071

1072-
// Contact Section (simplified)
1073-
.contact-section {
1074-
padding: 80px 0;
1075-
background-color: var(--black-primary);
1076-
1077-
.section-title {
1078-
text-align: center;
1079-
margin-bottom: 50px;
1080-
position: relative;
1081-
1082-
&:after {
1083-
content: "";
1084-
display: block;
1085-
width: 80px;
1086-
height: 3px;
1087-
background-color: var(--gold-primary);
1088-
margin: 20px auto 0;
1089-
}
1090-
}
1091-
1092-
.section-description {
1093-
text-align: center;
1094-
font-size: 1.1rem;
1095-
color: var(--text-secondary);
1096-
margin: -20px auto 40px;
1097-
max-width: 600px;
1098-
}
1099-
1100-
.contact-grid {
1101-
display: flex;
1102-
justify-content: center;
1103-
gap: 30px;
1104-
flex-wrap: wrap;
1105-
max-width: 800px;
1106-
margin: 0 auto;
1107-
}
1108-
1109-
.contact-card {
1110-
background-color: var(--black-tertiary);
1111-
border-radius: 10px;
1112-
padding: 30px;
1113-
min-width: 250px;
1114-
text-align: center;
1115-
transition: var(--transition);
1116-
border: 1px solid var(--border-color);
1117-
box-shadow: 0 5px 15px var(--shadow-color);
1118-
display: flex;
1119-
flex-direction: column;
1120-
align-items: center;
1121-
gap: 15px;
1122-
1123-
&:hover {
1124-
transform: translateY(-5px) scale(1.03);
1125-
box-shadow: 0 10px 25px var(--shadow-color);
1126-
transition: var(--transition);
1127-
border-color: var(--gold-muted);
1128-
}
1129-
1130-
.contact-icon {
1131-
svg {
1132-
color: var(--gold-primary);
1133-
transition: var(--transition);
1134-
}
1135-
}
1136-
1137-
&:hover .contact-icon svg {
1138-
color: var(--gold-secondary);
1139-
transform: scale(1.1);
1140-
}
1141-
1142-
.contact-content {
1143-
display: flex;
1144-
flex-direction: column;
1145-
gap: 5px;
1146-
1147-
.contact-handle {
1148-
font-size: 1.2rem;
1149-
font-weight: 600;
1150-
color: var(--gold-primary);
1151-
}
1152-
1153-
.contact-description {
1154-
font-size: 0.9rem;
1155-
color: var(--text-muted);
1156-
}
1157-
}
1158-
}
1159-
}
1160-
11611072
// Responsive adjustments
11621073
@media (max-width: 768px) {
11631074
.quick-links-grid {

assets/js/main.js

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -154,31 +154,6 @@ document.addEventListener('DOMContentLoaded', function() {
154154

155155
initDarkModeToggle();
156156

157-
// Subtle cursor trail effect - reduced frequency
158-
let cursorTrailEnabled = true;
159-
let trailTimeout = null;
160-
function createCursorTrail(e) {
161-
if (!cursorTrailEnabled) return;
162-
163-
// Only create trail every 100ms to reduce frequency
164-
if (trailTimeout) return;
165-
trailTimeout = setTimeout(() => trailTimeout = null, 100);
166-
167-
const trail = document.createElement('div');
168-
trail.className = 'cursor-trail';
169-
trail.style.left = e.clientX + 'px';
170-
trail.style.top = e.clientY + 'px';
171-
document.body.appendChild(trail);
172-
173-
setTimeout(() => {
174-
if (trail.parentNode) {
175-
trail.remove();
176-
}
177-
}, 800);
178-
}
179-
180-
document.addEventListener('mousemove', createCursorTrail);
181-
182157
// Subtle particle effects on hover for special elements
183158
function createParticles(element) {
184159
const rect = element.getBoundingClientRect();

index.html

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@
77
<div class="container">
88
<div class="hero-content">
99
<div class="hero-text">
10-
<h1 class="hero-title" id="terminal-name"></h1>
11-
<h2 class="hero-subtitle" id="terminal-headline"></h2>
12-
<p class="hero-description" id="terminal-bio"></p>
13-
<div class="hero-buttons" id="hero-buttons" style="display: none;">
10+
<h1 class="hero-title" id="terminal-name">{{ site.data.profile.name }}</h1>
11+
<h2 class="hero-subtitle" id="terminal-headline">{{ site.data.profile.headline }}</h2>
12+
<p class="hero-description" id="terminal-bio">{{ site.data.profile.bio }}</p>
13+
<div class="hero-buttons" id="hero-buttons">
1414
<a href="{{ site.data.profile.contact.github }}" class="btn btn-primary github-btn" target="_blank">
1515
<svg viewBox="0 0 24 24" width="20" height="20" fill="currentColor" style="margin-right: 8px;">
1616
<path d="M12 0C5.374 0 0 5.373 0 12c0 5.302 3.438 9.8 8.207 11.387.599.111.793-.261.793-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.756-1.333-1.756-1.089-.745.083-.729.083-.729 1.205.084 1.839 1.237 1.839 1.237 1.07 1.834 2.807 1.304 3.492.997.107-.775.418-1.305.762-1.604-2.665-.305-5.467-1.334-5.467-5.931 0-1.311.469-2.381 1.236-3.221-.124-.303-.535-1.524.117-3.176 0 0 1.008-.322 3.301 1.23A11.509 11.509 0 0112 5.803c1.02.005 2.047.138 3.006.404 2.291-1.552 3.297-1.23 3.297-1.23.653 1.653.242 2.874.118 3.176.77.84 1.235 1.911 1.235 3.221 0 4.609-2.807 5.624-5.479 5.921.43.372.823 1.102.823 2.222v3.293c0 .319.192.694.801.576C20.566 21.797 24 17.3 24 12c0-6.627-5.373-12-12-12z"/>
@@ -111,14 +111,18 @@ <h3>Connect</h3>
111111

112112
function typeWriter() {
113113
if (currentTextIndex >= texts.length) {
114-
// All text typed, remove cursor and show buttons
114+
// All text typed, remove cursor
115115
texts[texts.length - 1].element.innerHTML = texts[texts.length - 1].element.innerHTML.replace(cursor, '');
116-
document.getElementById('hero-buttons').style.display = 'flex';
117116
return;
118117
}
119118

120119
const current = texts[currentTextIndex];
121120

121+
if (charIndex === 0) {
122+
// Clear the element when starting to type
123+
current.element.innerHTML = cursor;
124+
}
125+
122126
if (charIndex < current.text.length) {
123127
// Type current character
124128
current.element.innerHTML = current.text.substring(0, charIndex + 1) + cursor;

0 commit comments

Comments
 (0)