slate/pages/guide/save.js

99 lines
2.9 KiB
JavaScript
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import * as React from "react";
import * as Constants from "~/common/constants";
import * as SVG from "~/common/svg";
import * as JumperPrototype from "~/components/landing/jumperPrototype";
import Guide from "~/pages/guide/guide.js";
import { css } from "@emotion/react";
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,
},
];
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`}
heading="Always at your fingertips"
body="Save links, take notes, and add tags with keyboard shortcuts to capture things on the fly."
next="file"
prev="browser-control"
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"
/>
);
}