From 7f7d91d5ca0cb13e16866a4b9700eaeaba334d70 Mon Sep 17 00:00:00 2001 From: Dan Mindru Date: Sat, 16 Nov 2024 10:51:20 +0100 Subject: [PATCH] Add buttons to homepage and try to get stars --- shipixen/app/all-articles/page.tsx | 2 +- shipixen/app/all-articles/page/[page]/page.tsx | 2 +- shipixen/app/page.tsx | 13 +++++++++++-- shipixen/data/config/footerLinks.ts | 4 ++-- shipixen/data/config/headerNavLinks.ts | 2 +- shipixen/data/config/searchLinks.ts | 4 ++-- shipixen/data/config/site.settings.js | 2 +- 7 files changed, 19 insertions(+), 10 deletions(-) diff --git a/shipixen/app/all-articles/page.tsx b/shipixen/app/all-articles/page.tsx index 71000501..576f7025 100644 --- a/shipixen/app/all-articles/page.tsx +++ b/shipixen/app/all-articles/page.tsx @@ -1,7 +1,7 @@ import { allCoreContent, sortPosts } from '@shipixen/pliny/utils/contentlayer'; import { allBlogs } from 'shipixen-contentlayer/generated'; import { genPageMetadata } from 'app/seo'; -import { POSTS_PER_PAGE } from '@/app/all-articles/settings'; +import { POSTS_PER_PAGE } from '@/app/all-deals/settings'; import ListLayout from '@/layouts/ListLayoutWithTags'; import Header from '@/components/shared/Header'; diff --git a/shipixen/app/all-articles/page/[page]/page.tsx b/shipixen/app/all-articles/page/[page]/page.tsx index 1ddb344e..895c2ce9 100644 --- a/shipixen/app/all-articles/page/[page]/page.tsx +++ b/shipixen/app/all-articles/page/[page]/page.tsx @@ -1,6 +1,6 @@ import { allCoreContent, sortPosts } from '@shipixen/pliny/utils/contentlayer'; import { allBlogs } from 'shipixen-contentlayer/generated'; -import { POSTS_PER_PAGE } from '@/app/all-articles/settings'; +import { POSTS_PER_PAGE } from '@/app/all-deals/settings'; import ListLayout from '@/layouts/ListLayoutWithTags'; import Header from '@/components/shared/Header'; diff --git a/shipixen/app/page.tsx b/shipixen/app/page.tsx index 0ed27dcf..8416f193 100644 --- a/shipixen/app/page.tsx +++ b/shipixen/app/page.tsx @@ -27,6 +27,7 @@ import { ThumbsUpIcon, ZapIcon, } from 'lucide-react'; +import { Button } from '@/components/shared/ui/button'; export default function Home() { return ( @@ -48,8 +49,8 @@ export default function Home() {
Save big on limited time details on selected SaaS, software, apps & services. Discounts for Black Friday, Cyber Monday & beyond.

} textPosition="left" withBackground // leadingComponent={} @@ -59,6 +60,14 @@ export default function Home() { discountDescriptionText="for the first 10 customers (2 left)" /> */} + + + + = [ { href: '/', title: 'Home' }, - { href: '/all-articles', title: 'All Deals' }, + { href: '/all-deals', title: 'All Deals' }, { href: 'https://github.com/danmindru/rare-big-deal/pulls', title: 'Submit' }, ]; diff --git a/shipixen/data/config/searchLinks.ts b/shipixen/data/config/searchLinks.ts index 907deaac..e3a9fd9c 100644 --- a/shipixen/data/config/searchLinks.ts +++ b/shipixen/data/config/searchLinks.ts @@ -14,10 +14,10 @@ export const searchLinks: Array<{ href: '/', }, { - id: 'all-articles', + id: 'all-deals', name: 'All Deals', keywords: '', section: 'Navigation', - href: '/all-articles', + href: '/all-deals', }, ]; diff --git a/shipixen/data/config/site.settings.js b/shipixen/data/config/site.settings.js index f599798b..d648e1e2 100644 --- a/shipixen/data/config/site.settings.js +++ b/shipixen/data/config/site.settings.js @@ -5,7 +5,7 @@ const siteConfig = { ...metadata, blogPath: '', // The location of all blog pages under 'data'. Empty string means 'data' (default). Best for SEO is to have articles under the root path. - allArticlesPath: '/all-articles', // The name of the page where you can see a list of all articles (needs to match app/all-articles/page.tsx) + allArticlesPath: '/all-deals', // The name of the page where you can see a list of all articles (needs to match app/all-deals/page.tsx) // Configure analytics disableAnalytics: false, // Disable all analytics on the site