-
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.
Merge pull request #3 from saroh-io/development
Development
- Loading branch information
Showing
10 changed files
with
129 additions
and
47 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,3 @@ | ||
## Saroh.io | ||
|
||
Build your storefronts with ease. Add Blogs, products, web stories and manage your short links with saroh.io. | ||
|
||
|
||
|
||
This project is inspired by [dub.co](https://dub.co) and also some code is used from [dub.co](https://dub.co) and [dub.co](https://dub.co) is also used as a base for this project. |
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,5 +1,9 @@ | ||
import React from "react"; | ||
|
||
export default function DashboardHomePage() { | ||
return <div>DashboardHomePage</div>; | ||
return ( | ||
<div> | ||
<h1>Show list of Sites and Web Stories here</h1> | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import React from 'react' | ||
|
||
export default function SettingsPage() { | ||
return ( | ||
<div>SettingsPage</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import React from 'react' | ||
|
||
export default function SiteDetailsPage() { | ||
return ( | ||
<div>SiteDetailsPage</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import React from 'react' | ||
|
||
export default function SitesPage() { | ||
return ( | ||
<div>SitesPage</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
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,54 @@ | ||
"use client"; | ||
|
||
import Link from "next/link"; | ||
import { useSelectedLayoutSegments } from "next/navigation"; | ||
import React from "react"; | ||
|
||
let tabs = [ | ||
{ | ||
name: "Dashboard", | ||
href: "/", | ||
key: "dashboard", | ||
}, | ||
{ | ||
name: "Sites", | ||
href: "/sites", | ||
key: "sites", | ||
}, | ||
{ | ||
name: "Settings", | ||
href: "/settings", | ||
key: "settings", | ||
}, | ||
]; | ||
|
||
export default function NavTabs() { | ||
const segments = useSelectedLayoutSegments(); | ||
console.log({ segments }); | ||
return ( | ||
<div className="-mb-0.5 flex h-12 items-center justify-start space-x-2 overflow-x-auto scrollbar-hide"> | ||
{tabs.map(({ name, href, key }) => ( | ||
<Link | ||
key={href} | ||
href={href} | ||
className={`border-b-2 p-1 ${ | ||
// hacky approach to getting the current tab – will replace with useSelectedLayoutSegments when upgrading to Next.js App Router | ||
// router.asPath | ||
// .split("?")[0] | ||
// .split("/") | ||
// .slice(0, slug ? 3 : 2) | ||
// .join("/") === href | ||
segments[0] === key || | ||
(key === "dashboard" && segments.length === 0) | ||
? "border-black text-black" | ||
: "border-transparent text-gray-600 hover:text-black" | ||
}`} | ||
> | ||
<div className="px-3 py-2 transition-all duration-75 rounded-md hover:bg-gray-100 active:bg-gray-200"> | ||
<p className="text-sm">{name}</p> | ||
</div> | ||
</Link> | ||
))} | ||
</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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
4ecadc4
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
saroh-io – ./
saroh-io.vercel.app
saroh-io-git-main-mishtusdotcom.vercel.app
*.saroh.io
*.saroh.site
www.saroh.site
saroh-io-mishtusdotcom.vercel.app
saroh.site
saroh.io