1import cn from 'classnames';
2import React from 'react';
3import { NavLink, Outlet, useParams } from 'react-router-dom';
4import { Meta } from './Meta';
6export const Layout = () => {
7 const params = useParams<{ lookup: string }>();
10 <main className={cn("flex flex-col items-center min-h-screen", !params.lookup && 'justify-center')}>
11 <div className="max-w-2xl w-full p-4 sm:py-12 sm:px-8 space-y-6">
14 <aside className='self-start mx-4 mb-6 mt-auto sm:m-0 sm:fixed left-4 bottom-4'>
15 <nav className='mb-10'>
16 <ul className='font-semibold text-sm space-y-4'>
18 <NavLink to="/search" className={({ isActive }) => cn('hover:text-rosy transition-colors', isActive && 'underline')}>search</NavLink>
21 <NavLink to="/manage-listings" end className={({ isActive }) => cn('hover:text-rosy transition-colors', isActive && 'underline')}>my listings</NavLink>
24 <NavLink to="/manage-listings/post" className={({ isActive }) => cn('hover:text-rosy transition-colors', isActive && 'underline')}>post listing</NavLink>
27 <NavLink to="/manage-listings/apps" className={({ isActive }) => cn('hover:text-rosy transition-colors', isActive && 'underline')}>add apps</NavLink>
30 <NavLink to="/manage-listings/groups" className={({ isActive }) => cn('hover:text-rosy transition-colors', isActive && 'underline')}>add groups</NavLink>
34 <Meta className='text-sm'/>
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list