Skip to content

Commit

Permalink
feat: update links (#23)
Browse files Browse the repository at this point in the history
* feat: add meetup link

* feat: stop opening page on new tab by default
  • Loading branch information
edmundhung authored Nov 21, 2022
1 parent b14135e commit 4147b73
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 20 deletions.
2 changes: 0 additions & 2 deletions app/components/About.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@ function About(): ReactElement {
<a
className="hover:underline"
href="https://github.com/edmundhung/remix-guide"
target="_blank"
rel="noopener noreferrer"
>
{version}
</a>
Expand Down
16 changes: 2 additions & 14 deletions app/components/ResourcesDetails.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -127,12 +127,7 @@ function ResourcesDetails({
<span>{resource.createdAt.substring(0, 10)}</span>
</div>
<div>
<a
className="sticky top-0"
href={resource.url}
target="_blank"
rel="noopener noreferrer"
>
<a className="sticky top-0" href={resource.url}>
<h2 className="inline-block text-xl break-words">
{resource.title ?? resource.url}
</h2>
Expand All @@ -141,8 +136,6 @@ function ResourcesDetails({
<a
className="hover:underline text-gray-400"
href={resource.url}
target="_blank"
rel="noopener noreferrer"
>
<SvgIcon
className="inline-block w-3 h-3 mr-2"
Expand Down Expand Up @@ -201,12 +194,7 @@ function ResourcesDetails({
</div>
) : resource.image ? (
<div className="lg:max-w-sm 2xl:max-w-xs w-auto mx-auto">
<a
className="relative"
href={resource.url}
target="_blank"
rel="noopener noreferrer"
>
<a className="relative" href={resource.url}>
<img
className="max-h-96 rounded-lg bg-white"
src={resource.image}
Expand Down
10 changes: 6 additions & 4 deletions app/components/SidebarNavigation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import historyIcon from '~/icons/history.svg';
import plusIcon from '~/icons/plus.svg';
import githubIcon from '~/icons/github.svg';
import discordIcon from '~/icons/discord.svg';
import meetupIcon from '~/icons/meetup.svg';
import timesIcon from '~/icons/times.svg';
import remixIcon from '~/icons/remix.svg';
import packageIcon from '~/icons/box-open.svg';
Expand Down Expand Up @@ -43,8 +44,6 @@ function ExternalLink({ href, children }: ExternalLinkProps): ReactElement {
<a
className="px-3 py-1.5 flex items-center gap-4 transition-colors rounded-lg text-gray-400 hover:text-gray-200 hover:bg-gray-800"
href={href}
target="_blank"
rel="noopener noreferrer"
>
{children}
</a>
Expand Down Expand Up @@ -200,7 +199,7 @@ function SidebarNavigation({
</SearchLink>
</List>
) : null}
<List title="List">
<List title="Menu">
{(lists ?? []).map((list) => (
<SearchLink key={list.slug} list={list.slug}>
<SvgIcon className="w-4 h-4" href={getListIcon(list.slug)} />{' '}
Expand All @@ -227,9 +226,12 @@ function SidebarNavigation({
<ExternalLink href="https://github.com/remix-run/remix">
<SvgIcon className="w-4 h-4" href={githubIcon} /> GitHub
</ExternalLink>
<ExternalLink href="https://discord.com/invite/remix">
<ExternalLink href="https://rmx.as/discord">
<SvgIcon className="w-4 h-4" href={discordIcon} /> Discord
</ExternalLink>
<ExternalLink href="https://www.meetup.com/pro/remix-run/">
<SvgIcon className="w-4 h-4" href={meetupIcon} /> Meetup
</ExternalLink>
</List>
</div>
</PaneContent>
Expand Down
5 changes: 5 additions & 0 deletions app/icons/meetup.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 4147b73

Please sign in to comment.