Skip to content

Commit a19ffa0

Browse files
refactor: use flexbox instead of margin spacing
1 parent 6d8dea9 commit a19ffa0

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/index.html

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!DOCTYPE html>
2-
<html lang="en">
2+
<html lang="en" class="min-h-dvh">
33
<head>
44
<meta charset="UTF-8">
55
<meta name="viewport" content="width=device-width, initial-scale=1.0">
@@ -23,20 +23,20 @@
2323
</script>
2424
</head>
2525

26-
<body>
27-
<main class="max-w-2xl mx-auto mt-52 md:flex place-items-center">
28-
<h1 class="flex-1 text-xl md:pe-12 mb-10">
26+
<body class="min-h-dvh flex flex-col gap-10 justify-center p-4">
27+
<main class="w-full max-w-2xl mx-auto flex flex-col md:flex-row md:flex-1 justify-center md:justify-normal md:items-center md:mb-[max(1rem,5%)]">
28+
<h1 class="md:flex-1 text-xl md:pe-12 mb-10">
2929
<img class="m-auto" src="https://kbckcstorage.blob.core.windows.net/photos/kbc-logo-black-on-transparent.png" alt="Koinonia Bible Church" width="264">
3030
</h1>
31-
<nav class="flex-1 md:border-l md:ps-12 mx-4 md:mx-0 text-center text-lg flex flex-col gap-4">
31+
<nav class="md:flex-1 md:border-l md:ps-12 mx-4 md:mx-0 text-center text-lg flex flex-col gap-4">
3232
<a class="text-white font-semibold rounded-3xl py-1 bg-gradient-to-r from-pco-topaz to-pco-emerald" href="https://kbckc.churchcenter.com/">Home</a>
3333
<a class="text-white font-semibold rounded-3xl py-1 bg-gradient-to-r from-pco-topaz to-pco-emerald" href="https://kbckc.churchcenter.com/directory">Directory</a>
3434
<a class="text-white font-semibold rounded-3xl py-1 bg-gradient-to-r from-pco-topaz to-pco-emerald" href="https://kbckc.churchcenter.com/calendar">Calendar</a>
3535
<a class="text-white font-semibold rounded-3xl py-1 bg-gradient-to-r from-pco-topaz to-pco-emerald" href="https://kbckc.churchcenter.com/login">Log In</a>
3636
</nav>
3737
</main>
3838
<footer>
39-
<address class="text-center md:hidden mt-10">
39+
<address class="text-center md:hidden">
4040
<p>Koinonia Bible Church</p>
4141
<p>7020 Richmond Ave</p>
4242
<p>Kansas City, MO 64133</p>

0 commit comments

Comments
 (0)