Skip to content
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
7 changes: 7 additions & 0 deletions greenwood.config.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,15 @@
import { greenwoodPluginImportRaw } from '@greenwood/plugin-import-raw';
import { greenwoodPluginCssModules } from '@greenwood/plugin-css-modules';
import { greenwoodPluginImportJsx } from '@greenwood/plugin-import-jsx';
import { replBundlerResourcePlugin } from './repl-bundler-plugin.ts';
import type { Config } from "@greenwood/cli";

const config: Config = {
prerender: true,
plugins: [
greenwoodPluginCssModules(),
greenwoodPluginImportRaw(),
greenwoodPluginImportJsx(),
replBundlerResourcePlugin()
]
};
Expand Down
73 changes: 69 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 9 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,20 @@
"type": "module",
"scripts": {
"dev": "greenwood develop",
"build": "greenwood build",
"build": "NODE_OPTIONS='--import @greenwood/cli/register' greenwood build",
"serve": "greenwood serve",
"check": "tsc",
"postinstall": "patch-package"
},
"dependencies": {
"geist": "^1.2.0",
"open-props": "^1.7.23"
},
"devDependencies": {
"@greenwood/cli": "~0.34.0-alpha.3",
"@greenwood/cli": "~0.34.0-alpha.4",
"@greenwood/plugin-css-modules": "^0.34.0-alpha.4",
"@greenwood/plugin-import-raw": "^0.34.0-alpha.4",
"@greenwood/plugin-import-jsx": "^0.34.0-alpha.4",
"patch-package": "^8.0.1",
"typescript": "^5.9.2"
}
Expand Down
25 changes: 25 additions & 0 deletions patches/wc-compiler+0.19.0.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
diff --git a/node_modules/wc-compiler/src/jsx.d.ts b/node_modules/wc-compiler/src/jsx.d.ts
index 2dc9baa..a2cb857 100644
--- a/node_modules/wc-compiler/src/jsx.d.ts
+++ b/node_modules/wc-compiler/src/jsx.d.ts
@@ -3,12 +3,17 @@ type IsCSSStyleDeclaration<T> = T extends CSSStyleDeclaration ? string : T;

// create a utility type to extract the attributes from any given element's DOM interface.
type ElementAttributes<E extends HTMLElement> = {
- // Extract all properties from the element, including inherited ones.
+ // Extract all properties from the element, including inherited ones
[A in keyof E]?: E[A] extends (...args: any) => any ? any : IsCSSStyleDeclaration<E[A]>;
} & {
class?: string;
-};
-
+ // have to manage this manually, can't seem to get this from TypeScript itself (not sure if just skill issue? :D)
+ // https://github.com/microsoft/TypeScript-DOM-lib-generator/issues/1790
+ // it should be there per https://github.com/mdn/browser-compat-data/pull/21875
+ // https://github.com/ProjectEvergreen/wcc/issues/236
+ popovertarget?: string;
+ popovertargetaction?: 'show' | 'hide' | 'toggle';
+}
// map each HTML tag to a union of its attributes and the global attributes.
type IntrinsicElementsFromDom = {
[E in keyof HTMLElementTagNameMap]: ElementAttributes<HTMLElementTagNameMap[E]>;
4 changes: 4 additions & 0 deletions src/assets/bluesky.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions src/assets/discord.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions src/assets/github.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 12 additions & 0 deletions src/assets/tile.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions src/assets/twitter-logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/wcc-logo-og.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions src/assets/wcc-logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
21 changes: 21 additions & 0 deletions src/components/footer/footer.module.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
.container {
display: flex;
justify-content: center;
align-items: center;
padding: var(--size-4);
margin-top: var(--size-6);
gap: var(--size-3);
background-color: var(--color-black);
}

.logoLink {
display: flex;
flex: 1;
}

.socialTray {
display: flex;
flex: 2;
color: white;
justify-content: right;
}
25 changes: 25 additions & 0 deletions src/components/footer/footer.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
import styles from './footer.module.css';
import '../social-tray/social-tray.tsx';
import wccLogo from '../../assets/wcc-logo.svg?type=raw';

export default class Footer extends HTMLElement {
connectedCallback() {
this.render();
}

render() {
return (
<footer class={styles.container}>
<a href="/" title="WCC Home Page" class={styles.logoLink}>
{wccLogo}
</a>

<div class={styles.socialTray}>
<wcc-social-tray></wcc-social-tray>
</div>
</footer>
);
}
}

customElements.define('wcc-footer', Footer);
Loading