Skip to content

Commit

Permalink
Bump Astro 4.10 + Add labs
Browse files Browse the repository at this point in the history
  • Loading branch information
deminearchiver committed Jun 7, 2024
1 parent 6de09cf commit 896ad07
Show file tree
Hide file tree
Showing 11 changed files with 1,124 additions and 28 deletions.
Empty file removed .gitmodules
Empty file.
9 changes: 6 additions & 3 deletions app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@
},
"dependencies": {
"@astrojs/check": "^0.7.0",
"@astrojs/cloudflare": "^10.2.6",
"@astrojs/mdx": "^3.0.1",
"@astrojs/cloudflare": "^10.3.0",
"@astrojs/mdx": "^3.1.0",
"@astrojs/rss": "^4.0.6",
"@astrojs/sitemap": "^3.1.5",
"@astrojs/solid-js": "^4.2.0",
"@astrojs/solid-js": "^4.3.0",
"@deminearchiver/utils": "workspace:*",
"@expressive-code/plugin-collapsible-sections": "^0.35.3",
"@expressive-code/plugin-line-numbers": "^0.35.3",
Expand All @@ -28,10 +28,13 @@
"@material/astro": "workspace:*",
"@material/material-color-utilities": "https://gitpkg.now.sh/material-foundation/material-color-utilities/typescript?main",
"@material/solid": "workspace:*",
"@octokit/auth": "^3.0.3",
"@octokit/graphql": "^8.1.1",
"@pagefind/astro": "workspace:*",
"@playform/compress": "^0.0.4",
"@solid-primitives/bounds": "^0.0.121",
"@solid-primitives/event-listener": "^2.3.3",
"@solid-primitives/graphql": "^2.0.4",
"@solid-primitives/media": "^2.2.9",
"@solid-primitives/pagination": "^0.3.0",
"@solid-primitives/presence": "^0.0.6",
Expand Down
163 changes: 163 additions & 0 deletions app/src/components/labs/github-calendar/github-calendar.css.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,163 @@
import { style } from "@vanilla-extract/css";
import { THEME } from "../../../styles/theme";
import { recipe } from "@vanilla-extract/recipes";

export const wrapperStyle = style({
marginInline: "auto",
display: "flex",
flexDirection: "column",
alignItems: "center",
justifyContent: "center",
gap: 24,
});

// export const formStyle = style({
// width: 300,
// display: "flex",
// flexDirection: "column",
// justifyContent: "center",
// alignItems: "stretch",
// gap: 16,
// });

// export const textFieldStyle = style({
// position: "relative",
// height: 56,
// paddingInline: 16,

// backgroundColor: THEME.color.surfaceContainerHighest,
// borderRadius: 4,

// border: `1px solid ${THEME.color.outline}`,
// outline: "none",

// fontFamily: THEME.text.body.large.family,
// fontSize: THEME.text.body.large.size,
// fontWeight: THEME.text.body.large.weight,
// lineHeight: THEME.text.body.large.lineHeight,
// letterSpacing: THEME.text.body.large.letterSpacing,
// color: THEME.color.onSurface,


// "::placeholder": {
// color: THEME.color.onSurfaceVariant,
// },
// ":hover": {
// backgroundColor: `color-mix(in srgb, ${THEME.color.surfaceContainerHighest}, ${THEME.color.onSurface} 8%)`,
// },
// ":focus-visible": {
// borderColor: THEME.color.primary,
// outline: `1px solid ${THEME.color.primary}`
// },
// });
export const formStyle = style({
width: 360,
display: "grid",
gridTemplateColumns: "auto auto",
// flexDirection: "column",
// alignItems: "stretch",
placeItems: "stretch",
placeContent: "center",
gap: 16,
});

export const textFieldStyle = style({
position: "relative",
height: 56,
paddingInline: 16,

backgroundColor: THEME.color.surfaceContainerHighest,
borderRadius: 4,

border: `1px solid ${THEME.color.outline}`,
outline: "none",

fontFamily: THEME.text.body.large.family,
fontSize: THEME.text.body.large.size,
fontWeight: THEME.text.body.large.weight,
lineHeight: THEME.text.body.large.lineHeight,
letterSpacing: THEME.text.body.large.letterSpacing,
color: THEME.color.onSurface,


"::placeholder": {
color: THEME.color.onSurfaceVariant,
},
":hover": {
backgroundColor: `color-mix(in srgb, ${THEME.color.surfaceContainerHighest}, ${THEME.color.onSurface} 8%)`,
},
":focus-visible": {
borderColor: THEME.color.primary,
outline: `1px solid ${THEME.color.primary}`
},
});

export const datePickerStyle = style({
alignSelf: "center",
height: 40,
border: "none",
outline: "none",
backgroundColor: THEME.color.secondaryContainer,
borderRadius: 9999,
paddingInline: 16,

fontFamily: THEME.text.label.large.family,
fontSize: THEME.text.label.large.size,
fontWeight: THEME.text.label.large.weight,
lineHeight: THEME.text.label.large.lineHeight,
letterSpacing: THEME.text.label.large.letterSpacing,
color: THEME.color.onSecondaryContainer,

cursor: "pointer",

":hover": {
backgroundColor: `color-mix(in srgb, ${THEME.color.secondaryContainer}, ${THEME.color.onSecondaryContainer} 8%)`,
},
});

export const calendarStyle = style({
border: `1px solid ${THEME.color.outlineVariant}`,
padding: 16,
borderRadius: 12,
});
export const weeksStyle = style({
listStyle: "none",
display: "grid",
gridTemplateRows: "repeat(7, auto)",
placeItems: "center",
placeContent: "center",
gap: 4,
});

export const dayStyle = recipe({
base: {
width: 12,
height: 12,
borderRadius: 4,
border: `1px solid color-mix(in srgb, transparent, ${THEME.color.success} 10%)`
},
variants: {
level: {
NONE: {
backgroundColor: THEME.color.surfaceContainerLow,
border: "none",
},
FIRST_QUARTILE: {
// backgroundColor: "#0e4429",
backgroundColor: `color-mix(in srgb, ${THEME.color.successContainer}, ${THEME.color.success} 0%)`,
},
SECOND_QUARTILE: {
// backgroundColor: "#006d32",
backgroundColor: `color-mix(in srgb, ${THEME.color.successContainer}, ${THEME.color.success} 25%)`,
},
THIRD_QUARTILE: {
// backgroundColor: "#26a641",
backgroundColor: `color-mix(in srgb, ${THEME.color.successContainer}, ${THEME.color.success} 50%)`,
},
FOURTH_QUARTILE: {
// backgroundColor: "#39d353",
backgroundColor: `color-mix(in srgb, ${THEME.color.successContainer}, ${THEME.color.success} 75%)`,
},
},
},
});
Loading

0 comments on commit 896ad07

Please sign in to comment.