GHD Podnanos – Proga
/* Self-contained styles */
.ghd-track-container {
–ghd-primary: #e10600;
–ghd-secondary: #1a1a1a;
–ghd-accent: #d4af37;
–ghd-text-light: #ffffff;
–ghd-text-gray: #bbbbbb;
font-family: ‘Segoe UI’, Roboto, Oxygen, Ubuntu, Cantarell, ‘Open Sans’, sans-serif;
background-color: var(–ghd-secondary);
color: var(–ghd-text-light);
line-height: 1.6;
padding: 2.5rem;
max-width: 1200px;
margin: 2rem auto;
box-sizing: border-box;
border-radius: 16px;
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}
.ghd-track-title {
font-size: 2rem;
font-weight: 600;
color: var(–ghd-text-light);
text-align: center;
margin-bottom: 2.5rem;
padding-bottom: 1rem;
border-bottom: 2px solid var(–ghd-primary);
letter-spacing: 0.5px;
text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}
.ghd-track-image-container {
margin-bottom: 3rem;
text-align: center;
background: rgba(0,0,0,0.25);
padding: 1.5rem;
border-radius: 12px;
box-shadow:
0 4px 12px rgba(0,0,0,0.25),
inset 0 1px 0 rgba(255,255,255,0.05);
border: 1px solid rgba(255,255,255,0.08);
}
.ghd-track-image {
max-width: 100%;
height: auto;
border-radius: 8px;
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
border: 1px solid rgba(255,255,255,0.1);
transition: transform 0.3s ease;
}
.ghd-track-image:hover {
transform: scale(1.01);
}
.ghd-track-specs {
display: flex;
justify-content: center;
gap: 4rem;
background: linear-gradient(145deg, rgba(30,30,30,0.6), rgba(20,20,20,0.7));
border-radius: 12px;
padding: 2.5rem;
margin: 3rem auto;
max-width: 900px;
box-shadow:
0 6px 18px rgba(0,0,0,0.25),
inset 0 1px 0 rgba(255,255,255,0.05);
border: 1px solid rgba(255,255,255,0.08);
}
.ghd-spec-item {
text-align: center;
padding: 0 1.5rem;
}
.ghd-spec-label {
font-weight: 500;
color: var(–ghd-text-gray);
font-size: 1rem;
letter-spacing: 0.5px;
margin-bottom: 1rem;
display: block;
text-transform: uppercase;
}
.ghd-spec-value {
font-weight: 700;
color: var(–ghd-text-light);
font-size: 2.2rem;
font-family: ‘Courier New’, monospace;
text-shadow: 0 2px 4px rgba(0,0,0,0.3);
min-height: 3rem;
display: flex;
align-items: center;
justify-content: center;
}
.ghd-map-button {
display: inline-flex;
align-items: center;
justify-content: center;
gap: 0.75rem;
background: linear-gradient(to right, var(–ghd-primary), #c10500);
color: white;
padding: 1.1rem 2.5rem;
border-radius: 50px;
font-weight: 600;
text-decoration: none;
margin: 0 auto;
transition: all 0.3s ease;
width: fit-content;
border: none;
cursor: pointer;
font-size: 1rem;
box-shadow:
0 4px 12px rgba(225, 6, 0, 0.3),
0 2px 4px rgba(0,0,0,0.2);
position: relative;
overflow: hidden;
}
.ghd-map-button:hover {
transform: translateY(-2px);
box-shadow:
0 6px 16px rgba(225, 6, 0, 0.4),
0 4px 8px rgba(0,0,0,0.2);
}
.ghd-map-button::before {
content: ”;
position: absolute;
top: 0;
left: -100%;
width: 100%;
height: 100%;
background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
transition: 0.5s;
}
.ghd-map-button:hover::before {
left: 100%;
}
.ghd-button-container {
text-align: center;
margin-top: 2.5rem;
}
@media (max-width: 768px) {
.ghd-track-container {
padding: 1.75rem;
margin: 1rem auto;
border-radius: 12px;
}
.ghd-track-title {
font-size: 1.6rem;
}
.ghd-track-specs {
flex-direction: column;
gap: 2rem;
padding: 2rem 1rem;
margin: 2rem auto;
}
.ghd-spec-item {
padding: 1rem 0;
border-bottom: 1px solid rgba(255,255,255,0.08);
}
.ghd-spec-item:last-child {
border-bottom: none;
}
.ghd-spec-value {
font-size: 1.8rem;
}
}
Proga Podnanos
Dolžina proge
0 m
Višinska razlika
0 m
Povprečni naklon
0 %
// Count-up animation
function animateValue(id, start, end, duration, suffix = ”) {
const obj = document.getElementById(id);
let startTimestamp = null;
const step = (timestamp) => {
if (!startTimestamp) startTimestamp = timestamp;
const progress = Math.min((timestamp – startTimestamp) / duration, 1);
const value = Math.floor(progress * (end – start) + start);
obj.innerHTML = suffix ? `${value.toLocaleString()}${suffix}` : value.toLocaleString();
if (progress {
animateValue(‘lengthCounter’, 0, 4700, 1500, ‘ m’);
animateValue(‘heightCounter’, 0, 263, 1500, ‘ m’);
animateValue(‘slopeCounter’, 0, 5.6, 1500, ‘ %’);
});