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

added a page to test if cdn configs work #114

Merged
merged 1 commit into from
Dec 8, 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
11 changes: 10 additions & 1 deletion apps/docs/app/playground/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,22 @@ export default function PlaygroundPage() {
return (
<main>
<Title level={1}>Playground Links</Title>
<ul style={{ listStyle: "none", display: "flex", flexDirection: "column", gap: "0.75rem", marginBlock: "2rem" }}>
<ul style={{
listStyle: "none",
display: "flex",
flexDirection: "column",
gap: "0.75rem",
marginBlock: "2rem"
}}>
<li>
<Link href="/playground/codeblock">Codeblock →</Link>
</li>
<li>
<Link href="/playground/headings-link">Heading link →</Link>
</li>
<li>
<Link href="/playground/typography">Typography →</Link>
</li>
</ul>
</main>
);
Expand Down
20 changes: 20 additions & 0 deletions apps/docs/app/playground/typography/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
"use client";

import "./typo.css";

export default function CodeBlockPage() {
return <main data-font="cdn" className="hd-wrapper">
<h1>Building the future with Hopper: Our Design System</h1>
<h2>Building the future with Hopper: Our Design System</h2>
<h3>Building the future with Hopper: Our Design System</h3>
<h4>Building the future with Hopper: Our Design System</h4>
<h5>Building the future with Hopper: Our Design System</h5>
<p>
Hopper, our Design System, is the cornerstone of our development approach. Designed to deliver a seamless
and efficient user experience, Hopper provides a comprehensive library of consistent components, icons and
styles. By integrating Hopper into our projects, we are committed to maintaining a unified visual design,
optimal accessibility and uncompromising scalability. Building with Hopper means building with consistency,
simplicity and excellence.
</p>
</main>;
}
17 changes: 17 additions & 0 deletions apps/docs/app/playground/typography/typo.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
@font-face {
font-family: "ABC Favorit";
font-style: normal;
font-weight: 410;
src: url("https://assets.workleap-dev.com/hopper/fonts/ABCFavorit-Regular.otf") format("opentype");
font-display: fallback;
}


[data-font="cdn"] {
font-family: "ABC Favorit", sans-serif;
font-weight: 410;
font-style: normal;
color: #1c1b1b;
line-height: 1.5;
}