-
Notifications
You must be signed in to change notification settings - Fork 7.3k
ZOOKEEPER-5020 Update Website to React.js #2396
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
yuriipalam
wants to merge
1
commit into
apache:asf-site
Choose a base branch
from
yuriipalam:ZOOKEEPER-5020-asf-site
base: asf-site
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
This file was deleted.
Oops, something went wrong.
This file contains hidden or 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,245 @@ | ||
| <!doctype html> | ||
| <!-- | ||
| Licensed to the Apache Software Foundation (ASF) under one | ||
| or more contributor license agreements. See the NOTICE file | ||
| distributed with this work for additional information | ||
| regarding copyright ownership. The ASF licenses this file | ||
| to you under the Apache License, Version 2.0 (the | ||
| "License"); you may not use this file except in compliance | ||
| with the License. You may obtain a copy of the License at | ||
|
|
||
| http://www.apache.org/licenses/LICENSE-2.0 | ||
|
|
||
| Unless required by applicable law or agreed to in writing, software | ||
| distributed under the License is distributed on an "AS IS" BASIS, | ||
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| See the License for the specific language governing permissions and | ||
| limitations under the License. | ||
| --> | ||
| <html lang="en"> | ||
| <head> | ||
| <meta charset="utf-8" /> | ||
| <meta name="viewport" content="width=device-width, initial-scale=1" /> | ||
| <meta name="robots" content="noindex, nofollow" /> | ||
| <title>Page Not Found | Apache ZooKeeper</title> | ||
| <style> | ||
| @font-face { | ||
| font-family: Inter; | ||
| font-style: normal; | ||
| font-weight: 100 900; | ||
| font-display: swap; | ||
| src: url("/fonts/inter-latin-wght-normal.woff2") format("woff2"); | ||
| } | ||
|
|
||
| :root { | ||
| color-scheme: light; | ||
| --radius: 0.625rem; | ||
| --background: oklch(1 0 0); | ||
| --foreground: oklch(0.145 0 0); | ||
| --muted-foreground: oklch(0.556 0 0); | ||
| --border: oklch(0.922 0 0); | ||
| --primary: oklch(55.31% 0.12 136.93); | ||
| --primary-strong: oklch(0.4 0.13 145); | ||
| --primary-foreground: oklch(0.985 0 0); | ||
| --ring: oklch(0.708 0 0); | ||
| } | ||
|
|
||
| @media (prefers-color-scheme: dark) { | ||
| :root { | ||
| color-scheme: dark; | ||
| --background: oklch(0.17 0 0); | ||
| --foreground: oklch(0.92 0 0); | ||
| --muted-foreground: oklch(0.62 0 0); | ||
| --border: oklch(0.3 0 0); | ||
| --primary: oklch(55.31% 0.12 136.93); | ||
| --primary-strong: oklch(0.4 0.13 145); | ||
| --primary-foreground: oklch(97% 0 0); | ||
| --ring: oklch(55.31% 0.12 136.93); | ||
| } | ||
| } | ||
|
|
||
| html.light { | ||
| color-scheme: light; | ||
| --background: oklch(1 0 0); | ||
| --foreground: oklch(0.145 0 0); | ||
| --muted-foreground: oklch(0.556 0 0); | ||
| --border: oklch(0.922 0 0); | ||
| --primary: oklch(55.31% 0.12 136.93); | ||
| --primary-strong: oklch(0.4 0.13 145); | ||
| --primary-foreground: oklch(0.985 0 0); | ||
| --ring: oklch(0.708 0 0); | ||
| } | ||
|
|
||
| html.dark { | ||
| color-scheme: dark; | ||
| --background: oklch(0.17 0 0); | ||
| --foreground: oklch(0.92 0 0); | ||
| --muted-foreground: oklch(0.62 0 0); | ||
| --border: oklch(0.3 0 0); | ||
| --primary: oklch(55.31% 0.12 136.93); | ||
| --primary-strong: oklch(0.4 0.13 145); | ||
| --primary-foreground: oklch(97% 0 0); | ||
| --ring: oklch(55.31% 0.12 136.93); | ||
| } | ||
|
|
||
| * { | ||
| box-sizing: border-box; | ||
| } | ||
|
|
||
| body { | ||
| min-height: 100vh; | ||
| margin: 0; | ||
| background: | ||
| radial-gradient(circle at top, rgba(85, 147, 67, 0.14), transparent 32rem), | ||
| var(--background); | ||
| color: var(--foreground); | ||
| font-family: | ||
| Inter, | ||
| ui-sans-serif, | ||
| system-ui, | ||
| -apple-system, | ||
| BlinkMacSystemFont, | ||
| "Segoe UI", | ||
| sans-serif; | ||
| } | ||
|
|
||
| main { | ||
| display: grid; | ||
| min-height: 100vh; | ||
| place-items: center; | ||
| padding: 2rem; | ||
| } | ||
|
|
||
| .content { | ||
| width: min(100%, 42rem); | ||
| padding: clamp(2rem, 6vw, 4rem); | ||
| text-align: center; | ||
| } | ||
|
|
||
| .logo { | ||
| width: 9rem; | ||
| height: auto; | ||
| margin-bottom: 2rem; | ||
| } | ||
|
|
||
| .eyebrow { | ||
| margin: 0; | ||
| color: var(--muted-foreground); | ||
| font-size: 1rem; | ||
| font-weight: 700; | ||
| letter-spacing: 0.3em; | ||
| text-transform: uppercase; | ||
| } | ||
|
|
||
| h1 { | ||
| margin: 1rem 0 0; | ||
| font-size: clamp(2.5rem, 8vw, 4.5rem); | ||
| line-height: 1; | ||
| letter-spacing: -0.05em; | ||
| } | ||
|
|
||
| .message { | ||
| margin: 1.25rem auto 0; | ||
| max-width: 34rem; | ||
| color: var(--muted-foreground); | ||
| font-size: clamp(1.125rem, 2vw, 1.25rem); | ||
| line-height: 1.65; | ||
| } | ||
|
|
||
| .actions { | ||
| display: flex; | ||
| justify-content: center; | ||
| margin-top: 2rem; | ||
| } | ||
|
|
||
| .button { | ||
| display: inline-flex; | ||
| align-items: center; | ||
| justify-content: center; | ||
| gap: 0.5rem; | ||
| height: 2.5rem; | ||
| padding: 0.5rem 1.5rem; | ||
| border: 1px solid transparent; | ||
| border-radius: calc(var(--radius) - 2px); | ||
| background: var(--primary); | ||
| color: var(--primary-foreground); | ||
| cursor: pointer; | ||
| font-size: 0.875rem; | ||
| font-weight: 500; | ||
| line-height: 1.25rem; | ||
| text-decoration: none; | ||
| white-space: nowrap; | ||
| box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05); | ||
| outline: none; | ||
| transition: all 150ms cubic-bezier(0.4, 0, 0.2, 1); | ||
| } | ||
|
|
||
| .button:hover { | ||
| background: color-mix(in oklch, var(--primary) 90%, transparent); | ||
| } | ||
|
|
||
| html.dark .button { | ||
| background: var(--primary-strong); | ||
| } | ||
|
|
||
| html.dark .button:hover { | ||
| background: color-mix(in oklch, var(--primary-strong) 90%, transparent); | ||
| } | ||
|
|
||
| @media (prefers-color-scheme: dark) { | ||
| .button { | ||
| background: var(--primary-strong); | ||
| } | ||
|
|
||
| .button:hover { | ||
| background: color-mix(in oklch, var(--primary-strong) 90%, transparent); | ||
| } | ||
| } | ||
|
|
||
| html.light .button { | ||
| background: var(--primary); | ||
| } | ||
|
|
||
| html.light .button:hover { | ||
| background: color-mix(in oklch, var(--primary) 90%, transparent); | ||
| } | ||
|
|
||
| .button:focus-visible { | ||
| border-color: var(--ring); | ||
| box-shadow: | ||
| 0 1px 2px 0 rgb(0 0 0 / 0.05), | ||
| 0 0 0 3px color-mix(in oklch, var(--ring) 50%, transparent); | ||
| } | ||
| </style> | ||
| <script> | ||
| (function () { | ||
| try { | ||
| var theme = localStorage.getItem("theme"); | ||
| var root = document.documentElement; | ||
|
|
||
| if (theme === "light" || theme === "dark") { | ||
| root.classList.add(theme); | ||
| } | ||
| } catch (_) { | ||
| // Keep the CSS prefers-color-scheme fallback if storage is unavailable. | ||
| } | ||
| })(); | ||
| </script> | ||
| </head> | ||
| <body> | ||
| <main> | ||
| <section class="content" aria-labelledby="page-title"> | ||
| <img class="logo" src="/images/logo.svg" alt="Apache ZooKeeper" /> | ||
| <p class="eyebrow">404</p> | ||
| <h1 id="page-title">Page not found</h1> | ||
| <p class="message"> | ||
| The website was updated recently, so the route you were trying to visit might have | ||
| changed. | ||
| </p> | ||
| <div class="actions"> | ||
| <a class="button" href="/">Go back home</a> | ||
| </div> | ||
| </section> | ||
| </main> | ||
| </body> | ||
| </html> |
This file contains hidden or 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,27 @@ | ||
| <!DOCTYPE html><html lang="en"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="preload" as="font" href="/fonts/inter-latin-wght-normal.woff2" type="font/woff2" crossorigin="anonymous"/><link rel="prefetch" as="font" href="/fonts/inter-latin-wght-italic.woff2" type="font/woff2" crossorigin="anonymous"/><link rel="icon" href="/images/logo.svg" type="image/svg+xml"/><link rel="icon" href="/favicon.ico" sizes="any"/><link rel="modulepreload" href="/assets/manifest-4c027c24.js"/><link rel="modulepreload" href="/assets/entry.client-DyMXYsmj.js"/><link rel="modulepreload" href="/assets/chunk-EPOLDU6W-BACfhBcx.js"/><link rel="modulepreload" href="/assets/index-B4y4XthL.js"/><link rel="modulepreload" href="/assets/root-QJsC7eB7.js"/><link rel="modulepreload" href="/assets/theme-provider-VJDhrFwO.js"/><link rel="modulepreload" href="/assets/docs-paths-B5zZy3rE.js"/><link rel="stylesheet" href="/assets/root-BtA_CDVx.css"/><link rel="stylesheet" href="/assets/app-DxKXKjTC.css"/><script> | ||
| (function() { | ||
| const theme = localStorage.getItem('theme'); | ||
| const root = document.documentElement; | ||
| root.classList.remove('light', 'dark'); | ||
|
|
||
| if (theme && ['light', 'dark'].includes(theme)) { | ||
| root.classList.add(theme); | ||
| } else { | ||
| const systemTheme = window.matchMedia('(prefers-color-scheme: dark)').matches ? 'dark' : 'light'; | ||
| root.classList.add(systemTheme); | ||
| localStorage.setItem('theme', systemTheme); | ||
| } | ||
| })(); | ||
| </script><noscript><style>.theme-toggle-wrapper { display: none !important; }</style></noscript></head><body class="font-base"><script> | ||
| console.log( | ||
| "💿 Hey developer 👋. You can provide a way better UX than this " + | ||
| "when your app is loading JS modules and/or running `clientLoader` " + | ||
| "functions. Check out https://reactrouter.com/start/framework/route-module#hydratefallback " + | ||
| "for more information." | ||
| ); | ||
| </script><script>window.__reactRouterContext = {"basename":"/","future":{"unstable_optimizeDeps":false,"unstable_subResourceIntegrity":false,"unstable_trailingSlashAwareDataRequests":false,"v8_middleware":false,"v8_splitRouteModules":false,"v8_viteEnvironmentApi":false},"routeDiscovery":{"mode":"initial"},"ssr":false,"isSpaMode":true};window.__reactRouterContext.stream = new ReadableStream({start(controller){window.__reactRouterContext.streamController = controller;}}).pipeThrough(new TextEncoderStream());</script><script type="module" async="">import "/assets/manifest-4c027c24.js"; | ||
| import * as route0 from "/assets/root-QJsC7eB7.js"; | ||
|
|
||
| window.__reactRouterRouteModules = {"root":route0}; | ||
|
|
||
| import("/assets/entry.client-DyMXYsmj.js");</script><!--$--><script>window.__reactRouterContext.streamController.enqueue("[{\"_1\":2,\"_3\":-5,\"_4\":-5},\"loaderData\",{},\"actionData\",\"errors\"]\n");</script><!--$--><script>window.__reactRouterContext.streamController.close();</script><!--/$--><!--/$--></body></html> |
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this link here should be:
https://github.com/apache/zookeeper/blob/master/zookeeper-website/README.md
(Of course it is not yet merged so it is 404 but it will worl after merging the other PR. See also: https://github.com/apache/zookeeper/blob/master/zookeeper-website/README.md)