-
Notifications
You must be signed in to change notification settings - Fork 7
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 #47 from kilbergr/rek-docs-page
docs page
- Loading branch information
Showing
3 changed files
with
78 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
export const anchorLinks = [ | ||
{ | ||
title: "Accessing Data", | ||
url: "#accessing-data", | ||
}, | ||
{ | ||
title: "Bulk Downloads", | ||
url: "#bulk-downloads", | ||
}, | ||
]; |
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,22 @@ | ||
<!doctype html> | ||
<html lang="en"> | ||
<head> | ||
<title>Documentation | Caselaw Access Project</title> | ||
<meta charset="utf-8" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1" /> | ||
<meta name="robots" content="noindex" /> | ||
<meta name="author" content="Your name" /> | ||
<meta name="description" content="Explore American Caselaw" /> | ||
<meta property="og:title" content="Caselaw Access Project" /> | ||
<meta property="og:description" content="Explore American Caselaw" /> | ||
<meta property="og:url" content="https://case.law/" /> | ||
<meta property="og:type" content="article" /> | ||
<meta property="og:site_name" content="Caselaw Access Projects" /> | ||
|
||
<link href="/css/global.css" rel="stylesheet" /> | ||
<script type="module" src="/templates/cap-docs-page.js"></script> | ||
</head> | ||
<body> | ||
<cap-docs-page></cap-docs-page> | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
import { LitElement, html } from "../lib/lit.js"; | ||
import "../components/cap-nav.js"; | ||
import "../components/cap-page-header.js"; | ||
import "../components/cap-footer.js"; | ||
import "../components/cap-anchor-list.js"; | ||
import { anchorLinks } from "../data/docsSidebarLinks.js"; | ||
|
||
export class CapDocsPage extends LitElement { | ||
// Turn Shadow DOM off | ||
// Generally discouraged: https://lit.dev/docs/components/shadow-dom/#implementing-createrenderroot | ||
createRenderRoot() { | ||
return this; | ||
} | ||
|
||
render() { | ||
return html` | ||
<cap-nav></cap-nav> | ||
<main id="main" class="l-interiorPage"> | ||
<header class="u-bg-gray-500 u-col-span-full"> | ||
<cap-page-header heading="Documentation"> | ||
<p class="u-text-white u-text-serif"> | ||
Welcome to the Caselaw Access Project Documentation. Here you'll | ||
find some documentation about our project, organization, data, and | ||
site. | ||
</p> | ||
</cap-page-header> | ||
</header> | ||
<aside class="u-sm-hidden"> | ||
<cap-anchor-list .data=${anchorLinks}></cap-anchor-list> | ||
</aside> | ||
<article class="c-article u-bg-beige"> | ||
<h2 class="c-decoratedHeader" id="accessing-data">Accessing Data</h2> | ||
<p> | ||
[We will put some documentation content about accessing data here.] | ||
</p> | ||
<h2 class="c-decoratedHeader" id="bulk-downloads">Bulk Downloads</h2> | ||
<p> | ||
[We will put some documentation content about bulk downloads here.] | ||
</p> | ||
</article> | ||
</main> | ||
<cap-footer></cap-footer> | ||
`; | ||
} | ||
} | ||
customElements.define("cap-docs-page", CapDocsPage); |