-
Notifications
You must be signed in to change notification settings - Fork 240
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0ea77e9
commit ee90a17
Showing
27 changed files
with
5,084 additions
and
46 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 |
---|---|---|
|
@@ -47,3 +47,4 @@ test/support_assets/*/pubspec.lock | |
# FVM Version Cache | ||
.fvm | ||
.fvmrc | ||
docs/.next |
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,227 @@ | ||
import { Button } from "@/components/ui/button"; | ||
import Link from "next/link"; | ||
|
||
const MainHeading = () => { | ||
return ( | ||
<> | ||
<div className="home-content"> | ||
<div className="content-container"> | ||
<h1 className="headline"> | ||
Effortlessly Manage | ||
<br className="sm:block hidden" /> | ||
Flutter Versions | ||
</h1> | ||
<p className="subtitle"> | ||
Easy, powerful and flexible tool to | ||
<br className="sm:block hidden" /> | ||
manage multiple Flutter SDK versions. | ||
</p> | ||
<p className="subtitle"> | ||
<br className="sm:block hidden" /> | ||
<Link href="/documentation"> | ||
<Button>Get Started</Button> | ||
</Link> | ||
</p> | ||
</div> | ||
<style jsx>{` | ||
.content-container { | ||
max-width: 90rem; | ||
padding-left: max(env(safe-area-inset-left), 1.5rem); | ||
padding-right: max(env(safe-area-inset-right), 1.5rem); | ||
margin: 0 auto; | ||
} | ||
.features-container { | ||
margin: 8rem 0 0; | ||
padding: 4rem 0; | ||
background-color: #f3f4f6; | ||
border-bottom: 1px solid #e5e7eb; | ||
} | ||
.features-container .content-container { | ||
margin-top: -8rem; | ||
} | ||
:global(.dark) .features-container { | ||
background-color: #000; | ||
border-bottom: 1px solid rgb(38, 38, 38); | ||
} | ||
.headline { | ||
display: inline-flex; | ||
font-size: 3.125rem; | ||
font-size: min(4.375rem, max(8vw, 2.5rem)); | ||
font-weight: 700; | ||
font-feature-settings: initial; | ||
letter-spacing: -0.12rem; | ||
margin-left: -0.2rem; | ||
margin-top: 3.4rem; | ||
line-height: 1.1; | ||
background-image: linear-gradient(146deg, #000, #757a7d); | ||
-webkit-background-clip: text; | ||
-webkit-text-fill-color: transparent; | ||
background-clip: text; | ||
} | ||
:global(.dark) .headline { | ||
background-image: linear-gradient(146deg, #fff, #757a7d); | ||
} | ||
.subtitle { | ||
font-size: 1.3rem; | ||
font-size: min(1.3rem, max(3.5vw, 1.2rem)); | ||
font-feature-settings: initial; | ||
line-height: 1.6; | ||
} | ||
.nextjs-link { | ||
color: currentColor; | ||
text-decoration: none; | ||
font-weight: 600; | ||
} | ||
:global(#docs-card) { | ||
color: #fff; | ||
text-shadow: 0 0 1rem rgba(0, 0, 0, 0.1); | ||
} | ||
:global(#docs-card img) { | ||
object-fit: cover; | ||
object-position: left; | ||
position: absolute; | ||
left: 0; | ||
right: 0; | ||
top: 0; | ||
bottom: 0; | ||
height: 100%; | ||
z-index: 0; | ||
user-select: none; | ||
pointer-events: none; | ||
} | ||
:global(#docs-card img:nth-child(2)) { | ||
display: none; | ||
} | ||
:global(.dark #docs-card img:nth-child(2)) { | ||
display: initial; | ||
} | ||
:global(.dark #docs-card img:nth-child(1)) { | ||
display: none; | ||
} | ||
:global(#highlighting-card) { | ||
min-height: 300px; | ||
background-image: linear-gradient(to top, transparent, #fff 50%), | ||
url(/assets/syntax-highlighting.svg); | ||
background-size: 634px; | ||
background-position: -6px calc(100% + 4px); | ||
background-repeat: no-repeat; | ||
} | ||
:global(.dark #highlighting-card) { | ||
background-image: linear-gradient(to top, transparent, #202020 50%), | ||
url(/assets/syntax-highlighting.svg); | ||
} | ||
:global(.feat-darkmode) { | ||
min-height: 300px; | ||
} | ||
:global(.feat-darkmode h3) { | ||
font-size: 48px; | ||
} | ||
:global(#search-card) { | ||
display: flex; | ||
flex-direction: column; | ||
justify-content: center; | ||
} | ||
:global(#search-card p) { | ||
max-width: 320px; | ||
} | ||
:global(#search-card video) { | ||
position: absolute; | ||
right: 0; | ||
top: 24px; | ||
height: 430px; | ||
pointer-events: none; | ||
max-width: 60%; | ||
} | ||
:global(#fs-card) { | ||
min-height: 240px; | ||
} | ||
:global(#fs-card h3) { | ||
text-align: left; | ||
width: min(300px, 41%); | ||
min-width: 155px; | ||
} | ||
:global(#a11y-card) { | ||
background-image: url(/assets/high-contrast.png); | ||
background-position: -160px 160px; | ||
} | ||
@media screen and (max-width: 1300px) { | ||
:global(#a11y-card) { | ||
background-image: linear-gradient(to bottom, white, transparent), | ||
url(/assets/high-contrast.png); | ||
} | ||
} | ||
@media screen and (max-width: 1200px) { | ||
:global(#highlighting-card) { | ||
aspect-ratio: auto; | ||
} | ||
:global(.feat-darkmode h3) { | ||
font-size: 4vw; | ||
font-size: min(48px, max(4vw, 30px)); | ||
} | ||
:global(#search-card video) { | ||
aspect-ratio: 787/623; | ||
height: auto; | ||
} | ||
.headline { | ||
letter-spacing: -0.08rem; | ||
} | ||
} | ||
@media screen and (max-width: 1024px) { | ||
:global(#docs-card) { | ||
aspect-ratio: 135/86; | ||
} | ||
:global(#search-card) { | ||
aspect-ratio: 8/3; | ||
} | ||
:global(#search-card h3) { | ||
text-align: left; | ||
} | ||
:global(#highlighting-card) { | ||
background-size: 136%; | ||
} | ||
:global(#a11y-card) { | ||
background-image: url(/assets/high-contrast.png); | ||
background-position: center 160px; | ||
} | ||
} | ||
@media screen and (max-width: 768px) { | ||
:global(#docs-card) { | ||
min-height: 348px; | ||
width: 100%; | ||
aspect-ratio: auto; | ||
} | ||
:global(#docs-card img) { | ||
object-position: -26px 0; | ||
width: 250%; | ||
max-width: initial; | ||
} | ||
} | ||
@media screen and (max-width: 640px) { | ||
:global(#search-card) { | ||
aspect-ratio: 2.5/2; | ||
justify-content: flex-start; | ||
align-items: stretch; | ||
min-height: 350px; | ||
} | ||
:global(#search-card h3) { | ||
text-align: center; | ||
} | ||
:global(#search-card p) { | ||
max-width: 100%; | ||
} | ||
:global(#search-card video) { | ||
position: relative; | ||
margin: 0.75em -1.75em 0; | ||
max-width: calc(100% + 3.5em); | ||
} | ||
:global(.dark #search-card video) { | ||
mix-blend-mode: lighten; | ||
} | ||
} | ||
`}</style> | ||
</div> | ||
</> | ||
); | ||
}; | ||
|
||
export default MainHeading; |
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,5 @@ | ||
/// <reference types="next" /> | ||
/// <reference types="next/image-types/global" /> | ||
|
||
// NOTE: This file should not be edited | ||
// see https://nextjs.org/docs/basic-features/typescript for more information. |
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,23 @@ | ||
const withNextra = require("nextra")({ | ||
theme: "nextra-theme-docs", | ||
themeConfig: "./theme.config.tsx", | ||
}); | ||
|
||
module.exports = withNextra({ | ||
reactStrictMode: true, | ||
|
||
async redirects() { | ||
return [ | ||
{ | ||
source: "/docs", | ||
destination: "/documentation/getting-started", | ||
permanent: true, | ||
}, | ||
{ | ||
source: "/documentation", | ||
destination: "/documentation/getting-started", | ||
permanent: true, | ||
}, | ||
]; | ||
}, | ||
}); |
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,42 @@ | ||
{ | ||
"name": "nextra-docs-template", | ||
"version": "0.0.1", | ||
"description": "Nextra docs template", | ||
"scripts": { | ||
"dev": "next dev", | ||
"build": "next build", | ||
"start": "next start" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/shuding/nextra-docs-template.git" | ||
}, | ||
"author": "Shu Ding <[email protected]>", | ||
"license": "MIT", | ||
"bugs": { | ||
"url": "https://github.com/shuding/nextra-docs-template/issues" | ||
}, | ||
"homepage": "https://github.com/shuding/nextra-docs-template#readme", | ||
"dependencies": { | ||
"@radix-ui/react-icons": "^1.3.0", | ||
"@radix-ui/react-slot": "^1.0.2", | ||
"autoprefixer": "^10.4.15", | ||
"class-variance-authority": "^0.7.0", | ||
"clsx": "^2.0.0", | ||
"lucide-react": "^0.274.0", | ||
"next": "^13.5.6", | ||
"nextra": "^2.13.2", | ||
"nextra-theme-docs": "^2.13.2", | ||
"postcss": "^8.4.29", | ||
"react": "^18.2.0", | ||
"react-dom": "^18.2.0", | ||
"tailwind-merge": "^2.2.1", | ||
"tailwindcss": "^3.4.1", | ||
"tailwindcss-animate": "^1.0.7" | ||
}, | ||
"devDependencies": { | ||
"@types/node": "20.11.10", | ||
"eslint": "^8.56.0", | ||
"typescript": "^4.9.5" | ||
} | ||
} |
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,16 @@ | ||
{ | ||
"index": { | ||
"title": "Overview", | ||
"type": "page" | ||
}, | ||
"documentation": { | ||
"title": "Documentation", | ||
"type": "page" | ||
}, | ||
"contact": { | ||
"title": "Contact ↗", | ||
"type": "page", | ||
"href": "https://twitter.com/leoafarias", | ||
"newWindow": true | ||
} | ||
} |
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,26 @@ | ||
{ | ||
"-- Getting Started": { | ||
"type": "separator", | ||
"title": "Getting Started" | ||
}, | ||
"getting-started": { | ||
"title": "Getting Started", | ||
"display": "children" | ||
}, | ||
"-- Guides": { | ||
"type": "separator", | ||
"title": "Guides" | ||
}, | ||
"guides": { | ||
"title": "Guides", | ||
"display": "children" | ||
}, | ||
"-- Advanced": { | ||
"type": "separator", | ||
"title": "Advanced" | ||
}, | ||
"advanced": { | ||
"title": "Advanced", | ||
"display": "children" | ||
} | ||
} |
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,11 @@ | ||
{ | ||
"custom-version": { | ||
"title": "Custom Version" | ||
}, | ||
"install-revision": { | ||
"title": "Install Revision" | ||
}, | ||
"release-multiple-channels": { | ||
"title": "Release Multiple Channels" | ||
} | ||
} |
15 changes: 10 additions & 5 deletions
15
website/docs/advanced/custom_version.md → ...documentation/advanced/custom-version.mdx
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 |
---|---|---|
@@ -1,17 +1,22 @@ | ||
--- | ||
id: custom_version | ||
title: Custom Flutter Version | ||
sidebar_position: 0 | ||
--- | ||
|
||
import { Callout } from "nextra/components"; | ||
|
||
# Custom Flutter Version | ||
|
||
You can use custom Flutter versions (forks) within FVM cache. | ||
|
||
FVM will use and run any directory that inside the cache version directory. If there is a version called {custom_name} you are able to do the following. | ||
FVM will use and run any directory that inside the cache version directory. If there is a version called `custom_name` you are able to do the following. | ||
|
||
```bash | ||
fvm use {custom_name} | ||
fvm use [custom_name] | ||
``` | ||
|
||
:::tip | ||
<Callout type="info"> | ||
|
||
Run `fvm list` to view the cache directory, and the current cached versions. | ||
::: | ||
|
||
</Callout> |
Oops, something went wrong.