Skip to content

Commit

Permalink
Add buttons to homepage and try to get stars
Browse files Browse the repository at this point in the history
  • Loading branch information
danmindru committed Nov 16, 2024
1 parent a5e8597 commit 7f7d91d
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 10 deletions.
2 changes: 1 addition & 1 deletion shipixen/app/all-articles/page.tsx
Original file line number Diff line number Diff line change
@@ -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';

Expand Down
2 changes: 1 addition & 1 deletion shipixen/app/all-articles/page/[page]/page.tsx
Original file line number Diff line number Diff line change
@@ -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';

Expand Down
13 changes: 11 additions & 2 deletions shipixen/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ import {
ThumbsUpIcon,
ZapIcon,
} from 'lucide-react';
import { Button } from '@/components/shared/ui/button';

export default function Home() {
return (
Expand All @@ -48,8 +49,8 @@ export default function Home() {
<Header className="mb-0 lg:mb-0" />

<LandingPrimaryTextCtaSection
title="Rare Deals and Discounts on Software, Apps & SaaS"
description="Get rare limited time details on selected SaaS, software, apps and services. Discounts for Black Friday and beyond."
title="Rare Deals and Discounts "
descriptionComponent={<p className='max-w-2xl'>Save big on limited time details on selected SaaS, software, apps & services. Discounts for Black Friday, Cyber Monday & beyond.</p>}
textPosition="left"
withBackground
// leadingComponent={<LandingProductHuntAward />}
Expand All @@ -59,6 +60,14 @@ export default function Home() {
discountDescriptionText="for the first 10 customers (2 left)"
/> */}

<Button size="xl" variant="secondary" asChild>
<a href="https://github.com/danmindru/rare-big-deal/pulls">Submit</a>
</Button>

<Button size="xl" variant="outlineSecondary">
<a href="/all-deals">All Deals</a>
</Button>

<LandingSocialProof
className="w-full mt-12"
showRating
Expand Down
4 changes: 2 additions & 2 deletions shipixen/data/config/footerLinks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ export const footerLinks: Array<{
columnName: 'Company',
links: [
{ href: '/', title: 'Home' },
{ href: '/all-articles', title: 'All Deals' },
{ href: '/all-articles', title: 'Blog' },
{ href: '/all-deals', title: 'All Deals' },
{ href: '/all-deals', title: 'Blog' },
],
},
{ columnName: 'Product', links: [] },
Expand Down
2 changes: 1 addition & 1 deletion shipixen/data/config/headerNavLinks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ export const headerNavLinks: Array<{
title: string;
}> = [
{ 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' },
];
4 changes: 2 additions & 2 deletions shipixen/data/config/searchLinks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
},
];
2 changes: 1 addition & 1 deletion shipixen/data/config/site.settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7f7d91d

Please sign in to comment.