diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000..0d706c8 --- /dev/null +++ b/flake.nix @@ -0,0 +1,83 @@ +{ + description = "Dialog Relations VSCode workspace"; + + inputs = { + nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable"; + mcp-servers-nix = { + url = "github:natsukium/mcp-servers-nix"; + inputs.nixpkgs.follows = "nixpkgs"; + }; + }; + + outputs = + { + nixpkgs, + mcp-servers-nix, + ... + }: + let + inherit (nixpkgs) lib; + forAllSystems = lib.genAttrs [ + "aarch64-darwin" + "aarch64-linux" + "x86_64-darwin" + "x86_64-linux" + ]; + in + { + devShells = forAllSystems ( + system: + let + pkgs = import nixpkgs { + inherit system; + config.allowUnfree = true; + }; + in + { + default = pkgs.mkShell { + packages = with pkgs; [ vscode ]; + shellHook = + let + config = mcp-servers-nix.lib.mkConfig pkgs { + fileName = "mcp.json"; + flavor = "vscode-workspace"; + programs = { + filesystem = { + enable = true; + args = [ + # NOTE: Using builtins.getEnv requires running `nix develop` with --impure flag + "${toString (builtins.getEnv "PWD")}" + ]; + }; + fetch = { + enable = true; + }; + # github = { + # enable = true; + # env = { + # GITHUB_PERSONAL_ACCESS_TOKEN = ''''${input:github_token}''; + # }; + # }; + }; + settings.inputs = [ + # { + # type = "promptString"; + # id = "github_token"; + # description = "GitHub Personal Access Token"; + # password = true; + # } + ]; + }; + in + '' + if [ -L ".vscode/mcp.json" ]; then + unlink .vscode/mcp.json + fi + mkdir -p .vscode + ln -sf ${config} .vscode/mcp.json + ''; + }; + } + ); + }; +} diff --git a/packages/base/ContentBlocks/ContentElements/hero/templates/frontend.html b/packages/base/ContentBlocks/ContentElements/hero/templates/frontend.html index 1f1911d..f9755e2 100644 --- a/packages/base/ContentBlocks/ContentElements/hero/templates/frontend.html +++ b/packages/base/ContentBlocks/ContentElements/hero/templates/frontend.html @@ -1,59 +1,115 @@ - + - -
-
-

{data.subheader}

-

{data.header}

-
- {data.bodytext} -
-
- - -
-
- - -
- +
+ + +
+ +
+ + + + - - - -
-
- -

No image available

-
-
+ {f:uri.image(image:data.image.0, width:'320c', fileExtension:'webp')} 320w, + {f:uri.image(image:data.image.0, width:'768c', fileExtension:'webp')} 768w, + {f:uri.image(image:data.image.0, width:'1024c', fileExtension:'webp')} 1024w" + sizes="(max-width: 768px) 80vw, 430px" /> + + + + + +

No image available

+
+ + + + +
+
+ + +
+ + +
+
+ Hallo, wir sind +
+

+ Dialog Relations +

+

+ Sorem ipsum dolor sit amet, consectetur adipiscing elit. + Nunc vulputate libero et velit interdum, ac aliquet odio mattis. +

+
+ + + + + +
-
diff --git a/packages/base/Resources/Private/ContentElements/Layouts/FullWidth.html b/packages/base/Resources/Private/ContentElements/Layouts/FullWidth.html new file mode 100644 index 0000000..84912d0 --- /dev/null +++ b/packages/base/Resources/Private/ContentElements/Layouts/FullWidth.html @@ -0,0 +1,9 @@ +
+ + +
+ +
+

{data.header}

+
+
\ No newline at end of file diff --git a/packages/base/Resources/Private/PageView/Partials/Navigation/Main.html b/packages/base/Resources/Private/PageView/Partials/Navigation/Main.html index 9f943a5..ac7875c 100644 --- a/packages/base/Resources/Private/PageView/Partials/Navigation/Main.html +++ b/packages/base/Resources/Private/PageView/Partials/Navigation/Main.html @@ -1,23 +1,29 @@ -