From d09d2f21138d7efe5401af16bdadd3b1f471293d Mon Sep 17 00:00:00 2001 From: Erik Vroon Date: Sat, 10 Feb 2024 18:07:20 +0100 Subject: [PATCH] Add demo to docs (#456) --- README.md | 4 +++ docs/src/components/HeroTitle/index.js | 42 ++++++++++++++++------- docs/src/components/feature_cards.js | 5 ++- docs/src/pages/index.js | 47 ++++++++++++++++++++++++++ docs/src/pages/index.module.css | 29 +++++++++++++++- 5 files changed, 110 insertions(+), 17 deletions(-) diff --git a/README.md b/README.md index c9d7ada6..c44cbf3c 100644 --- a/README.md +++ b/README.md @@ -7,6 +7,7 @@ [![last commit](https://img.shields.io/github/last-commit/evroon/bracket)](https://img.shields.io/github/last-commit/evroon/bracket) [![release](https://img.shields.io/github/v/release/evroon/bracket)](https://img.shields.io/github/v/release/evroon/bracket)
+[Demo](https://www.bracketapp.nl/demo) | [Documentation](https://docs.bracketapp.nl) | [Quickstart](https://docs.bracketapp.nl/docs/running-bracket/quickstart) | [GitHub](https://github.com/evroon/bracket) | @@ -32,6 +33,9 @@ It has the following features: ### Preview +# Live Demo +A demo is available for free at . The demo lasts for 30 minutes, after which +your data will de deleted. # Quickstart To quickly run bracket to see how it works, clone it and run `docker-compose up`: diff --git a/docs/src/components/HeroTitle/index.js b/docs/src/components/HeroTitle/index.js index d1c18fc1..830d0790 100644 --- a/docs/src/components/HeroTitle/index.js +++ b/docs/src/components/HeroTitle/index.js @@ -1,7 +1,18 @@ -import { Container, Text, Button, Group } from "@mantine/core"; +import { Container, Text, Button, Group, Center } from "@mantine/core"; import { GithubIcon } from "@mantinex/dev-icons"; import classes from "./styles.module.css"; import React from "react"; +import { + IconBracketsContainStart, + IconLibrary, + IconLivePhoto, + IconLiveView, + IconPlayCard, + IconPlayerPlay, + IconRocket, + IconRun, + IconStar, +} from "@tabler/icons-react"; export function HeroTitle() { return ( @@ -31,22 +42,27 @@ export function HeroTitle() { className={classes.control} variant="gradient" gradient={{ from: "indigo", to: "#674ad6" }} + onClick={() => { + open("https://www.bracketapp.nl/demo", "_self"); + }} + > +
+ + Demo +
+ + - - diff --git a/docs/src/components/feature_cards.js b/docs/src/components/feature_cards.js index c8710f98..c06a6fe3 100644 --- a/docs/src/components/feature_cards.js +++ b/docs/src/components/feature_cards.js @@ -15,7 +15,7 @@ import { import classes from "../pages/index.module.css"; import React from "react"; -const mockdata = [ +const cardData = [ { title: "Open-source and free", description: @@ -45,8 +45,7 @@ const mockdata = [ ]; export default function FeaturesCards() { - const theme = useMantineTheme(); - const features = mockdata.map((feature) => ( + const features = cardData.map((feature) => ( + { + open("https://github.com/evroon/bracket"); + }} + > +
+ + + + + GitHub + +
+ + Go to the GitHub repository to star or fork Bracket, create issues/PRs + or start discussions. + +
+ + ); +} + export default function Home() { return ( @@ -36,10 +78,15 @@ export default function Home() { /> + + + Features + + Screenshots diff --git a/docs/src/pages/index.module.css b/docs/src/pages/index.module.css index 1d6e4080..0c1ee276 100644 --- a/docs/src/pages/index.module.css +++ b/docs/src/pages/index.module.css @@ -41,4 +41,31 @@ height: rem(2px); margin-top: var(--mantine-spacing-sm); } -} \ No newline at end of file +} + +.social_card { + position: relative; + cursor: pointer; + overflow: hidden; + transition: + transform 150ms ease, + box-shadow 100ms ease; + padding: var(--mantine-spacing-xl); + padding-left: calc(var(--mantine-spacing-xl) * 1); + margin-bottom: 1rem; + background-color: #000; + + @mixin hover { + box-shadow: var(--mantine-shadow-md); + transform: scale(1.02); + } + + &::before { + content: ''; + position: absolute; + top: 0; + bottom: 0; + left: 0; + width: rem(6px); + } +}