Skip to content

Commit

Permalink
Merge pull request #69 from huskynz/dev
Browse files Browse the repository at this point in the history
Reword invaild link and add another ifelse statementg
  • Loading branch information
Husky-Devel authored Oct 13, 2024
2 parents d0897c2 + 36b557f commit f500d23
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/pages/invaildlink.astro
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,22 @@ const isValidLink = allowedLinks.includes(linkName);
</h1>
{isValidLink ? (
<p class="text-lg text-gray-600 dark:text-gray-300">
The link <span class="font-bold text-red-500">{linkName}</span> you tried to access is no longer valid or expired.
<span class="font-bold text-red-500">{linkName}</span> has been depracated and is no longer vaild!
</p>
) : (
<p class="text-lg text-gray-600 dark:text-gray-300">
The link you have followed is invaild
</p>
)}
{isValidLink ? (
<p class="text-md text-gray-600 dark:text-gray-400">
This is becuase the link you tryed to access has been depracated and is no longer valid
</p>
) : (
<p class="text-md text-gray-600 dark:text-gray-400">
This could be because you spelled it wrong or the link has been depracated
This could be because you spelled it wrong.
</p>
)}
<a
href="/"
class="py-3 px-6 bg-white hover:bg-gray-200 text-black border border-black rounded inline-block"
Expand Down

0 comments on commit f500d23

Please sign in to comment.