Skip to content

Commit 0ad7cee

Browse files
author
Claudio Cortese
committed
Minor fixes
1 parent 2210fc0 commit 0ad7cee

File tree

5 files changed

+13
-14
lines changed

5 files changed

+13
-14
lines changed

_includes/css/agency.css

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1120,19 +1120,16 @@ body.post-page header{
11201120
height: 400px;
11211121
}
11221122

1123+
#latest_posts {
1124+
padding-bottom: 0px;
1125+
}
11231126

11241127
#posts-wrapper {
11251128
display: grid;
11261129
grid-gap: 25px;
11271130
padding: 25px;
11281131
}
11291132

1130-
@media (max-width: 768px) {
1131-
#latest_posts {
1132-
padding-bottom: 0px;
1133-
}
1134-
}
1135-
11361133
@media (min-width: 768px) {
11371134
#posts-wrapper {
11381135
grid-template-columns: 1.25fr 1fr;

_layouts/post.html

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,19 +31,19 @@
3131
<a href="#page-top"></a>
3232
</li>
3333
<li>
34-
<a class="page-scroll" href="#services">Services</a>
34+
<a class="page-scroll" href="{{ site.baseurl}}#services">Services</a>
3535
</li>
3636
<li>
37-
<a class="page-scroll" href="#portfolio">Portfolio</a>
37+
<a class="page-scroll" href="{{ site.baseurl }}#portfolio">Portfolio</a>
3838
</li>
3939
<li>
40-
<a class="page-scroll" href="#latest_posts">Blog</a>
40+
<a class="page-scroll" href="{{ site.baseurl }}#latest_posts">Blog</a>
4141
</li>
4242
<li>
43-
<a class="page-scroll" href="#team">Team</a>
43+
<a class="page-scroll" href="{{ site.baseurl }}#team">Team</a>
4444
</li>
4545
<li>
46-
<a class="page-scroll" href="#contact">Contact</a>
46+
<a class="page-scroll" href="{{ site.baseurl }}#contact">Contact</a>
4747
</li>
4848
</ul>
4949
</div>
@@ -57,7 +57,7 @@
5757
<div class="container">
5858
<div class="section-heading-wrapper">
5959
<i class="fa fa-terminal" aria-hidden="true"></i>
60-
<h1 class="section-heading" data-text="{{ page.title }}"></h1>
60+
<h1 class="section-heading" data-text="{{ page.title }}" data-delay="{{ page.typewriter-delay }}"></h1>
6161
</div>
6262
</div>
6363
</header>

_posts/2024-10-20-some-useful-tips-and-tricks-about-form-validation-in-javascript.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ layout: post
33
title: "Some Useful Tips And Tricks About Form Validation in JavaScript"
44
tags: tutorial webdev javascript
55
image: /img/posts/yup.png
6+
typewriter-delay: 20
67
---
78
As time goes by, sooner or later, every developer has been tasked with building a form. 🛠️
89

_posts/2024-10-20-speeNApp-mobile-phonetic-analysis-powered-by-flutter-and-signal-processing.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ layout: post
33
title: "SpeeNApp: Mobile Phonetic Analysis Powered by Flutter and Signal Processing"
44
tags: flutter app news
55
image: /img/portfolio/speenap_logo.jpeg
6+
typewriter-delay: 20
67
---
78

89
## Introduction

js/agency.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,9 @@ document.addEventListener("DOMContentLoaded", () => {
4545
if (entry.isIntersecting) {
4646
setTimeout(() => {
4747
new Typewriter(entry.target, {
48-
delay: 50,
48+
delay: entry.target.dataset.delay || 50,
4949
strings: entry.target.dataset.text,
50-
autoStart: true,
50+
autoStart: entry.target.dataset.autoStart || true,
5151
stringSplitter: (input) => {
5252
return Array.from(input);
5353
}

0 commit comments

Comments
 (0)