slate/pages/guide/browser-control.js

89 lines
2.8 KiB
JavaScript
Raw Normal View History

2022-06-21 00:42:34 +03:00
import * as React from "react";
import * as Constants from "~/common/constants";
import * as JumperPrototype from "~/components/landing/jumperPrototype";
import * as SVG from "~/common/svg";
import Guide from "~/pages/guide/guide.js";
import { css } from "@emotion/react";
2022-07-08 22:27:36 +03:00
const VIEWS_ACTIONS = [{ label: "Current Window" }, { label: "All Open" }, { label: "Recent" }];
2022-06-21 00:42:34 +03:00
const OBJECTS = [
{
title: "Concrete Architecture (@architeg) / Twitter",
Favicon: SVG.TwitterFavicon,
},
{
2022-07-08 22:27:36 +03:00
title: "Fitzcarraldo 1982 Werner Herzog Klaus Kinski Full Movie HD",
Favicon: SVG.YoutubeFavicon,
2022-06-21 00:42:34 +03:00
},
{
2022-07-08 22:27:36 +03:00
title: "Amazon.com: Whole Foods Market",
Favicon: SVG.AmazonFavicon,
2022-06-21 00:42:34 +03:00
},
{
2022-07-08 22:27:36 +03:00
title: "NASA Is Working With Startups to Harvest the Moons Resources",
Favicon: SVG.WSJFavicon,
2022-06-21 00:42:34 +03:00
},
{
2022-07-08 22:27:36 +03:00
title: "SyntheticEvent - React",
Favicon: SVG.ReactFavicon,
2022-06-21 00:42:34 +03:00
},
{
2022-07-08 22:27:36 +03:00
title: "slate-engineering/slate-web-extension at @aminejv/history",
Favicon: SVG.GithubFavicon,
2022-06-21 00:42:34 +03:00
},
{
2022-07-08 22:27:36 +03:00
title: "Verticle ⋅ Mount Kimbie",
Favicon: SVG.SpotifyFavicon,
2022-06-21 00:42:34 +03:00
},
{
2022-07-08 22:27:36 +03:00
title: "tokyo travel restrictions 2022 - Google Search",
Favicon: SVG.GoogleFavicon,
2022-06-21 00:42:34 +03:00
},
];
export default function BrowserControlGuidePage() {
return (
<Guide
title="Browser Control Guide - Slate"
description="Your personal search engine"
url="https://slate.host/guide/browser-control"
image="https://slate.textile.io/ipfs/bafkreifww37ypduoi5pvj2cuikz7iycp7l5h7czke6lcboukkaqkoab3t4"
2022-07-08 22:27:36 +03:00
heading="Built for your browser"
body="Our Chrome extension gives you seamless control of your tabs with powerful tools to help you manage and keep track of things."
2022-06-21 00:42:34 +03:00
next="save"
prev="../"
jumper={
2022-07-08 22:27:36 +03:00
<React.Fragment>
2022-06-21 00:42:34 +03:00
<JumperPrototype.TopPanel>
2022-07-08 22:27:36 +03:00
{VIEWS_ACTIONS.map((action, i) => (
<JumperPrototype.ViewAction isSelected={i === 0} key={action.label}>
2022-06-21 00:42:34 +03:00
{action.label}
</JumperPrototype.ViewAction>
))}
<JumperPrototype.ViewAddButton style={{ marginLeft: "auto" }} />
</JumperPrototype.TopPanel>
2022-07-08 22:27:36 +03:00
<JumperPrototype.Root style={{ marginTop: 16, boxShadow: "none", opacity: 0.5 }}>
2022-06-21 00:42:34 +03:00
<JumperPrototype.Header />
<JumperPrototype.Divider />
<JumperPrototype.Body>
{OBJECTS.map((object) => (
<JumperPrototype.Object
key={object.title}
title={object.title}
Favicon={object.Favicon}
isSelected={object.isSelected}
isSaved={object.isSaved}
/>
))}
</JumperPrototype.Body>
</JumperPrototype.Root>
2022-07-08 22:27:36 +03:00
</React.Fragment>
2022-06-21 00:42:34 +03:00
}
2022-07-08 22:27:36 +03:00
mobileguide="../public/static/browser-control.png"
2022-06-21 00:42:34 +03:00
/>
);
}