chore: road card banner

pull/4036/head
Arik Chakma 1 year ago
parent e4a8b865ac
commit d1315325ec
  1. 13
      src/components/Activity/ActivityPage.tsx
  2. 14
      src/components/RoadCard/RoadCardPage.tsx

@ -97,6 +97,19 @@ export function ActivityPage() {
{(learningRoadmaps.length > 0 || learningBestPractices.length > 0) && (
<>
<a
href="/account/road-card"
className="text-md group mb-7 hidden items-center text-red-600 hover:text-red-900 sm:flex"
>
<span class="mr-2 rounded-sm bg-red-600 px-1.5 py-0.5 text-xs font-medium uppercase text-white group-hover:bg-red-800">
New
</span>
<span className="mr-1 underline">
Share your progress with others using a{' '}
<span className="font-medium">#RoadCard</span>
</span>
<span>»</span>
</a>
<h2 class="mb-3 text-xs uppercase text-gray-400">
Continue Following
</h2>

@ -27,12 +27,12 @@ export function RoadCardPage() {
const textareaContent = `
<a
href="${import.meta.env.PUBLIC_API_URL}/v1-badge/long/${user.id}"
href="${import.meta.env.PUBLIC_API_URL}/v1-badge/${selectedBadge}/${user.id}"
target="_blank"
rel="noopener noreferrer"
>
<img
src="${import.meta.env.PUBLIC_API_URL}/v1-badge/long/${user.id}"
src="${import.meta.env.PUBLIC_API_URL}/v1-badge/${selectedBadge}/${user.id}"
alt="Road Card"
/>
</a>
@ -40,7 +40,7 @@ export function RoadCardPage() {
return (
<>
<div className="mb-8">
<div className="mb-8 hidden md:block">
<h2 className="text-3xl font-bold sm:text-4xl">Grab your #RoadCard</h2>
<p className="mt-2">
Pick a badge and share your progress with the world.
@ -76,15 +76,15 @@ export function RoadCardPage() {
</div>
<div
className={`${selectedBadge === 'long' && 'grid grid-cols-5 gap-6'} ${
selectedBadge === 'wide' && 'flex flex-col gap-6'
}`}
className={`${
selectedBadge === 'long' && 'grid gap-6 sm:grid-cols-5'
} ${selectedBadge === 'wide' && 'flex flex-col gap-6'}`}
>
{selectedBadge === 'long' && <LongBadge badgeUrl={badgeUrl} />}
{selectedBadge === 'wide' && <WideBadge badgeUrl={badgeUrl} />}
<div className={`${selectedBadge === 'long' && 'col-span-3'}`}>
<div className={`${selectedBadge === 'long' && 'sm:col-span-3'}`}>
<div className="flex items-center gap-2 text-xs uppercase leading-none text-gray-400">
Embed
<button

Loading…
Cancel
Save