added better favicons, moved from sass to glamor, moved components

and utils to src dir, and removed packages no longer being used
This commit is contained in:
JJ Kasper
2018-11-04 01:28:46 -06:00
parent b47f3917bd
commit 31321e635a
99 changed files with 3821 additions and 21818 deletions

26
src/components/DocItem.js Normal file
View File

@@ -0,0 +1,26 @@
import Link from 'next/link'
import getUrl from '../util/getUrl'
const DocItem = ({ id, name, dir, updated }) => {
name = dir + (dir.length > 0 ? '/' : '') + name
const as = getUrl('k/' + id)
const href = { pathname: '/k', query: { id } }
return (
<tr>
<td>
<Link {...{ href, as }}>
<a>
<p className="noMargin">
{name}
<span className="float-right">
{new Date(updated).toLocaleDateString('en-US')}
</span>
</p>
</a>
</Link>
</td>
</tr>
)
}
export default DocItem