summaryrefslogtreecommitdiff
path: root/examples/docs/src/layouts
diff options
context:
space:
mode:
Diffstat (limited to 'examples/docs/src/layouts')
-rw-r--r--examples/docs/src/layouts/Main.astro239
1 files changed, 0 insertions, 239 deletions
diff --git a/examples/docs/src/layouts/Main.astro b/examples/docs/src/layouts/Main.astro
deleted file mode 100644
index bce5b1e6e..000000000
--- a/examples/docs/src/layouts/Main.astro
+++ /dev/null
@@ -1,239 +0,0 @@
----
-// Component Imports
-import ArticleFooter from '../components/ArticleFooter.astro';
-import SiteSidebar from '../components/SiteSidebar.astro';
-import ThemeToggle from '../components/ThemeToggle.tsx';
-import DocSidebar from '../components/DocSidebar.tsx';
-
-// Component Script:
-// You can write any JavaScript/TypeScript that you'd like here.
-// It will run during the build, but never in the browser.
-// All variables are available to use in the HTML template below.
-const { content } = Astro.props;
-const headers = content.astro.headers;
-const currentPage = Astro.request.url.pathname;
-const currentFile = currentPage === '/' ? 'src/pages/index.md' : `src/pages${currentPage.replace(/\/$/, "")}.md`;
-const githubEditUrl = `https://github.com/USER/REPO/blob/main/${currentFile}`
-
-// Full Astro Component Syntax:
-// https://docs.astro.build/core-concepts/astro-components/
----
-<html lang={ content.lang || 'en' }>
- <head>
- <title>{content.title}</title>
-
- <link rel="stylesheet" href="/index.css" />
- <link rel="stylesheet" href="/theme.css" />
- <link rel="stylesheet" href="/code.css" />
- <script src="/theme.js" />
- <link rel="icon" type="image/x-icon" href="/favicon.ico" />
-
- <style>
- body {
- width: 100%;
- display: grid;
- grid-template-rows: 3.5rem 1fr;
- --gutter: 0.5rem;
- --doc-padding: 2rem;
- }
-
- header {
- width: 100%;
- height: 100%;
- background-color: var(--theme-bg-offset);
- display: flex;
- align-items: center;
- justify-content: center;
- }
-
- .layout {
- display: grid;
- grid-auto-flow: column;
- grid-template-columns: minmax(var(--gutter), 1fr) minmax(0, var(--max-width)) minmax(var(--gutter), 1fr);
- gap: 1em;
- }
-
- .menu-and-logo {
- gap: 1em;
- }
-
- nav.layout {
- justify-content: center;
- width: 100%;
- }
-
- nav.layout :global(> :nth-child(1)) {
- grid-column: 2;
- }
-
- #site-title {
- display: flex;
- align-items: center;
- gap: 0.25em;
- font-size: 1.5rem;
- font-weight: 700;
- margin: 0;
- line-height: 1;
- color: var(--theme-text);
- text-decoration: none;
- }
-
- #site-title:hover,
- #site-title:focus {
- color: var(--theme-text-light);
- }
-
- #site-title h1 {
- font: inherit;
- color: inherit;
- margin: 0;
- }
-
- .nav-wrapper {
- display: flex;
- align-items: center;
- justify-content: space-between;
- width: 100%;
- max-width: 64ch;
- margin: 0 auto;
- }
-
- .layout :global(> *) {
- width: 100%;
- height: 100%;
- }
-
- .sidebar {
- max-height: 100vh;
- position: sticky;
- top: 0;
- padding: var(--doc-padding) 0;
- }
-
- #sidebar-nav {
- display: none;
- max-height: 100vh;
- padding: var(--doc-padding) 0;
- }
-
- #article {
- padding: var(--doc-padding) var(--gutter);
- grid-column: 2;
- display: flex;
- flex-direction: column;
- align-items: center;
- height: 100%;
- }
-
- .content {
- max-width: 64ch;
- width: 100%;
- height: 100%;
- display: flex;
- flex-direction: column;
- }
-
- .content > main {
- margin-bottom: 4rem;
- }
-
- #sidebar-content {
- display: none;
- }
-
- @media (min-width: 64em) {
- .menu-and-logo button {
- display: none;
- }
- .layout {
- grid-template-columns: 20rem minmax(0, 1fr);
- padding-left: 1rem;
- padding-right: 1rem;
- }
- #article {
- grid-column: 2;
- }
- #sidebar-nav {
- display: flex;
- }
- #sidebar-content {
- /* display: flex; */
- grid-column: 3;
- }
-
- .nav-wrapper {
- display: contents;
- }
- }
-
- @media (min-width: 88em) {
- .layout {
- grid-template-columns: minmax(var(--gutter), 1fr) 20rem minmax(0, var(--max-width)) 16rem minmax(var(--gutter), 1fr);
- padding-left: 0;
- padding-right: 0;
- }
-
- #sidebar-nav,
- .nav-wrapper :global(:nth-child(1)) {
- grid-column: 2;
- }
- #article,
- .nav-wrapper :global(:nth-child(2)) {
- grid-column: 3;
- }
- #sidebar-content,
- .nav-wrapper :global(:nth-child(3)) {
- display: flex;
- grid-column: 4;
- }
- }
-
- </style>
- </head>
-
- <body>
- <header>
- <nav class="layout">
- <div class="nav-wrapper">
- <div class="menu-and-logo flex">
- <button id="menu-toggle">
- <svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" fill="none" viewBox="0 0 24 24" stroke="currentColor">
- <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 6h16M4 12h16M4 18h16" />
- </svg>
- </button>
- <a id="site-title" href="/">
- <svg width="1em" height="1em" viewBox="0 0 340 340" fill="none" xmlns="http://www.w3.org/2000/svg">
- <path d="M320 170C320 170 296.88 171.746 267.428 188.75C237.975 205.754 205.754 237.975 188.75 267.428C171.746 296.88 170 320 170 320C170 320 168.254 296.88 151.25 267.428C134.246 237.975 102.025 205.754 72.5721 188.75C43.1197 171.746 20 170 20 170C20 170 43.1197 168.254 72.5721 151.25C102.025 134.246 134.246 102.025 151.25 72.5721C168.254 43.1197 170 20 170 20C170 20 171.746 43.1197 188.75 72.5721C205.754 102.025 237.975 134.246 267.428 151.25C296.88 168.254 320 170 320 170Z" fill="currentColor"/>
- </svg>
- <h1>Astroid</h1>
- </a>
- </div>
-
- <div />
-
- <div>
- <ThemeToggle client:idle />
- </div>
- </div>
- </nav>
- </header>
-
- <main class="layout">
- <aside class="sidebar" id="sidebar-nav">
- <SiteSidebar />
- </aside>
- <div id="article">
- <article class="content">
- <main>
- <h1>{content.title}</h1>
- <slot />
- </main>
- <ArticleFooter />
- </article>
- </div>
- <aside class="sidebar" id="sidebar-content">
- <DocSidebar client:idle headers={headers} editHref={githubEditUrl} />
- </aside>
- </main>
- </body>
-</html>
docs] update scopedStyleStragegy default and description (#8148)Gravatar Sarah Rainsberger 1-2/+2 2023-08-18[ci] release (#8145)astro@2.10.12@astrojs/react@2.3.2@astrojs/node@5.3.5Gravatar Houston (Bot) 46-92/+98 2023-08-18Fix missing package file regression (#8149)Gravatar Matthew Phillips 2-1/+7 2023-08-18fix(node): delegate preview's not found and error handling to core/app (#8141)Gravatar Arsh 2-9/+6 2023-08-18Replace `class:list` implementation with `clsx` (#8142)Gravatar Nate Moore 12-68/+133 2023-08-18[ci] formatGravatar matthewp 1-1/+4 2023-08-18fix(data collections): normalize file paths for DataEntry.id (#8144)Gravatar Arsh 2-1/+6 2023-08-18[ci] release (beta) (#8140)astro@3.0.0-beta.4Gravatar Houston (Bot) 41-65/+72 2023-08-18[error messages] Update image errors-data.ts (#8126)Gravatar Sarah Rainsberger 1-12/+12 2023-08-18fix(polyfills): Use object shape for Stackblitz polyfill listGravatar Princesseuh 1-2/+2 2023-08-18fix: polyfill File using undici instead of node:buffer (#8139)Gravatar Erika 2-8/+9 2023-08-18[ci] release (beta) (#8073)create-astro@4.0.0-beta.1astro@3.0.0-beta.3@astrojs/vercel@4.0.0-beta.3@astrojs/telemetry@3.0.0-beta.2@astrojs/svelte@4.0.0-beta.1@astrojs/solid-js@3.0.0-beta.2@astrojs/react@3.0.0-beta.3@astrojs/mdx@1.0.0-beta.1@astrojs/cloudflare@7.0.0-beta.2Gravatar Houston (Bot) 63-117/+389 2023-08-18[ci] release (#8138)astro@2.10.11@astrojs/react@2.3.1Gravatar Houston (Bot) 44-80/+82 2023-08-18[ci] formatGravatar natemoo-re 1-1/+1 2023-08-18Fix 404 response leading to an infinite loop when there is no 404 page (#8136)Gravatar André Alves 2-1/+10 2023-08-18fix(react): add missing export (#8137)Gravatar Nate Moore 2-1/+7 2023-08-18[ci] release (#8096)create-astro@3.2.2astro@2.10.10@astrojs/vercel@3.8.2@astrojs/svelte@3.1.1@astrojs/solid-js@2.2.1@astrojs/react@2.3.0Gravatar Houston (Bot) 63-197/+186 2023-08-18changeset(next): inlineStylesheets default switch is major (#8133)Gravatar Arsh 1-1/+1 2023-08-18feat: add polyfills for stackblitz (#8130)Gravatar Erika 7-6/+86