Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions astro/src/content/navigation/escape-social-media.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"name": "Escape Room Social Media",
"fullName": "Escape Room Social Media",
"groups": [
[{
"name": "Facebook",
"href": "https://www.facebook.com/AccessibleEscapeRoom/",
"external": true,
"icon": "bi:facebook",
"iconCls": "bi bi-facebook"
}, {
"name": "LinkedIn",
"href": "https://in.linkedin.com/showcase/accessible-escape-room/",
"icon": "bi:linkedin",
"iconCls": "bi bi-linkedin"
}]
]
}
77 changes: 62 additions & 15 deletions astro/src/layouts/EscapeRoomLayout.astro
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
---
import "../styles/bootstrap.scss";
import { getEntry } from "astro:content";

import Metadata from "../components/Metadata.astro";
import Branding from "../components/Branding.astro";
import Column from "../components/Column.astro";
import FooterLinkList from "../components/navigation/FooterLinkList.astro";
import HeaderER from "../components/HeaderER.astro";
import { Icon } from "astro-icon/components";
import Row from "../components/Row.astro";
import { type PageMetadata } from "../lib/types";

Expand All @@ -25,6 +29,9 @@ interface Props {
}

const { metadata, title } = Astro.props;

const socialEntry = await getEntry("navigation", "escape-social-media");
const Socials = socialEntry?.data.groups[0];
---

<!doctype html>
Expand Down Expand Up @@ -61,14 +68,14 @@ const { metadata, title } = Astro.props;
<footer class="escape-room-footer">
<div class="container">
<Row g="4">
<div class="col-md-4">
<h3 class="h5">About Accessible Community</h3>
<Column noDefault lg="4">
<h3 class="h5">About Us</h3>
<p>
We help organizations make their digital content accessible to
people with disabilities.
</p>
</div>
<div class="col-md-4">
</Column>
<Column noDefault lg="4">
<h3 class="h5">Quick Links</h3>
<ul class="list-unstyled">
{
Expand All @@ -77,8 +84,8 @@ const { metadata, title } = Astro.props;
))
}
</ul>
</div>
<div class="col-md-4">
</Column>
<Column noDefault lg="4">
<h3 class="h5">Contact Us</h3>
<p>
Have questions about our services?<br />
Expand All @@ -87,15 +94,45 @@ const { metadata, title } = Astro.props;
>info@accessiblecommunity.org</a
>
</p>
</div>
</Column>
</Row>
<Row>
<h3 class="visually-hidden">Social Media</h3>
<ul class="text-center mt-3 mt-md-4">
{
Socials?.map(({ icon, href, iconCls, name }) => (
<li class="d-inline-block ms-2 me-3">
<a
class="d-inline-block link-light"
href={href}
target="_blank"
rel="noopener noreferrer"
>
<Icon
name={icon}
class:list={["social-icon", iconCls]}
role="img"
aria-label={name}
/>
</a>
</li>
))
}
</ul>
</Row>
<hr aria-hidden="true"/>
<div class="text-center">
<div class="text-center legal-footer">
<p class="pt-2 text-center mb-0 text-light">
<small>
<Branding>Accessible Community</Branding> is a 501(c)3&nbsp;organization.
</small>
</p>
<p class="mb-0">
&copy; {new Date().getFullYear()}
<Branding>Accessible Community</Branding>. All rights reserved.
<small>&copy; {new Date().getFullYear()}
<Branding>Accessible Community</Branding>
</small>
</p>
</div>
<p class="text-center mb-0 text-light">
</div>
</footer>
<script src="../scripts/headings.js"></script>
Expand All @@ -118,7 +155,7 @@ const { metadata, title } = Astro.props;
.escape-room-footer {
background: linear-gradient(135deg, #2c3e50 0%, var(--bs-black) 100%);
color: white;
padding: 4rem 0 2rem;
padding: 1.5rem 0 2rem;
}

.escape-room-footer h3 {
Expand All @@ -144,20 +181,30 @@ const { metadata, title } = Astro.props;
margin: 2rem 0;
}

.social-icon {
min-height: 24px;
min-width: 24px;
}

.legal-footer {
border-top: 1px solid #dfe1ed;
margin: 0 1.5em;
}

/* Mobile Responsiveness */
@media (max-width: 991.98px) {
.escape-room-footer {
padding: 3rem 0 1.5rem;
margin-top: 3rem;
}

.escape-room-footer .col-md-4 {
/* .escape-room-footer .footer-column {
margin-bottom: 2rem;
}

.escape-room-footer .col-md-4:last-child {
.escape-room-footer .footer-column:last-child {
margin-bottom: 0;
}
} */
}
</style>

Loading