aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/contact.svelte
blob: c7b0be39117235a0fe42e2d0514d2b64ee1ddfe9 (plain) (blame)
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
<script lang="ts">
	export let address1: string;
	export let address2: string;
	export let address3: string;
	export let email: string;
	export let phone: string;
	export let phoneHours: string;
</script>

<section class="contact relative z-1">
	<div class="w-[calc(100%_-_2.5rem)] lg:w-[calc(100%_-_4rem)] mx-auto max-w-7xl">
		<div class="mb-8 lg:mb-12">
			<h1 class="text-center">Contact Us</h1>
		</div>

		<div class="grid grid-cols-12 gap-8 lg:gap-12">
			<div class="col-span-12 lg:col-span-6">
				<dl class="details-list details-list--rows">
					<div class="details-list__item py-5 lg:py-8 lg:flex lg:justify-between">
						<dt class="font-bold mb-1.5 lg:mb-2 lg:mb-0">Address</dt>
						<dd class="leading-snug lg:text-right">
							{address1}<br />{address2}<br />{address3}
						</dd>
					</div>

					<div class="details-list__item py-5 lg:py-8 lg:flex lg:justify-between">
						<dt class="font-bold mb-1.5 lg:mb-2 lg:mb-0">Email</dt>
						<dd>
							<a href="mailto:webmaster@example.com">{email}</a>
						</dd>
					</div>

					<div class="details-list__item py-5 lg:py-8 lg:flex lg:justify-between">
						<dt class="font-bold mb-1.5 lg:mb-2 lg:mb-0">Phone</dt>
						<dd class="leading-snug lg:text-right">
							<p><a href="tel:+44 7656 6455">{phone}</a></p>
							<p class="text-contrast-medium">{phoneHours}</p>
						</dd>
					</div>
				</dl>
			</div>

			<div class="rounded col-span-12 lg:col-span-6 lg:h-auto lg:pb-0" />
		</div>
	</div>
</section>