-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
bed9d0a
commit c233ae0
Showing
5 changed files
with
82 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
import React from "react"; | ||
import AppleSVG from "../../assets/svg/apple.svg"; | ||
import CONFIG from "../../config"; | ||
import { twMerge } from "tailwind-merge"; | ||
|
||
const AppleStoreButton = ({ type }) => { | ||
return ( | ||
<a href={CONFIG.appStore.apple}> | ||
<button | ||
type="button" | ||
class={twMerge( | ||
"flex items-center shadow-xl font-montserrat justify-center px-1 min-w-[150px] mt-3 text-black bg-transparent border-2 border-black pt-1 rounded-lg", | ||
type === "sm" && | ||
"min-w-[40px] py-1.5 border-0 mt-0 bg-lightblue drop-shadow-eclipse hover:opacity-80 transition-all duration-300" | ||
)} | ||
> | ||
<div class={twMerge("mr-2", type === "sm" && "mr-0")}> | ||
<img src={AppleSVG} className="w-7 h-7 self-center" /> | ||
</div> | ||
{type !== "sm" && ( | ||
<div> | ||
<div class="text-xs text-left tracking-tighter"> | ||
Download on the | ||
</div> | ||
<div class="-mt-1 text-base text-left font-semibold">App Store</div> | ||
</div> | ||
)} | ||
</button> | ||
</a> | ||
); | ||
}; | ||
|
||
export default AppleStoreButton; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
import React from "react"; | ||
import GooglePlaySVG from "../../assets/svg/google-play.svg"; | ||
import CONFIG from "../../config"; | ||
import { twMerge } from "tailwind-merge"; | ||
|
||
// type: "sm" | "base" | ||
const GooglePlayButton = ({ type }) => { | ||
return ( | ||
<a className="ml-2" href={CONFIG.appStore.google}> | ||
<button | ||
type="button" | ||
class={twMerge( | ||
"flex items-center shadow-xl font-montserrat justify-center px-1 min-w-[150px] mt-3 text-black bg-transparent border-2 border-black pt-1 rounded-lg", | ||
type === "sm" && | ||
"min-w-[40px] py-1.5 border-0 mt-0 bg-lightblue drop-shadow-eclipse hover:opacity-80 transition-all duration-300" | ||
)} | ||
> | ||
<div class={twMerge("mr-2", type === "sm" && "mr-0")}> | ||
<img src={GooglePlaySVG} className="w-7 h-7 self-baseline" /> | ||
</div> | ||
{type !== "sm" && ( | ||
<div> | ||
<div class="text-xs text-left tracking-tighter">Android app on</div> | ||
<div class="-mt-1 text-base text-left font-semibold"> | ||
Google Play | ||
</div> | ||
</div> | ||
)} | ||
</button> | ||
</a> | ||
); | ||
}; | ||
|
||
export default GooglePlayButton; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters