a tool for shared writing and social publishing
at debug/datetime 37 lines 1.4 kB view raw
1import { ThemeProvider } from "components/ThemeManager/ThemeProvider"; 2import { CreatePubForm } from "./CreatePubForm"; 3import { getIdentityData } from "actions/getIdentityData"; 4import LoginForm from "app/login/LoginForm"; 5 6export default async function CreatePub() { 7 let identity = await getIdentityData(); 8 if (!identity) 9 return ( 10 <div className="createPubPage relative w-full h-full flex items-stretch bg-bg-leaflet p-4"> 11 <div className="createPubContent h-full flex items-center max-w-sm w-full mx-auto"> 12 <div className="container w-full p-3 justify-items-center text-center"> 13 <LoginForm 14 text="Log in to create a publication!" 15 noEmail 16 redirectRoute={"/lish/createPub"} 17 /> 18 </div> 19 </div> 20 </div> 21 ); 22 return ( 23 // Eventually this can pull from home theme? 24 <ThemeProvider entityID={null}> 25 <div className="createPubPage relative w-full h-full flex items-stretch bg-bg-leaflet p-4"> 26 <div className="createPubContent h-full flex items-center max-w-sm w-full mx-auto"> 27 <div className="createPubFormWrapper h-fit w-full flex flex-col gap-4"> 28 <h2 className="text-center">Create Your Publication!</h2> 29 <div className="container w-full p-3"> 30 <CreatePubForm /> 31 </div> 32 </div> 33 </div> 34 </div> 35 </ThemeProvider> 36 ); 37}