-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
why: - author pills were not linking to author pages, - content cards were linking to content on their entirety thus rendering buttons unclicable, - highlights were not linking to content; how: - refactored Author pill to conditionally render based on number of authors; - added links to elements; - adress category styling on hub highlights, solving #45
- Loading branch information
Showing
41 changed files
with
659 additions
and
299 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,13 @@ | ||
import PageTemplate from './[slug]/page' | ||
import { Metadata } from "next"; | ||
|
||
export const dynamic = 'auto' | ||
export const revalidate = 10 | ||
|
||
export default PageTemplate | ||
|
||
export function generateMetadata() : Metadata { | ||
return { | ||
title: 'Subvisual Content Hub Home' | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,26 @@ | ||
/* THIS FILE WAS GENERATED AUTOMATICALLY BY PAYLOAD. */ | ||
/* DO NOT MODIFY IT BECAUSE IT COULD BE REWRITTEN AT ANY TIME. */ | ||
import configPromise from '@payload-config' | ||
import '@payloadcms/next/css' | ||
import { RootLayout } from '@payloadcms/next/layouts' | ||
import React from 'react' | ||
import configPromise from "@payload-config"; | ||
import "@payloadcms/next/css"; | ||
import { RootLayout } from "@payloadcms/next/layouts"; | ||
import React from "react"; | ||
|
||
import './custom.scss' | ||
import { importMap } from './admin/importMap' | ||
import "./custom.scss"; | ||
import { importMap } from "./admin/importMap"; | ||
|
||
type Args = { | ||
children: React.ReactNode | ||
} | ||
|
||
const Layout = ({ children }: Args) => ( | ||
<RootLayout importMap={importMap} config={configPromise}> | ||
{children} | ||
</RootLayout> | ||
) | ||
<> | ||
<head> | ||
<link rel="icon" href="https://cdn.prod.website-files.com/60fec5603634b635fcde315a/616efcb7df44b813d76f2e1e_favicon.png" sizes="32x32" /> | ||
<link rel="icon" href="https://raw.githubusercontent.com/subvisual/content-sub/refs/heads/main/public/media/sublogo.png" type="image/svg+xml" /> | ||
</head> | ||
<RootLayout importMap={importMap} config={configPromise}> | ||
{children} | ||
</RootLayout></> | ||
); | ||
|
||
export default Layout | ||
export default Layout; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,15 @@ | ||
import AuthorPill from '@/app/_components/AuthorPill' | ||
import { AuthorPill } from "@/app/_components/AuthorPill"; | ||
|
||
export default function Contributors({ className, authors }) { | ||
return ( | ||
<div className={className}> | ||
<p className={'outline'}>CONTRIBUTORS</p> | ||
<p className={"outline"}>CONTRIBUTORS</p> | ||
{authors.map((author, i) => ( | ||
<AuthorPill large={true} author={author} key={i} /> | ||
<div> | ||
{/* Author has to be passed as an Array for compatibility reasons */} | ||
<AuthorPill authors={[author]} /> | ||
</div> | ||
))} | ||
</div> | ||
) | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.