Skip to content

Commit

Permalink
refactor: add "Go Home" link to stat page
Browse files Browse the repository at this point in the history
  • Loading branch information
statulr committed Sep 19, 2024
1 parent 59704b0 commit a6d1b94
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions templs/stat.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,19 @@ <h1 class="text-5xl text-center text-white font-bold">Shawty</h1>
<div class="w-[56rem] flex flex-col gap-3 my-8 mx-auto">
<h2 class="text-3xl font-bold font-mono">Total number of clicks</h2>
<p class="text-lg">The number of clicks from the shortened URL that redirected the user to the destination page.</p>
<a class="underline bg-[#292929] font-mono p-2 w-fit rounded-md text-white" href="/s/{{ .ShortUrl }}">shawty/s/{{ .ShortUrl }}</a>
<p class="text-lg font-bold flex gap-3">Original URL : <a class="underline font-mono" href="{{ .OriginalUrl }}">{{ .OriginalUrl }}</a></p>
<a class="underline bg-[#292929] font-mono p-2 w-fit rounded-md text-white" href="/s/{{ .ShortUrl }}">shawty/s/{{
.ShortUrl }}</a>
<p class="text-lg font-bold flex gap-3">Original URL : <a class="underline font-mono" href="{{ .OriginalUrl }}">{{
.OriginalUrl }}</a></p>
<h3 class="font-bold text-xl font-mono">Count: {{ .Count }}</h3>
<h3 class="font-bold text-xl font-mono">Last Accessed: {{ .LastAccessed }}</h3>
</div>
<div class="flex justify-center mt-4">
<a href="/"
class="px-4 py-2 font-semibold rounded-full transition duration-300 ease-in-out bg-gray-700 hover:bg-gray-600 text-white">
Go Home
</a>
</div>
</body>

</html>
</html>

0 comments on commit a6d1b94

Please sign in to comment.