Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a holiday animation example #2681

Merged
merged 2 commits into from
Dec 19, 2023
Merged
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
130 changes: 130 additions & 0 deletions docs/src/content/gallery/happy-holidays.md

Large diffs are not rendered by default.

31 changes: 28 additions & 3 deletions docs/src/pages/gallery-item-template.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,38 @@ import createPath from "../helpers/path-helpers";

const GalleryTemplate = ({ galleryItem }) => {
const { content, data } = galleryItem;
const { title, scope } = data;
const { description, image, title, scope } = data;

const metaTitle = `${config.siteTitle} | ${title}`;

return (
<Page>
<Helmet>
<title>{`${config.siteTitle} | ${title}`}</title>
<meta name="description" content={config.siteDescription} />
<title>{metaTitle}</title>
<meta
name="description"
content={description || config.siteDescription}
/>

<meta property="og:type" content="website" />
<meta property="og:title" content={metaTitle} />
<meta
property="og:description"
content={description || config.siteDescription}
/>
{image && (
<meta property="og:image" content={image} />
)}

<meta name="twitter:title" content={metaTitle} />
<meta
name="twitter:description"
content={description || config.siteDescription}
/>
<meta name="twitter:card" content="summary_large_image" />
{image && (
<meta name="twitter:image" content={image} />
)}
</Helmet>
<Link to={createPath("gallery")}>Back to Gallery</Link>
<h1>{title}</h1>
Expand Down
1 change: 1 addition & 0 deletions docs/src/pages/gallery.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ const StyledLazyRender = styled(LazyRender)`
box-shadow: -1.2rem 1.2rem 0px 0px ${({ theme }) => theme.color.brown};
border: 6px solid ${({ theme }) => theme.color.accentBrown};
padding: 2rem;
overflow: hidden;

@media ${({ theme }) => theme.mediaQuery.md} {
height: 300px;
Expand Down