Skip to content
Open
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
19 changes: 19 additions & 0 deletions astro/src/components/PlayerQuote.astro
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
interface Props {
text: string;
}

const { text } = Astro.props;
---

<blockquote class="mb-0 ps-3 py-2">
<p class="mb-0" set:text={text} />
</blockquote>

<style>
blockquote {
flex: 1 1 0;
min-inline-size: 0;
border-inline-start: 2px solid var(--bs-info);
}
</style>
18 changes: 18 additions & 0 deletions astro/src/components/PlayerQuotes.astro
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
---
import FlexColumn from "./FlexColumn.astro";
import PlayerQuote from "./PlayerQuote.astro";
import ThemedSection from "./ThemedSection.astro";

const quotes = [
"The puzzles were no joke! It was a perfect mix of frustrating and fun. I walked away feeling like I learned something, not just about the activity, but about myself.",
"I didn't expect to enjoy it as much as I did. It was genuiniely fun and I loved how much it made us think through problems.",
"I was surprised by how much I relied on my teammates. It reminded me that collaboration is such a huge part of problem-solving in our training and working with others every day.",
];
---

<ThemedSection id="player-quotes">
<h2 class="mb-4 fw-semibold">What people say after playing</h2>
<FlexColumn lgFlexRow gap="4">
{quotes.map(quote => <PlayerQuote text={quote} />)}
</FlexColumn>
</ThemedSection>
34 changes: 0 additions & 34 deletions astro/src/pages/escape-room/how-it-works.astro
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,9 @@ const crumbs: Breadcrumbs = [
},
];

const quotes = [
"The puzzles were no joke! It was a perfect mix of frustrating and fun. I walked away feeling like I learned something, not just about the activity, but about myself.",
"I didn't expect to enjoy it as much as I did. It was genuiniely fun and I loved how much it made us think through problems.",
"I was surprised by how much I relied on my teammates. It reminded me that collaboration is such a huge part of problem-solving in our training and working with others every day.",
]

import Branding from "@components/Branding.astro";
import EscapeRoomLayout from "src/layouts/EscapeRoomLayout.astro";
import Hero from "@components/Hero.astro";
import { Icon } from "astro-icon/components";
import Row from "@components/Row.astro";
import ThemedSection from "@components/ThemedSection.astro";

import heroBg from "src/images/escape-room/shaded/puzzle-display.jpg";
Expand Down Expand Up @@ -55,26 +47,6 @@ import heroBg from "src/images/escape-room/shaded/puzzle-display.jpg";
</p>
</ThemedSection>

<ThemedSection styling="subtle" theme="secondary">
<h2 class="text-center text-info mb-4">Quotes from our Customers</h2>
<Row baseRowCols="1" lgRowCols="3" g="3" class="align-items-stretch align-items-lg-center">
{
quotes.map(q => (
<div class="col">
<div class="card border border-2 border-info">
<div class="card-body">
<p class="card-text">
<sup aria-hidden="true"><Icon name="quote-left" />&nbsp;</sup><span
set:text={q} /><sup aria-hidden="true">&nbsp;<Icon name="quote-right" /></sup>
</p>
</div>
</div>
</div>
))
}
</Row>
</ThemedSection>

<ThemedSection styling="tertiary" id="faq">
<h2 class="text-info">Frequently Asked Questions</h2>
<dl>
Expand Down Expand Up @@ -136,12 +108,6 @@ import heroBg from "src/images/escape-room/shaded/puzzle-display.jpg";
h1 {
font-weight: 500;
}
[data-icon="quote-left"],
[data-icon="quote-right"] {
color: var(--bs-info);
height: 0.7em;
}

dl dd {
padding-inline-start: 1em;
}
Expand Down
2 changes: 2 additions & 0 deletions astro/src/pages/escape-room/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ import FlexColumn from "@components/FlexColumn.astro";
import Row from "@components/Row.astro";
import ThemedSection from "@components/ThemedSection.astro";
import ImageCard from "@components/ImageCard.astro";
import PlayerQuotes from "@components/PlayerQuotes.astro";
// TODO: Once the `peerDependencies are update, use the plugin.
// import { YouTube } from 'astro-lazy-youtube-embed'
import YouTube from "@components/YouTube.astro";
Expand Down Expand Up @@ -157,6 +158,7 @@ import woodenPuzzles from "src/images/escape-room/wooden-puzzles.png";
>.
</p>
</ThemedSection>
<PlayerQuotes />
</EscapeRoomLayout>

<style>
Expand Down
Loading