"use client";
import { PubListEmptyIllo } from "components/ActionBar/Publications";
import { ButtonPrimary } from "components/Buttons";
import { AddSmall } from "components/Icons/AddSmall";
import { Link } from "react-aria-components";
import { DiscoverIllo } from "./DiscoverIllo";
import { WelcomeToLeafletIllo } from "./WelcomeToLeafletIllo";
import { DiscoverSmall } from "components/Icons/DiscoverSmall";
import { PublishSmall } from "components/Icons/PublishSmall";
import { createNewLeaflet } from "actions/createNewLeaflet";
import { useIsMobile } from "src/hooks/isMobile";
export function HomeEmptyState() {
let isMobile = useIsMobile();
return (
Leaflet
{/*
A platform for social publishing.
*/}
Write and share delightful documents!
{
let openNewLeaflet = (id: string) => {
if (isMobile) {
window.location.href = `/${id}?focusFirstBlock`;
} else {
window.open(`/${id}?focusFirstBlock`, "_blank");
}
};
let id = await createNewLeaflet({
pageType: "doc",
redirectUser: false,
});
openNewLeaflet(id);
}}
>
Write a Doc!
Right now docs and publications are separate. Soon you'll be able to add
docs to pubs!
);
}
export const PublicationBanner = (props: { small?: boolean }) => {
return (
{props.small ? (
) : (
)}
Start a Publication
{" "}
and blog in the Atmosphere
);
};
export const DiscoverBanner = (props: { small?: boolean }) => {
return (
{props.small ? (
) : (
)}
Explore Publications
{" "}
on art, tech, games, music & more!
);
};