reformat
This commit is contained in:
parent
e7cb2ec37a
commit
319c01c59c
22
index.php
22
index.php
@ -1,4 +1,5 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Content config:
|
||||
*/
|
||||
@ -65,6 +66,7 @@ $cv_skills = $cvData['skills'] ?? [];
|
||||
?>
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title><?= $site_title ?></title>
|
||||
@ -86,6 +88,7 @@ $cv_skills = $cvData['skills'] ?? [];
|
||||
</style>
|
||||
<link rel="shortcut icon" href="favicon.ico">
|
||||
</head>
|
||||
|
||||
<body class="preload">
|
||||
|
||||
<main class="bento-grid">
|
||||
@ -182,17 +185,14 @@ if ($firstJob):
|
||||
$opacity = 0.6 + (($global_i * 2) % 4) * 0.1;
|
||||
?>
|
||||
<span class="tag" style="transition-delay: <?= 0.6 + ($global_i * 0.05) ?>s; font-size: <?= $fontSize ?>rem; opacity: <?= $opacity ?>;"><?= $skill ?></span>
|
||||
<?php $global_i++; endforeach; ?>
|
||||
<?php $global_i++;
|
||||
endforeach; ?>
|
||||
</div>
|
||||
</div>
|
||||
<?php endforeach; ?>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<section class="cv-section experience hidden hidden-toggle">
|
||||
<h2>Past Experience</h2>
|
||||
<?php foreach (array_slice($cv_experience, 1) as $job): ?>
|
||||
@ -233,7 +233,8 @@ if ($firstJob):
|
||||
$opacity = 0.6 + (($global_i * 2) % 4) * 0.1;
|
||||
?>
|
||||
<span class="tag" style="transition-delay: <?= 0.6 + ($global_i * 0.05) ?>s; font-size: <?= $fontSize ?>rem; opacity: <?= $opacity ?>;"><?= $skill ?></span>
|
||||
<?php $global_i++; endforeach; ?>
|
||||
<?php $global_i++;
|
||||
endforeach; ?>
|
||||
</div>
|
||||
</div>
|
||||
<?php endforeach; ?>
|
||||
@ -330,10 +331,15 @@ const cvPanels = Array.from(document.querySelectorAll('.hidden-toggle')).filter(
|
||||
|
||||
// Only scroll to top if we are collapsing the CV and the user is scrolled down
|
||||
if (!e.target.checked && window.scrollY > 200) {
|
||||
window.scrollTo({ top: document.querySelector('.cv-container').offsetTop - 20, behavior: 'smooth' });
|
||||
window.scrollTo({
|
||||
top: document.querySelector('.cv-container').offsetTop - 20,
|
||||
behavior: 'smooth'
|
||||
});
|
||||
}
|
||||
});
|
||||
</script>
|
||||
<!-- Cloudflare Web Analytics --><script defer src='https://static.cloudflareinsights.com/beacon.min.js' data-cf-beacon='{"token": "90827cb740cd4b1db611be059f64daa9"}'></script><!-- End Cloudflare Web Analytics -->
|
||||
<!-- Cloudflare Web Analytics -->
|
||||
<script defer src='https://static.cloudflareinsights.com/beacon.min.js' data-cf-beacon='{"token": "90827cb740cd4b1db611be059f64daa9"}'></script><!-- End Cloudflare Web Analytics -->
|
||||
</body>
|
||||
|
||||
</html>
|
||||
Loading…
Reference in New Issue
Block a user