forked from mfts/papermark
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathentrance_ppreview_demo.tsx
121 lines (113 loc) · 4.15 KB
/
entrance_ppreview_demo.tsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
import { useRouter } from "next/router";
import { ChevronLeftIcon, ChevronRightIcon } from "lucide-react";
import { Button } from "@/components/ui/button";
import { determineTextColor } from "@/lib/utils/determine-text-color";
export default function ViewPage() {
const router = useRouter();
const { brandLogo, brandColor, accentColor } = router.query as {
brandLogo: string;
brandColor: string;
accentColor: string;
};
return (
<>
<div className="bg-gray-950" style={{ backgroundColor: accentColor }}>
{/* <nav
className="bg-black"
style={{
backgroundColor: brandColor,
}}
> */}
<div className="mx-auto px-2 sm:px-6 lg:px-8">
<div className="relative flex h-16 items-center justify-between">
<div className="mt-20 flex flex-1 items-stretch justify-center">
{/* <div className="relative flex h-8 w-36 flex-shrink-0 items-center">
{brandLogo ? (
<img className="object-contain" src={brandLogo} alt="Logo" />
) : (
<div
className="text-2xl font-bold tracking-tighter text-white"
style={{
color: accentColor
? determineTextColor(accentColor)
: "white",
}}
>
Papermark
</div>
)}
</div> */}
</div>
</div>
<div className="sm:mx-auto sm:w-full sm:max-w-md">
<h1
className="mt-16 text-2xl font-bold leading-9 tracking-tight text-white"
style={{
color: accentColor ? determineTextColor(accentColor) : "white",
}}
>
Your action is requested to continue
</h1>
</div>
<div className="mt-10 sm:mx-auto sm:w-full sm:max-w-md">
<form className="space-y-4">
<div className="pb-5">
<div className="relative space-y-2 rounded-md shadow-sm">
<label
htmlFor="email"
className="block text-sm font-medium leading-6 text-white"
style={{
color: accentColor
? determineTextColor(accentColor)
: "white",
}}
>
Email address
</label>
<input
name="email"
id="email"
type="email"
autoCorrect="off"
autoComplete="email"
autoFocus
className="flex w-full rounded-md border-0 bg-black py-1.5 text-white shadow-sm ring-1 ring-inset ring-gray-600 placeholder:text-gray-400 focus:ring-2 focus:ring-inset focus:ring-gray-300 sm:text-sm sm:leading-6"
style={{ backgroundColor: accentColor }}
placeholder="Enter email"
aria-invalid="true"
data-1p-ignore
/>
<p className="text-sm text-gray-500">
This data will be shared with the sender.
</p>
</div>
</div>
<div className="flex justify-center">
<Button
type="submit"
className="w-1/3 min-w-fit bg-white text-gray-950 hover:bg-white/90"
>
Continue
</Button>
</div>
</form>
</div>
</div>
{/* </nav> */}
{/* Body */}
<div
style={{ height: "calc(100vh - 64px)" }}
className="relative flex items-center"
>
<div className="relative mx-auto flex h-full w-full justify-center">
{/* <img
className="mx-auto block object-contain"
src={"/_example/papermark-example-entrance.png"}
alt={`Demo Page 1`}
/> */}
</div>
</div>
</div>
</>
);
}