Skip to content

Commit 38e1c26

Browse files
authored
Move news to landing page (#175)
1 parent 7ed5545 commit 38e1c26

File tree

6 files changed

+12
-68
lines changed

6 files changed

+12
-68
lines changed

app/Nav.jsx

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -68,9 +68,14 @@ export function Nav() {
6868
<SafeLink href="/docs" className={cn(styles.link, isSelected("/docs") && styles.selectedLink, "ml-3")}>
6969
Docs
7070
</SafeLink>
71-
<SafeLink href="/news" className={cn(styles.link, isSelected("/news") && styles.selectedLink)}>
71+
<a
72+
href="https://recho.dev/news"
73+
target="_blank"
74+
rel="noopener noreferrer"
75+
className={cn(styles.link, isSelected("/news") && styles.selectedLink)}
76+
>
7277
News
73-
</SafeLink>
78+
</a>
7479
<SafeLink href="/examples" className={cn(styles.link, isSelected("/examples") && styles.selectedLink)}>
7580
Examples
7681
</SafeLink>
@@ -93,13 +98,15 @@ export function Nav() {
9398
>
9499
Docs
95100
</SafeLink>
96-
<SafeLink
97-
href="/news"
101+
<a
102+
href="https://recho.dev/news"
98103
className={cn(styles.dropdownItem, isSelected("/news") && styles.dropdownItemSelected)}
99104
onClick={() => setDropdownOpen(false)}
105+
target="_blank"
106+
rel="noopener noreferrer"
100107
>
101108
News
102-
</SafeLink>
109+
</a>
103110
<SafeLink
104111
href="/examples"
105112
className={cn(styles.dropdownItem, isSelected("/examples") && styles.dropdownItemSelected)}

app/news/[slug]/page.jsx

Lines changed: 0 additions & 30 deletions
This file was deleted.

app/news/data.js

Lines changed: 0 additions & 11 deletions
This file was deleted.

app/news/page.jsx

Lines changed: 0 additions & 22 deletions
This file was deleted.
-2.59 MB
Binary file not shown.
-1.31 MB
Binary file not shown.

0 commit comments

Comments
 (0)