slate/pages/guide/save.js

99 lines
2.9 KiB
JavaScript
Raw Permalink Normal View History

2022-06-16 20:58:21 +03:00
import * as React from "react";
import * as Constants from "~/common/constants";
2022-07-08 22:27:36 +03:00
import * as SVG from "~/common/svg";
import * as JumperPrototype from "~/components/landing/jumperPrototype";
2022-06-16 20:58:21 +03:00
2022-06-21 00:42:34 +03:00
import Guide from "~/pages/guide/guide.js";
2022-06-16 20:58:21 +03:00
import { css } from "@emotion/react";
2022-07-08 22:27:36 +03:00
const VIEWS_ACTIONS = [{ label: "Current Window" }, { label: "All Open" }, { label: "Recent" }];
const OBJECTS = [
{
title: "Concrete Architecture (@architeg) / Twitter",
Favicon: SVG.TwitterFavicon,
isSaved: true,
tag: "architecture",
},
{
title: "Fitzcarraldo 1982 Werner Herzog Klaus Kinski Full Movie HD",
Favicon: SVG.YoutubeFavicon,
isSelected: true,
},
{
title: "Amazon.com: Whole Foods Market",
Favicon: SVG.AmazonFavicon,
},
{
title: "NASA Is Working With Startups to Harvest the Moons Resources",
Favicon: SVG.WSJFavicon,
},
{
title: "SyntheticEvent - React",
Favicon: SVG.ReactFavicon,
isSaved: true,
tag: "code",
},
{
title: "slate-engineering/slate-web-extension at @aminejv/history",
Favicon: SVG.GithubFavicon,
isSaved: true,
tag: "slate",
},
{
title: "Verticle ⋅ Mount Kimbie",
Favicon: SVG.SpotifyFavicon,
isSaved: true,
tag: "work-music",
},
{
title: "tokyo travel restrictions 2022 - Google Search",
Favicon: SVG.GoogleFavicon,
},
];
2022-06-16 20:58:21 +03:00
export default function SaveGuidePage() {
return (
<Guide
title="Save Guide - Slate"
description="Your personal search engine"
url="https://slate.host/guide/save"
image={`${Constants.gateways.ipfs}/bafkreifww37ypduoi5pvj2cuikz7iycp7l5h7czke6lcboukkaqkoab3t4`}
2022-07-08 22:27:36 +03:00
heading="Always at your fingertips"
body="Save links, take notes, and add tags with keyboard shortcuts to capture things on the fly."
next="file"
2022-06-16 20:58:21 +03:00
prev="browser-control"
2022-07-08 22:27:36 +03:00
jumper={
<div>
<JumperPrototype.TopPanel style={{ boxShadow: "none", opacity: "0.5" }}>
{VIEWS_ACTIONS.map((action, i) => (
<JumperPrototype.ViewAction isSelected={i === 0} key={action.label}>
{action.label}
</JumperPrototype.ViewAction>
))}
<JumperPrototype.ViewAddButton style={{ marginLeft: "auto" }} />
</JumperPrototype.TopPanel>
<JumperPrototype.Root style={{ marginTop: 16 }}>
<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}
tag={object.tag}
/>
))}
</JumperPrototype.Body>
</JumperPrototype.Root>
</div>
}
mobileguide="../public/static/save.png"
2022-06-16 20:58:21 +03:00
/>
);
}