Skip to content
Open
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
5 changes: 5 additions & 0 deletions .changeset/moody-rules-stop.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'openscript-ch-website': patch
---

Add strengths collection as interlude between references and services
3 changes: 2 additions & 1 deletion .devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
}
},
"containerEnv": {
"ASTRO_TELEMETRY_DISABLED": "1"
"ASTRO_TELEMETRY_DISABLED": "1",
"ASTRO_DEV_BACKGROUND": "0"
}
}
5 changes: 5 additions & 0 deletions AGENTS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Agents

## Verification

1. Fix, format, and linting issues with `pnpm run fix && pnpm run check`.
17 changes: 17 additions & 0 deletions docs/ARCHITECTURE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Architecture

## Folders

- `src/`: Contains the source code of the project.
- `components/`: Contains reusable and atomic UI components.
- `content/`: Contains static content fitting the content collections defined in `content.config.ts`.
- `integrations/`: Contains integration code for external or additional services.
- `layouts/`: Contains unique, specific and non-reusable components.
- `groups/`: Contains non-content components that represent a specific common area of each page (e.g., header, footer, sidebar).
- `sections/`: Contains content layout components that represent specific sections of a layout.
- `templates/`: Contains content wrapping components that define the overall structure of a page or layout.
- `views/`: Contains page-level components that represent entire views or pages within the application.
- `pages/`: Contains the top-level page components that serve as entry points for different routes within the application.
- `translations/`: Contains translation files for user interface text and messages.
- `types/`: Contains TypeScript type definitions used throughout the project.
- `utils/`: Contains utility functions and helper modules used throughout the project.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@
"@nanostores/i18n": "^1.3.3",
"@openscript/svg-sprite-ng": "^4.0.0",
"astro": "^7.4.2",
"astro-loader-i18n": "^1.0.2",
"astro-nanostores-i18n": "^1.0.2",
"astro-loader-i18n": "^1.1.0",
"astro-nanostores-i18n": "^1.0.3",
"embla-carousel": "^8.6.0",
"embla-carousel-autoplay": "^8.6.0",
"embla-carousel-class-names": "^8.6.0",
Expand Down
4 changes: 2 additions & 2 deletions pnpm-lock.yaml

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

3 changes: 3 additions & 0 deletions pnpm-workspace.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# yaml-language-server: $schema=https://json.schemastore.org/pnpm-workspace.json
allowBuilds:
esbuild: true
sharp: true
minimumReleaseAgeExclude:
- '@openscript/svg-sprite-ng'
- 'astro-loader-i18n'
- 'astro-nanostores-i18n'
17 changes: 15 additions & 2 deletions src/components/Divider.astro
Original file line number Diff line number Diff line change
Expand Up @@ -20,18 +20,31 @@ const {
firstSegmentColor = '',
secondSegmentColor = '',
height = '',
...attributes
} = Astro.props;

const style = `transform: scaleX(${flipHorizontal ? -1 : 1}) scaleY(${flipVertical ? -1 : 1})${fixAntialiasingTop ? '; margin-block-start: -1.1px;' : ''}${fixAntialiasingBottom ? '; margin-block-end: -1.1px;' : ''}`;
---

{kind === 'single' ? (
<svg viewBox="0 0 100 100" preserveAspectRatio="none" style={style} class="divider">
<svg
{...attributes}
viewBox="0 0 100 100"
preserveAspectRatio="none"
style={style}
class="divider"
>
<path style="fill: var(--first-segment);" d="M100,100 L83.5,0 L0,100 Z" />
</svg>
) : null}
{kind === 'multi' ? (
<svg viewBox="0 0 100 100" preserveAspectRatio="none" style={style} class="divider">
<svg
{...attributes}
viewBox="0 0 100 100"
preserveAspectRatio="none"
style={style}
class="divider"
>
<path
fill="var(--second-segment)"
d="M100,100 L17.5,20 L0,100 L0,0 L17.5,0 L100,0 L100,100 Z"
Expand Down
5 changes: 3 additions & 2 deletions src/components/Tabs.astro
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
---
import type { HTMLAttributes } from 'astro/types';

/**
* Tabs Component
*
Expand All @@ -13,8 +15,7 @@ type Props = {
/**
* HTML attributes to spread on the tabs container
*/
[key: string]: string | number | boolean | undefined;
};
} & HTMLAttributes<'div'>;

const { class: className, ...rest } = Astro.props;
---
Expand Down
5 changes: 3 additions & 2 deletions src/components/TabsList.astro
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
---
import type { HTMLAttributes } from 'astro/types';

/**
* TabsList Component
*
Expand All @@ -13,8 +15,7 @@ type Props = {
/**
* HTML attributes to spread on the tabs list
*/
[key: string]: string | number | boolean | undefined;
};
} & HTMLAttributes<'div'>;

const { class: className, ...rest } = Astro.props;
---
Expand Down
5 changes: 3 additions & 2 deletions src/components/TabsPanel.astro
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
---
import type { HTMLAttributes } from 'astro/types';

/**
* TabsPanel Component
*
Expand Down Expand Up @@ -26,8 +28,7 @@ type Props = {
/**
* HTML attributes to spread on the panel
*/
[key: string]: string | number | boolean | undefined;
};
} & HTMLAttributes<'div'>;

const { class: className, id, labelledby, selected = false, ...rest } = Astro.props;
---
Expand Down
5 changes: 3 additions & 2 deletions src/components/TabsTab.astro
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
---
import type { HTMLAttributes } from 'astro/types';

/**
* TabsTab Component
*
Expand Down Expand Up @@ -26,8 +28,7 @@ type Props = {
/**
* HTML attributes to spread on the tab
*/
[key: string]: string | number | boolean | undefined;
};
} & HTMLAttributes<'button'>;

const { class: className, id, controls, selected = false, ...rest } = Astro.props;
---
Expand Down
Loading