Skip to content

Commit

Permalink
Merge pull request #27 from near/develop
Browse files Browse the repository at this point in the history
chore: links on a new domain should open in a new tab
  • Loading branch information
charleslavon authored May 23, 2024
2 parents 02558e0 + f3ee296 commit f124638
Showing 1 changed file with 20 additions and 4 deletions.
24 changes: 20 additions & 4 deletions src/components/pages/Home.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -138,21 +138,24 @@ const featuredApps = [
accountId: 'hack.near',
description: 'Ranking starred components',
image: images.apps.bosAllStars,
url: '/near/widget/ComponentDetailsPage?src=hack.near/widget/widgets.rank',
url: 'https://dev.near.org/near/widget/ComponentDetailsPage?src=hack.near/widget/widgets.rank',
target: '_blank',
},
{
name: 'BOS Hacks',
accountId: 'ndcplug.near',
description: 'The 2 week B.O.S Hackathon on B.O.S',
image: images.apps.bosHacks,
url: '/near/widget/ComponentDetailsPage?src=ndcplug.near/widget/BOSHACKS.Index',
url: 'https://dev.near.org/near/widget/ComponentDetailsPage?src=ndcplug.near/widget/BOSHACKS.Index',
target: '_blank',
},
{
name: 'NUI',
accountId: 'nearui.near',
description: ' A growing collection of beautifully designed B.O.S widgets - your building blocks for creating...',
image: images.apps.nui,
url: '/near/widget/ComponentDetailsPage?src=nearui.near/widget/index',
url: 'https://dev.near.org/near/widget/ComponentDetailsPage?src=nearui.near/widget/index',
target: '_blank',
},
];

Expand Down Expand Up @@ -255,6 +258,7 @@ const learnItems = [
description: 'Starter kit to learn about blockchain technology, web3, and the NEAR protocol.',
icon: 'ph-book-open-text',
url: 'https://dev.near.org/learn',
target: '_blank',
},
];

Expand All @@ -272,6 +276,7 @@ const communityItems = [
description: 'Horizons is an early stage accelerator for Web3 founders to build, connect, and grow.',
image: images.community.horizon,
url: '/horizon',
target: '_blank',
},
{
name: 'Near Digital Collective (NDC)',
Expand Down Expand Up @@ -434,13 +439,21 @@ export const Home = () => {
variant="secondary"
fill="outline"
size="large"
target="_blank"
/>
</Flex>
</Flex>

<Grid $columns="1fr 1fr 1fr" $gap="24px">
{featuredApps.map((app) => (
<Card $clickable as="a" href={app.url} style={{ borderColor: 'var(--sand12)' }} key={app.name}>
<Card
$clickable
as="a"
href={app.url}
style={{ borderColor: 'var(--sand12)' }}
key={app.name}
target={app.target}
>
<Flex $alignItems="center" $gap="24px">
<CardThumbnail>
<img src={returnImageSrc(app.image)} alt={app.name} />
Expand Down Expand Up @@ -543,6 +556,7 @@ export const Home = () => {
variant="affirmative"
size="large"
className="darkButton"
target="_blank"
/>
</div>
</>
Expand Down Expand Up @@ -606,6 +620,7 @@ export const Home = () => {
variant="secondary"
fill="outline"
size="large"
target="_blank"
/>
</div>
</>
Expand Down Expand Up @@ -745,6 +760,7 @@ export const Home = () => {
variant="affirmative"
size="large"
className="darkButton"
target="_blank"
/>
</Flex>
</Flex>
Expand Down

0 comments on commit f124638

Please sign in to comment.