parent
07b911066a
commit
e9c5b6907c
4 changed files with 141 additions and 88 deletions
@ -0,0 +1,34 @@ |
||||
import type { BadgeProps } from './RoadCardPage'; |
||||
|
||||
export function LongBadge({ badgeUrl }: BadgeProps) { |
||||
return ( |
||||
<div className="col-span-2"> |
||||
<a |
||||
href={badgeUrl} |
||||
target="_blank" |
||||
rel="noopener noreferrer" |
||||
className="relative block aspect-[300/392] w-full hover:cursor-pointer" |
||||
> |
||||
<img |
||||
src={badgeUrl} |
||||
alt="Road Card" |
||||
className="absolute left-0 top-0 h-full w-full object-cover" |
||||
/> |
||||
</a> |
||||
|
||||
<div className="mt-3 grid grid-cols-2 gap-2"> |
||||
<button className="flex h-7 items-center justify-center whitespace-nowrap rounded border border-gray-300 bg-gray-50 px-2 text-xs font-medium leading-none hover:opacity-75"> |
||||
Download |
||||
</button> |
||||
<a |
||||
className="flex h-7 items-center justify-center whitespace-nowrap rounded border border-gray-300 bg-gray-50 px-2 text-xs font-medium leading-none hover:opacity-75" |
||||
href={badgeUrl} |
||||
target="_blank" |
||||
rel="noopener noreferrer" |
||||
> |
||||
Copy Link |
||||
</a> |
||||
</div> |
||||
</div> |
||||
); |
||||
} |
@ -0,0 +1,34 @@ |
||||
import type { BadgeProps } from './RoadCardPage'; |
||||
|
||||
export function WideBadge({ badgeUrl }: BadgeProps) { |
||||
return ( |
||||
<div> |
||||
<a |
||||
href={badgeUrl} |
||||
target="_blank" |
||||
rel="noopener noreferrer" |
||||
className="relative block aspect-[2.63/1] w-full hover:cursor-pointer" |
||||
> |
||||
<img |
||||
src={badgeUrl} |
||||
alt="Road Card" |
||||
className="absolute left-0 top-0 h-full w-full object-cover" |
||||
/> |
||||
</a> |
||||
|
||||
<div className="mt-3 grid grid-cols-2 gap-2"> |
||||
<a className="flex h-7 items-center justify-center whitespace-nowrap rounded border border-gray-300 bg-gray-50 px-2 text-xs font-medium leading-none hover:opacity-75"> |
||||
Download |
||||
</a> |
||||
<a |
||||
className="flex h-7 items-center justify-center whitespace-nowrap rounded border border-gray-300 bg-gray-50 px-2 text-xs font-medium leading-none hover:opacity-75" |
||||
href={badgeUrl} |
||||
target="_blank" |
||||
rel="noopener noreferrer" |
||||
> |
||||
Copy Link |
||||
</a> |
||||
</div> |
||||
</div> |
||||
); |
||||
} |
After Width: | Height: | Size: 559 B |
Loading…
Reference in new issue