remove hero pattern from single files

This commit is contained in:
Pascal Fischer
2023-05-10 02:19:47 +02:00
parent cba03399cb
commit b82f8af4b1
36 changed files with 10 additions and 112 deletions

View File

@@ -1,7 +1,4 @@
const template = `
import {HeroPattern} from "@/components/HeroPattern"; import {Note} from "@/components/mdx";
<HeroPattern />
export const title = '<%- tag %>'

View File

@@ -102,10 +102,10 @@ function useTableOfContents(tableOfContents) {
let headings = getHeadings(tableOfContents)
function onScroll() {
let top = window.scrollY
let current = headings[0].id
let current = headings[0]?.id
for (let heading of headings) {
if (top >= heading.top) {
current = heading.id
if (top >= heading?.top) {
current = heading?.id
} else {
break
}
@@ -147,8 +147,6 @@ export function Layout({ children, title, tableOfContents }) {
return (
<>
{/*<Header navigation={navigation} />*/}
<HeroPattern/>
<div className="relative mx-auto flex max-w-8xl justify-center sm:px-2 lg:px-8 xl:px-12 lg:ml-72 xl:ml-80">
<motion.header
@@ -172,7 +170,7 @@ export function Layout({ children, title, tableOfContents }) {
</main>
<Footer />
</div>
{!router.route.startsWith("/ipa/resources") && <div className="hidden xl:sticky xl:top-[4.5rem] xl:-mr-6 xl:block xl:h-[calc(100vh-4.5rem)] xl:flex-none xl:overflow-y-auto xl:py-16 xl:pr-6">
{!router.route.startsWith("/ipa/resources") && !router.route.includes("introductions") && <div className="hidden xl:sticky xl:top-[4.5rem] xl:-mr-6 xl:block xl:h-[calc(100vh-4.5rem)] xl:flex-none xl:overflow-y-auto xl:py-16 xl:pr-6">
<nav aria-labelledby="on-this-page-title" className="w-56">
{tableOfContents.length > 0 && (
<>

View File

@@ -1,6 +1,4 @@
import {Note} from "@/components/mdx"; import {HeroPattern} from "@/components/HeroPattern";
<HeroPattern />
import {Note} from "@/components/mdx";
export const title = 'FAQ'

View File

@@ -1,6 +1,4 @@
import {HeroPattern} from "@/components/HeroPattern"; import {Note} from "@/components/mdx";
<HeroPattern />
import {Note} from "@/components/mdx";
export const title = 'How NetBird Works'

View File

@@ -1,6 +1,3 @@
import {HeroPattern} from "@/components/HeroPattern";
<HeroPattern />
# NetBird vs. Traditional VPN

View File

@@ -1,6 +1,4 @@
import {Note} from "@/components/mdx"; import {HeroPattern} from "@/components/HeroPattern";
<HeroPattern />
import {Note} from "@/components/mdx";
export const title = 'Other'

View File

@@ -1,6 +1,3 @@
import {HeroPattern} from "@/components/HeroPattern";
<HeroPattern />
# Why Wireguard with NetBird?

View File

@@ -1,6 +1,3 @@
import {HeroPattern} from "@/components/HeroPattern";
<HeroPattern/>
# Access Control
NetBird allows administrators to restrict access to resources (peers) by creating access rules and

View File

@@ -1,6 +1,3 @@
import {HeroPattern} from "@/components/HeroPattern";
<HeroPattern/>
# Activity

View File

@@ -1,7 +1,3 @@
import {HeroPattern} from "@/components/HeroPattern"; import {Note} from "@/components/mdx";
<HeroPattern />
# NetBird CLI

View File

@@ -1,6 +1,3 @@
import {HeroPattern} from "@/components/HeroPattern";
<HeroPattern/>
# DNS

View File

@@ -1,6 +1,3 @@
import {HeroPattern} from "@/components/HeroPattern";
<HeroPattern />
export const title = 'Examples'

View File

@@ -1,6 +1,4 @@
import {HeroPattern} from "@/components/HeroPattern"; import {Note} from "@/components/mdx";
<HeroPattern />
import {Note} from "@/components/mdx";
export const title = 'Getting Started'

View File

@@ -1,6 +1,3 @@
import {HeroPattern} from "@/components/HeroPattern";
<HeroPattern/>
# Network Routes

View File

@@ -1,6 +1,3 @@
import {HeroPattern} from "@/components/HeroPattern";
<HeroPattern/>
# Peers

View File

@@ -1,6 +1,3 @@
import {HeroPattern} from "@/components/HeroPattern";
<HeroPattern/>
# Settings

View File

@@ -1,6 +1,3 @@
import {HeroPattern} from "@/components/HeroPattern";
<HeroPattern/>
# Setup Keys

View File

@@ -1,6 +1,3 @@
import {HeroPattern} from "@/components/HeroPattern";
<HeroPattern/>
# Users

View File

@@ -1,5 +1,3 @@
import { HeroPattern } from '@/components/HeroPattern'
import {Note} from "@/components/mdx"
import {HowToGuides} from "@/components/How-To-Guides"
import {HowNetbirdWorks} from "@/components/How-NetBird-Works"
@@ -7,8 +5,6 @@ import {HowNetbirdWorks} from "@/components/How-NetBird-Works"
export const description =
'Learn everything there is to know about NetBird.'
<HeroPattern />
# NetBird Docs
NetBird is a simple and fast alternative to corporate VPNs built on top of [WireGuard®](https://www.wireguard.com/) making it easy to create secure private networks for your organization or home.

View File

@@ -1,6 +1,4 @@
import {HeroPattern} from "@/components/HeroPattern"; import {Note} from "@/components/mdx";
<HeroPattern />
import {Note} from "@/components/mdx";
# Identity Providers

View File

@@ -1,6 +1,3 @@
import {HeroPattern} from "@/components/HeroPattern";
<HeroPattern/>
# Self-hosting Guide

View File

@@ -1,9 +1,6 @@
import {HeroPattern} from "@/components/HeroPattern";
export const description =
'In this guide, well look at how authentication works. NetBird offers two ways to authenticate your API requests: OAuth2 and personal access tokens.'
<HeroPattern/>
# Authentication
You'll need to authenticate your requests to access any of the endpoints in the NetBird API. In this guide, we'll look at how authentication works. Netbird offers two ways to authenticate your API requests: OAuth2 and personal access tokens (PAT). {{ className: 'lead' }}

View File

@@ -1,9 +1,7 @@
import {HeroPattern} from "@/components/HeroPattern"; import {Note} from "@/components/mdx";
import {Note} from "@/components/mdx";
export const description =
'In this guide, we will talk about what happens when something goes wrong while you work with the API.'
<HeroPattern/>
# Errors
When working with APIs, it's important to understand the different types of HTTP errors that you might encounter. These errors can help you diagnose issues with your API requests and determine how to resolve them. {{ className: 'lead' }}

View File

@@ -1,8 +1,6 @@
import {HeroPattern} from "@/components/HeroPattern";
export const description =
'This guide will get you all set up and ready to use the NetBird API. Well cover how to get started and how to make your first API request.'
<HeroPattern/>
# Quickstart

View File

@@ -1,12 +1,9 @@
import { Guides } from '@/components/Guides'
import { Resources } from '@/components/Resources'
import { HeroPattern } from '@/components/HeroPattern'
export const description =
'Learn everything there is to know about the NetBird Public API.'
<HeroPattern />
# NetBird REST API
Use the NetBird Public API to manage users, peers, network rules and more from inside your application or scripts to automate the setup of your mesh network. {{ className: 'lead' }}

View File

@@ -1,6 +1,3 @@
import {HeroPattern} from "@/components/HeroPattern"; import {Note} from "@/components/mdx";
<HeroPattern />
export const title = 'Accounts'

View File

@@ -1,6 +1,3 @@
import {HeroPattern} from "@/components/HeroPattern"; import {Note} from "@/components/mdx";
<HeroPattern />
export const title = 'DNS'

View File

@@ -1,6 +1,3 @@
import {HeroPattern} from "@/components/HeroPattern"; import {Note} from "@/components/mdx";
<HeroPattern />
export const title = 'Events'

View File

@@ -1,6 +1,3 @@
import {HeroPattern} from "@/components/HeroPattern"; import {Note} from "@/components/mdx";
<HeroPattern />
export const title = 'Groups'

View File

@@ -1,6 +1,3 @@
import {HeroPattern} from "@/components/HeroPattern"; import {Note} from "@/components/mdx";
<HeroPattern />
export const title = 'Peers'

View File

@@ -1,6 +1,3 @@
import {HeroPattern} from "@/components/HeroPattern"; import {Note} from "@/components/mdx";
<HeroPattern />
export const title = 'Policies'

View File

@@ -1,6 +1,3 @@
import {HeroPattern} from "@/components/HeroPattern"; import {Note} from "@/components/mdx";
<HeroPattern />
export const title = 'Routes'

View File

@@ -1,6 +1,3 @@
import {HeroPattern} from "@/components/HeroPattern"; import {Note} from "@/components/mdx";
<HeroPattern />
export const title = 'Rules'

View File

@@ -1,6 +1,3 @@
import {HeroPattern} from "@/components/HeroPattern"; import {Note} from "@/components/mdx";
<HeroPattern />
export const title = 'Setup Keys'

View File

@@ -1,6 +1,3 @@
import {HeroPattern} from "@/components/HeroPattern"; import {Note} from "@/components/mdx";
<HeroPattern />
export const title = 'Tokens'

View File

@@ -1,6 +1,3 @@
import {HeroPattern} from "@/components/HeroPattern"; import {Note} from "@/components/mdx";
<HeroPattern />
export const title = 'Users'