Skip to content

Commit

Permalink
ar(feat) [DPCP-38] [DPCP-39] [DPCP-46]: Abstract Views
Browse files Browse the repository at this point in the history
  • Loading branch information
angeloreale committed Aug 5, 2024
1 parent 12ac054 commit b5e3a27
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 6 deletions.
13 changes: 12 additions & 1 deletion next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,18 @@ const nextConfig = {
],
},
async redirects() {
return [];
return [
{
source: '/services/hypnos',
destination: '/services/hypnos/list',
permanent: false
},
{
source: '/services/rickmorty',
destination: '/services/rickmorty/list',
permanent: false
}
];
},
};

Expand Down
7 changes: 5 additions & 2 deletions src/app/components/client/blocks/topnav-view.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,13 @@ export const VTopNav = ({ user }: VTopNavProps) => {
hypnos
</InternalLink>
</div>
<VSignIn className="col-span-full col-start-0 md:col-span-3 md:col-start-9 lg:col-start-10 lg:col-span-2" user={_user} />
<DPGrid full bleed={EBleedVariant.ZERO} variant={EGridVariant.TWELVE_COLUMNS} className="col-span-full col-start-0 md:col-span-4 md:col-start-12 lg:col-span-4 lg:col-start-12">
<VSignIn className="col-span-full col-start-0 md:col-span-3 md:col-start-6 lg:col-start-8 lg:col-span-2" user={_user} />
<DPGrid full bleed={EBleedVariant.ZERO} variant={EGridVariant.TWELVE_COLUMNS} className="col-span-full col-start-0 md:col-span-6 md:col-start-12 lg:col-span-6 lg:col-start-12">
<div className="flex w-full sm:justify-end">
<AudioPlayer prompt="" theme={theme} />
<DPButton className="ml-a1" theme={theme} icon={ESystemIcon['card']} onClick={() => navigate(document.location.href.replace(/(map|calendar)/, 'list'))} />
<DPButton className="ml-a1" theme={theme} icon={ESystemIcon['map']} onClick={() => navigate(document.location.href.replace(/(list|calendar)/, 'map'))} />
<DPButton className="ml-a1" theme={theme} icon={ESystemIcon['calendar']} onClick={() => navigate(document.location.href.replace(/(list|map)/, 'calendar'))} />
<DPButton className="ml-a1" theme={theme} icon={ESystemIcon['lightbulb']} onClick={handleThemeSwitch} />
</div>
</DPGrid>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// page.tsx
import { DPPublicListings } from '@blocks/server';

export default function Home({ mode = 'list' }) {

export default function Home({ params }) {
const mode = params.mode || "list"
return (
<main>
<section>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
// page.tsx
import { DPRMList } from '@blocks/server';

export default function Home() {
export default function Home({ params }) {
const mode = params.mode || "list"
return (
<main>
<section>
Expand Down

0 comments on commit b5e3a27

Please sign in to comment.