Skip to content

Commit 9a95a5d

Browse files
committed
Refactor code structure for improved readability and maintainability
1 parent 6d6a65c commit 9a95a5d

4 files changed

Lines changed: 38 additions & 76 deletions

File tree

62.1 KB
Loading

includes/footer.php

Lines changed: 28 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,6 @@
11
<footer class="mt-5">
22
<div class="container">
33
<div class="row footer-row">
4-
<div class="col-xl-4 col-lg-4 col-md-7 col-sm-7 col-xs-12">
5-
<a href="https://facebook.com/melvinjonesrepol" aria-label="Facebook" target="_blank">
6-
<i class="fa-brands fa-facebook px-1"></i>
7-
</a>
8-
<a href="https://instagram.com/melvinjonesrepol" aria-label="Instagram" target="_blank">
9-
<i class="fa-brands fa-instagram px-1"></i>
10-
</a>
11-
<a href="https://pinterest.com/mrepol742" aria-label="Pinterest" target="_blank">
12-
<i class="fa-brands fa-pinterest px-1"></i>
13-
</a>
14-
<a href="https://twitter.com/mrepol742" aria-label="Twitter" target="_blank">
15-
<i class="fa-brands fa-twitter px-1"></i>
16-
</a>
17-
<a href="https://github.com/mrepol742" aria-label="Github" target="_blank">
18-
<i class="fa-brands fa-github px-1"></i>
19-
</a>
20-
<a href="https://linkedin.com/in/mrepol742" aria-label="LinkedIn" target="_blank">
21-
<i class="fa-brands fa-linkedin px-1"></i>
22-
</a>
23-
<a href="https://steamcommunity.com/id/mrepol742/" aria-label="Steam" target="_blank">
24-
<i class="fa-brands fa-steam px-1"></i>
25-
</a>
26-
<a href="https://youtube.com/@mrepol742" aria-label="Youtube" target="_blank">
27-
<i class="fa-brands fa-youtube px-1"></i> </a><br />
28-
<p>&copy; <?php echo date("Y"); ?>, Melvin Jones Gallano Repol, All Rights Reserved. <br><br>Other brands or product names are the trademarks of their respective owners.</p>
29-
<p class="text-muted">
30-
My websites may contain links to other sites and resources provided by third parties. These links are provided for your convenience only. I do not have control over the contents of those sites or resources, and accepts no responsibility for them or for any loss or damage that may arise from your use of them.</p>
31-
<a href="https://www.melvinjonesrepol" class="text-muted">www.melvinjonesrepol.com</a>
32-
</div>
33-
<div class="col-xl-1 col-lg-1 col-md-1 col-sm-1 col-xs-12">
34-
</div>
354
<div class="col-xl-2 col-lg-2 col-md-5 col-sm-5 col-xs-12">
365
<h5>Links</h5>
376
<ul class="nav flex-column">
@@ -101,6 +70,34 @@
10170
</li>
10271
</ul>
10372
</div>
73+
<div class="col-xl-1 col-lg-1 col-md-1 col-sm-1 col-xs-12">
74+
</div>
75+
<div class="col-xl-4 col-lg-4 col-md-7 col-sm-7 col-xs-12">
76+
<a href="https://facebook.com/melvinjonesrepol" aria-label="Facebook" target="_blank">
77+
<i class="fa-brands fa-facebook px-1"></i>
78+
</a>
79+
<a href="https://instagram.com/melvinjonesrepol" aria-label="Instagram" target="_blank">
80+
<i class="fa-brands fa-instagram px-1"></i>
81+
</a>
82+
<a href="https://pinterest.com/mrepol742" aria-label="Pinterest" target="_blank">
83+
<i class="fa-brands fa-pinterest px-1"></i>
84+
</a>
85+
<a href="https://twitter.com/mrepol742" aria-label="Twitter" target="_blank">
86+
<i class="fa-brands fa-twitter px-1"></i>
87+
</a>
88+
<a href="https://github.com/mrepol742" aria-label="Github" target="_blank">
89+
<i class="fa-brands fa-github px-1"></i>
90+
</a>
91+
<a href="https://linkedin.com/in/mrepol742" aria-label="LinkedIn" target="_blank">
92+
<i class="fa-brands fa-linkedin px-1"></i>
93+
</a>
94+
<a href="https://steamcommunity.com/id/mrepol742/" aria-label="Steam" target="_blank">
95+
<i class="fa-brands fa-steam px-1"></i>
96+
</a>
97+
<a href="https://youtube.com/@mrepol742" aria-label="Youtube" target="_blank">
98+
<i class="fa-brands fa-youtube px-1"></i> </a><br />
99+
<p>&copy; <?php echo date("Y"); ?>, Melvin Jones Gallano Repol. All Rights Reserved.</p>
100+
</div>
104101
</div>
105102
</div>
106103
</footer>

includes/nav.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-TFD9TXR" height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
2-
<div class="bg-primary p-2 shadow text-center text-white fs-6">
2+
<!-- <div class="bg-primary p-2 shadow text-center text-white fs-6">
33
At last we have a new website! <a href="https://www.melvinjonesrepol.com" class="text-white fw-bold">www.melvinjonesrepol.com</a>!<br>
4-
</div>
4+
</div> -->
55
<header class="autohide navbar navbar-expand-lg fixed-top scrolled-up scrolled-up-tr">
66
<nav class="container-fluid">
77
<a class="navbar-brand" href="/">

index.php

Lines changed: 8 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@
173173
<img loading="lazy" src="https://opengraph.githubassets.com/1/mrepol742/melvinjonesrepol.com" class="rounded d-block img-fluid" alt="Project Canis">
174174
<div class="card-body">
175175
<h5 class="card-title">melvinjonesrepol.com</h5>
176-
<p class="card-text">A modern, enhanced personal portfolio site.</p>
176+
<p class="card-text">A fast, modern portfolio website built for performance and style. Showcases my work and skills with a sleek, responsive design.</p>
177177
<p>
178178
Technologies: <br>
179179
nextjs
@@ -199,15 +199,16 @@
199199
</div>
200200
<div class="col-sm-6 col-md-6 col-lg-4">
201201
<div class="card " data-aos="fade-up">
202-
<img loading="lazy" src="https://opengraph.githubassets.com/1/Elitexv/Ulisha-store" class="rounded d-block img-fluid" alt="Ulisha Store">
202+
<img loading="lazy" src="/assets/images/ulisha-store-cover.png" class="rounded d-block img-fluid" alt="Ulisha Store">
203203
<div class="card-body">
204204
<h5 class="card-title">Ulisha Store</h5>
205205
<p class="card-text">A premier destination for quality fashion, accessories, and electronics. Bringing you the best products at competitive prices.</p>
206206
<p>
207207
Technologies: <br>
208-
react · tailwind · supabase
208+
nextjs · supabase
209209
</p>
210-
<a class="btn" href="https://ulishastore.com" target="_blank"><i class="fa-solid fa-view"></i>&nbsp;&nbsp;<b>View</b></a><br>
210+
<a class="btn" href="https://github.com/ulisha-limited" target="_blank"><i class="fa-solid fa-code"></i>&nbsp;&nbsp;<b>Source</b></a>
211+
<a class="btn" href="https://www.ulishastore.com" target="_blank"><i class="fa-solid fa-view"></i>&nbsp;&nbsp;<b>View</b></a><br>
211212
</div>
212213
</div>
213214
</div>
@@ -971,10 +972,10 @@
971972
<div class="col-12 col-md-4 mb-4">
972973
<div class="card shadow-sm border-0 h-100" data-aos="fade-up">
973974
<div class="card-body">
974-
<img src="https://avatars.githubusercontent.com/yourbusinessname" alt="Your Business Name Logo" class="mb-3 rounded-circle" width="70" height="70">
975-
<h4 class="mb-1">Your Business Name</h4>
975+
<img src="https://avatars.githubusercontent.com/ulisha-limited" alt="Ulisha Limited Logo" class="mb-3 rounded-circle" width="70" height="70">
976+
<h4 class="mb-1">Ulisha Limited</h4>
976977
<p class="mb-0 text-muted">Organization</p>
977-
<a href="https://github.com/yourbusinessname" target="_blank" class="d-block mt-2"><i class="fa-brands fa-github"></i> GitHub</a>
978+
<a href="https://github.com/ulisha-limited" target="_blank" class="d-block mt-2"><i class="fa-brands fa-github"></i> GitHub</a>
978979
</div>
979980
</div>
980981
</div>
@@ -1011,42 +1012,6 @@
10111012
</div>
10121013
</div>
10131014
<br>
1014-
<h2 class="text-center mt-5" id="posts">Deep</h2>
1015-
<?php
1016-
// Fetch the JSON feed
1017-
$feedUrl = 'https://projectdeep.vercel.app/feed.json';
1018-
$feedJson = @file_get_contents($feedUrl);
1019-
1020-
if ($feedJson !== false) {
1021-
$feed = json_decode($feedJson, true);
1022-
if (isset($feed['items']) && is_array($feed['items'])) {
1023-
echo '<div class="row row-cols-1 row-cols-md-2 row-cols-lg-3 g-4">';
1024-
foreach ($feed['items'] as $item) {
1025-
$title = htmlspecialchars($item['title'] ?? '');
1026-
$summary = htmlspecialchars($item['summary'] ?? '');
1027-
$url = htmlspecialchars($item['url'] ?? '');
1028-
$date = isset($item['date_modified']) ? date('F j, Y', strtotime($item['date_modified'])) : '';
1029-
echo '<div class="col">';
1030-
echo '<div class="card h-100">';
1031-
echo '<div class="card-body">';
1032-
echo '<h5 class="card-title"><a href="' . $url . '" target="_blank">' . $title . '</a></h5>';
1033-
echo '<p class="card-text">' . $summary . '</p>';
1034-
if ($date) {
1035-
echo '<p class="card-text"><small class="text-muted">' . $date . '</small></p>';
1036-
}
1037-
echo '</div>';
1038-
echo '</div>';
1039-
echo '</div>';
1040-
}
1041-
echo '</div>';
1042-
} else {
1043-
echo '<div class="alert alert-warning">No Deep found.</div>';
1044-
}
1045-
} else {
1046-
echo '<div class="alert alert-danger">Unable to fetch Deep at this time.</div>';
1047-
}
1048-
?>
1049-
<br>
10501015
<div class="card mb-5">
10511016
<div class="card-body">
10521017
<h5 class="card-title">Found a problem with this page?</h5>

0 commit comments

Comments
 (0)