Skip to content

Commit

Permalink
Fix for CDN images - Readability fixes (#132)
Browse files Browse the repository at this point in the history
Co-authored-by: Francis Thibault <[email protected]>
  • Loading branch information
fraincs and Francis Thibault authored Jan 18, 2024
1 parent 1ce5c85 commit 1158d52
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 6 deletions.
11 changes: 10 additions & 1 deletion apps/docs/app/layout.css
Original file line number Diff line number Diff line change
Expand Up @@ -67,5 +67,14 @@ article ul {
article p a,
article li a {
color: var(--hd-color-accent-text);
text-decoration: underline;
}

article code {
background-color: var(--hd-color-neutral-surface-weak);
border-radius: 0.25rem;
color: var(--hd-color-accent-text);
font-family: var(--hd-mono-font-family);
font-size: 0.8125rem;
padding-block: 0.125rem;
padding-inline: 0.25rem;
}
2 changes: 1 addition & 1 deletion apps/docs/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ export default function Home() {
<div className="hd-wrapper hd-flex">
<main className="hd-home">
<h1 className="hd-display">Welcome to Workleap's <strong className="hd-text--strong">Hopper</strong> Design System.</h1>
<p className="hd-display__subtitle">The documentation is currently in <strong className="hd-text--strong">beta</strong> and only the tokens are available.</p>
<p className="hd-display__subtitle">The documentation is currently in <strong className="hd-text--strong">beta</strong>.</p>
</main>
</div>
);
Expand Down
3 changes: 2 additions & 1 deletion apps/docs/content/icons/getting-started/introduction.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,5 @@ These icons are published into a separate package that is not part of `@hopper-u

Hopper provides multiple ways to use icons in your project:
- [as React components](/icons/react-icons/installation)
- [as static svg files](/icons/svg/installation)
- [as static SVG files](/icons/svg/installation)

2 changes: 1 addition & 1 deletion apps/docs/content/tokens/getting-started/introduction.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ A design token can store any of the following elements:
Hopper aims to provide a three tier token system, where each tier has their specific purpose.

<Card>
<Image src="https://assets.workleap.com/hopper/webdoc/token-details.png" width="654" height="45" alt="Token tiers diagram" />
<Image src="https://cdn.platform.workleap.com/hopper/webdoc/token-details.png" width="654" height="45" alt="Token tiers diagram" />
</Card>

### Core tokens
Expand Down
5 changes: 3 additions & 2 deletions apps/docs/next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,13 @@ const nextConfig = {
pageExtensions: ["ts", "tsx", "js", "jsx", "md", "mdx"],
transpilePackages: ["@hopper-ui"],
images: {
unoptimized: true,
remotePatterns: [
{
protocol: "https",
hostname: "assets.workleap.com",
hostname: "cdn.platform.workleap.com",
port: "",
pathname: "/hopper/**"
pathname: "/hopper/**/*"
}
]
},
Expand Down

0 comments on commit 1158d52

Please sign in to comment.