From 875db34c728e633c5a2eeb339cfcbec74fe862a1 Mon Sep 17 00:00:00 2001 From: Romuald Brillout Date: Tue, 6 Aug 2024 14:44:29 +0200 Subject: [PATCH] add example --- examples/full/pages/+Layout.tsx | 1 + examples/full/pages/images/+Page.tsx | 46 ++++++++++++++++++++++++++++ 2 files changed, 47 insertions(+) create mode 100644 examples/full/pages/images/+Page.tsx diff --git a/examples/full/pages/+Layout.tsx b/examples/full/pages/+Layout.tsx index a5f676c..20980f0 100644 --- a/examples/full/pages/+Layout.tsx +++ b/examples/full/pages/+Layout.tsx @@ -19,6 +19,7 @@ export function Layout(props: { children?: JSX.Element }) { Without SSR Nested Layout 1 Nested Layout 2 + Head Component {props.children} diff --git a/examples/full/pages/images/+Page.tsx b/examples/full/pages/images/+Page.tsx new file mode 100644 index 0000000..37af544 --- /dev/null +++ b/examples/full/pages/images/+Page.tsx @@ -0,0 +1,46 @@ +export { Page }; + +import { Head } from "vike-solid/Head"; +import logoOld from "../../assets/logo.svg"; +import logoNew from "../../assets/logo-new.svg"; +import { Counter } from "../../components/Counter"; + +function Page() { + return ( + <> +

+ Page showcasing {""} component, with structured data (see HTML). +

+
+ New logo: +
+
+
+ Old logo: +
+
+ + + ); +} + +function Image({ src, author }: { src: string; author: string }) { + return ( + <> + + + + + + ); +}