Skip to content

Commit a40ce28

Browse files
Feat/#965 add homepage (#16)
1 parent 5cd9f74 commit a40ce28

18 files changed

+1962
-593
lines changed

.env

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@
44
#
55
#
66

7-
NEXT_PUBLIC_TEST=RDPC
7+
NEXT_PUBLIC_ARGO_DOCS_URL_ROOT=https://docs.icgc-argo.org

README.md

+13
Original file line numberDiff line numberDiff line change
@@ -36,3 +36,16 @@ To learn more about Next.js, take a look at the following resources:
3636
- [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial.
3737

3838
You can check out [the Next.js GitHub repository](https://github.com/vercel/next.js/) - your feedback and contributions are welcome!
39+
40+
## Uikit & Styling
41+
42+
In using UIKit we are tied to using a CSS-in-JS paradigm of styling.
43+
Please prefer usage of the `css` prop and functions over the `styled` method.
44+
45+
- it's easier to debug (less wrapping in the browser inspectors)
46+
- typechecking css property values is possible
47+
48+
In an attempt to try and keep things clean and bug free, Emotion functions are used directly from UIKit.
49+
@emotion/react is only installed as a dependency in this project for types.
50+
51+
react + react dom + emotion all versions needs to be in sync with @icgc-argo/uikit

global.d.ts

+10-5
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,14 @@
1+
import { ARGOThemeType } from '@icgc-argo/uikit';
2+
13
declare global {
2-
namespace NodeJS {
3-
interface ProcessEnv {
4-
NEXT_PUBLIC_TEST: string;
5-
}
6-
}
4+
namespace NodeJS {
5+
interface ProcessEnv {
6+
NEXT_PUBLIC_TEST: string;
7+
}
8+
}
9+
}
10+
declare module '@icgc-argo/uikit' {
11+
interface ARGOTheme {}
712
}
813

914
export {};

next.config.js

+7-1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,12 @@
1818
*/
1919

2020
/** @type {import('next').NextConfig} */
21-
const nextConfig = {};
21+
22+
const nextConfig = {
23+
reactStrictMode: true,
24+
compiler: {
25+
emotion: true,
26+
},
27+
};
2228

2329
module.exports = nextConfig;

0 commit comments

Comments
 (0)