|
1 | 1 | ---
|
2 |
| -import Layout from '../layouts/Layout.astro'; |
3 |
| -import Container from '../components/Container.astro'; |
4 |
| -import { Image } from 'astro:assets'; |
5 |
| -import leftArrow from '../assets/arrow-left.svg'; |
| 2 | +import Layout from "../layouts/Layout.astro"; |
| 3 | +import Container from "../components/Container.astro"; |
| 4 | +import { Image } from "astro:assets"; |
| 5 | +import leftArrow from "../assets/arrow-left.svg"; |
6 | 6 | import EditionCrafter from "@cu-mkp/editioncrafter";
|
7 |
| -import Button from '../components/Button.astro'; |
| 7 | +import Button from "../components/Button.astro"; |
8 | 8 |
|
9 | 9 | export interface Props {
|
10 |
| - title: string, |
11 |
| - documentName: string, |
12 |
| - transcriptionTypes?: any, |
13 |
| - iiifManifest?: string, |
14 |
| - glossaryURL?: string, |
15 |
| - documentInfo?: any, |
16 |
| - threePanel?: boolean, |
17 |
| - blurb?: string[], |
18 |
| - url?: string |
| 10 | + title: string; |
| 11 | + documentName: string; |
| 12 | + transcriptionTypes?: any; |
| 13 | + iiifManifest?: string; |
| 14 | + glossaryURL?: string; |
| 15 | + documentInfo?: any; |
| 16 | + threePanel?: boolean; |
| 17 | + blurb?: string[]; |
| 18 | + url?: string; |
19 | 19 | }
|
20 | 20 |
|
21 |
| -const { title, documentName, transcriptionTypes, iiifManifest, documentInfo, threePanel, glossaryURL, blurb, url } = Astro.props; |
22 |
| -
|
| 21 | +const { |
| 22 | + title, |
| 23 | + documentName, |
| 24 | + transcriptionTypes, |
| 25 | + iiifManifest, |
| 26 | + documentInfo, |
| 27 | + threePanel, |
| 28 | + glossaryURL, |
| 29 | + blurb, |
| 30 | + url, |
| 31 | +} = Astro.props; |
23 | 32 | ---
|
24 | 33 |
|
25 | 34 | <Layout title={title} transitions={false}>
|
26 |
| - <div class="bg-neutral w-full"> |
27 |
| - <Container className="flex flex-row gap-16 items-center"> |
28 |
| - <a href="/editioncrafter"> |
29 |
| - <div class="border-neutral-dark border-2 rounded-full p-4 hover:scale-105"> |
30 |
| - <Image src={leftArrow} alt="Go Back" /> |
31 |
| - </div> |
32 |
| - </a> |
33 |
| - <h1 class="font-serif text-5xl py-16"> |
34 |
| - { title } |
35 |
| - </h1> |
| 35 | + <div class="bg-neutral w-full"> |
| 36 | + <Container className="flex flex-row gap-16 items-center"> |
| 37 | + <a href="/editioncrafter"> |
| 38 | + <div |
| 39 | + class="border-neutral-dark border-2 rounded-full p-4 hover:scale-105" |
| 40 | + > |
| 41 | + <Image src={leftArrow} alt="Go Back" /> |
| 42 | + </div> |
| 43 | + </a> |
| 44 | + <h1 class="font-serif text-5xl py-16"> |
| 45 | + {title} |
| 46 | + </h1> |
| 47 | + </Container> |
| 48 | + </div> |
| 49 | + <div class="w-full bg-white"> |
| 50 | + { |
| 51 | + (blurb && blurb.length) || url ? ( |
| 52 | + <Container className="flex flex-col gap-8 py-12"> |
| 53 | + {blurb && |
| 54 | + blurb.length && |
| 55 | + blurb.map((para) => <p class="leading-loose font-light">{para}</p>)} |
| 56 | + {url && <Button href={url}>Learn More</Button>} |
36 | 57 | </Container>
|
37 |
| - </div> |
38 |
| - <div class="w-full h-[80dvh] bg-white"> |
39 |
| - { |
40 |
| - (blurb && blurb.length || url) ? ( |
41 |
| - <Container className="flex flex-col gap-8 py-12"> |
42 |
| - { |
43 |
| - blurb && blurb.length && blurb.map((para) => |
44 |
| - <p class="leading-loose font-light">{ para }</p> |
45 |
| - ) |
46 |
| - } |
47 |
| - { |
48 |
| - url && <Button href={url}> |
49 |
| - Learn More |
50 |
| - </Button> |
51 |
| - } |
52 |
| - </Container> |
53 |
| - ) : null |
54 |
| - } |
55 |
| - { |
56 |
| - documentInfo ? ( |
57 |
| - <EditionCrafter |
58 |
| - documentInfo={documentInfo} |
59 |
| - documentName={documentName} |
60 |
| - glossaryURL={glossaryURL} |
61 |
| - threePanel={threePanel} |
62 |
| - client:only |
63 |
| - transition:persist |
64 |
| - /> |
65 |
| - ) : ( |
66 |
| - <EditionCrafter |
67 |
| - documentName={documentName} |
68 |
| - transcriptionTypes={transcriptionTypes} |
69 |
| - iiifManifest={iiifManifest} |
70 |
| - glossaryURL={glossaryURL} |
71 |
| - threePanel={threePanel} |
72 |
| - client:only |
73 |
| - transition:persist |
74 |
| - /> |
75 |
| - ) |
76 |
| - } |
77 |
| - </div> |
| 58 | + ) : null |
| 59 | + } |
| 60 | + { |
| 61 | + documentInfo ? ( |
| 62 | + <EditionCrafter |
| 63 | + documentInfo={documentInfo} |
| 64 | + documentName={documentName} |
| 65 | + glossaryURL={glossaryURL} |
| 66 | + threePanel={threePanel} |
| 67 | + client:only |
| 68 | + transition:persist |
| 69 | + /> |
| 70 | + ) : ( |
| 71 | + <EditionCrafter |
| 72 | + documentName={documentName} |
| 73 | + transcriptionTypes={transcriptionTypes} |
| 74 | + iiifManifest={iiifManifest} |
| 75 | + glossaryURL={glossaryURL} |
| 76 | + threePanel={threePanel} |
| 77 | + client:only |
| 78 | + transition:persist |
| 79 | + /> |
| 80 | + ) |
| 81 | + } |
| 82 | + </div> |
78 | 83 | </Layout>
|
0 commit comments