Skip to content

Commit

Permalink
Add button content spacing
Browse files Browse the repository at this point in the history
  • Loading branch information
rayc2045 committed May 14, 2024
1 parent 2ef3717 commit c9e4d29
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ const style = {
footer: 'text-gray-700 hover:underline',
},
btn: {
raw: 'px-4 py-3 text-sm rounded-md flex justify-center items-center font-medium border-2 select-none active:scale-95 transition',
raw: 'px-4 py-3 text-sm rounded-md flex gap-x-1 justify-center items-center font-medium border-2 select-none active:scale-95 transition',
get dark() {
return `${this.raw} text-zinc-100 bg-zinc-600 border-zinc-600 hover:bg-zinc-700 hover:border-zinc-700`;
},
Expand Down
6 changes: 2 additions & 4 deletions src/pages/home.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@ <h1 class="text-5xl md:text-6xl">
We offer a unique collection of high end items for every home.
</p>
<a href="#/shop" :class="btn.light">
Explore the shop&nbsp;
<span x-html="svg('arrow-right')"></span>
Explore the Shop<span x-html="svg('arrow-right')"></span>
</a>
</section>

Expand Down Expand Up @@ -102,6 +101,5 @@ <h3 class="mb-12 text-xl text-center">Handpicked this Week</h3>
</section>

<a href="#/shop" :class="btn.dark" class="w-fit mx-auto">
Explore the shop&nbsp;
<span x-html="svg('arrow-right')"></span>
Explore the Shop<span x-html="svg('arrow-right')"></span>
</a>

0 comments on commit c9e4d29

Please sign in to comment.