-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4 from OneRandom1509/feat-migration-to-app-router
Issue #1 - Migration from pages router to app router
- Loading branch information
Showing
21 changed files
with
99 additions
and
237 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
import { Metadata } from 'next'; | ||
import * as React from 'react'; | ||
|
||
import '../styles/globals.css'; | ||
|
||
import Player from '../components/Player'; | ||
import Sidebar from '../components/sidebar/Sidebar'; | ||
|
||
export const metadata: Metadata = { | ||
title: { | ||
default: 'Nex | Music Player', | ||
template: '%s | Nex', | ||
}, | ||
applicationName: 'Nex | Music Player', | ||
description: 'A spotify inspired music players for communities and groups', | ||
authors: { name: 'ThEditor', url: 'https://nex.theditor.xyz' }, | ||
robots: 'follow, index', | ||
icons: { icon: 'https://theditor.xyz/assets/img/profile-img.jpg' }, | ||
}; | ||
|
||
export default function Layout({ children }: { children: React.ReactNode }) { | ||
return ( | ||
<html> | ||
<body> | ||
<div className='text-alt bg-dark flex h-screen flex-col'> | ||
<div className='flex h-[87%]'> | ||
<Sidebar className='w-[5%]' /> | ||
<div className='h-full flex-grow overflow-y-auto'>{children}</div> | ||
</div> | ||
<Player className='h-[13%]' /> | ||
</div> | ||
</body> | ||
</html> | ||
); | ||
} |
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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import { Metadata } from 'next'; | ||
import { redirect } from 'next/navigation'; | ||
|
||
export const metadata: Metadata = { | ||
title: 'Logout', | ||
}; | ||
|
||
export default function LogoutPage() { | ||
const signedin = true; | ||
|
||
return signedin ? redirect('/') : <></>; | ||
} |
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,3 +1,4 @@ | ||
'use client'; | ||
import Image, { ImageProps } from 'next/image'; | ||
import * as React from 'react'; | ||
|
||
|
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 was deleted.
Oops, something went wrong.
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 was deleted.
Oops, something went wrong.
Oops, something went wrong.