Skip to content

Commit

Permalink
k
Browse files Browse the repository at this point in the history
  • Loading branch information
holtzy committed Aug 9, 2024
1 parent 5174840 commit ca554bd
Show file tree
Hide file tree
Showing 3 changed files with 113 additions and 95 deletions.
14 changes: 14 additions & 0 deletions next.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,20 @@
const isGithubActions = process.env.GITHUB_ACTIONS || false;

let assetPrefix = '';
let basePath = '';

if (isGithubActions) {
const repo = process.env.GITHUB_REPOSITORY.replace(/.*?\//, '');
assetPrefix = `/${repo}/`;
basePath = `/${repo}`;
}

/** @type {import('next').NextConfig} */
module.exports = {
reactStrictMode: true,
output: 'export',
assetPrefix: assetPrefix,
basePath: basePath,
typescript: {
// !! WARN !!
// Dangerously allow production builds to successfully complete even if
Expand Down
6 changes: 5 additions & 1 deletion pages/what-is-a-color.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,11 @@ export default function Post() {
<p>That's the famous color wheel you see in every color picker!</p>
<br />
<div className="flex flex-col items-center">
<img src="/img/color-picked-me.png" style={{ maxWidth: 400 }} />
<img
src="/img/color-picked-me.png"
alt="overview of color picker.me"
style={{ maxWidth: 400 }}
/>
<Caption>
On <a href="https://colorpicker.me">colorpicker.me</a> you can define
a color using its hue (vertical bar), its saturation (x axis of the
Expand Down
Loading

0 comments on commit ca554bd

Please sign in to comment.