From 5dba2d8cedf46798fc197de4856409124a65ce4e Mon Sep 17 00:00:00 2001 From: Bobby Date: Mon, 12 May 2025 18:59:23 +0530 Subject: added sidebar and related components --- public/images/internal/search.webp | Bin 0 -> 9530 bytes public/images/internal/sidebar/2.gif | Bin 0 -> 1834925 bytes public/images/internal/sidebar/3.gif | Bin 0 -> 780563 bytes public/images/internal/sidebar/5.gif | Bin 0 -> 1552895 bytes public/images/internal/sidebar/7.gif | Bin 0 -> 704381 bytes public/images/internal/sidebar/default.gif | Bin 0 -> 467622 bytes src/components/LeftSidebarComponent.astro | 31 ++++++++++++++++++++++ src/components/NavigationComponent.astro | 29 ++++++++++++++++++++ src/components/NavigationComponentLink.astro | 8 ++++++ src/components/RightNavigationComponent.astro | 29 ++++++++++++++++++++ src/components/RightNavigationComponentLink.astro | 7 +++++ src/components/RightSidebarComponent.astro | 19 +++++++++++++ src/components/SearchComponent.astro | 31 ++++++++++++++++++++++ src/layouts/Layout.astro | 17 +++++++++--- src/scripts/sidebarImage.ts | 30 +++++++++++++++++++++ src/styles/global.css | 26 ++++++++++++++++++ 16 files changed, 223 insertions(+), 4 deletions(-) create mode 100644 public/images/internal/search.webp create mode 100644 public/images/internal/sidebar/2.gif create mode 100644 public/images/internal/sidebar/3.gif create mode 100644 public/images/internal/sidebar/5.gif create mode 100644 public/images/internal/sidebar/7.gif create mode 100644 public/images/internal/sidebar/default.gif create mode 100644 src/components/LeftSidebarComponent.astro create mode 100644 src/components/NavigationComponent.astro create mode 100644 src/components/NavigationComponentLink.astro create mode 100644 src/components/RightNavigationComponent.astro create mode 100644 src/components/RightNavigationComponentLink.astro create mode 100644 src/components/RightSidebarComponent.astro create mode 100644 src/components/SearchComponent.astro create mode 100644 src/scripts/sidebarImage.ts diff --git a/public/images/internal/search.webp b/public/images/internal/search.webp new file mode 100644 index 0000000..87586a9 Binary files /dev/null and b/public/images/internal/search.webp differ diff --git a/public/images/internal/sidebar/2.gif b/public/images/internal/sidebar/2.gif new file mode 100644 index 0000000..097d6c5 Binary files /dev/null and b/public/images/internal/sidebar/2.gif differ diff --git a/public/images/internal/sidebar/3.gif b/public/images/internal/sidebar/3.gif new file mode 100644 index 0000000..de585bb Binary files /dev/null and b/public/images/internal/sidebar/3.gif differ diff --git a/public/images/internal/sidebar/5.gif b/public/images/internal/sidebar/5.gif new file mode 100644 index 0000000..823acde Binary files /dev/null and b/public/images/internal/sidebar/5.gif differ diff --git a/public/images/internal/sidebar/7.gif b/public/images/internal/sidebar/7.gif new file mode 100644 index 0000000..68e1328 Binary files /dev/null and b/public/images/internal/sidebar/7.gif differ diff --git a/public/images/internal/sidebar/default.gif b/public/images/internal/sidebar/default.gif new file mode 100644 index 0000000..bdeb84d Binary files /dev/null and b/public/images/internal/sidebar/default.gif differ diff --git a/src/components/LeftSidebarComponent.astro b/src/components/LeftSidebarComponent.astro new file mode 100644 index 0000000..0580d09 --- /dev/null +++ b/src/components/LeftSidebarComponent.astro @@ -0,0 +1,31 @@ +--- +import NavigationComponent from './NavigationComponent.astro'; +import NavigationComponentLink from './NavigationComponentLink.astro'; +--- + + + + diff --git a/src/components/NavigationComponent.astro b/src/components/NavigationComponent.astro new file mode 100644 index 0000000..9987c2f --- /dev/null +++ b/src/components/NavigationComponent.astro @@ -0,0 +1,29 @@ +--- +const { title, variation, bordered = true } = Astro.props; +--- + +
+
+
+
{title}
+
+
+
+ +
+
\ No newline at end of file diff --git a/src/components/NavigationComponentLink.astro b/src/components/NavigationComponentLink.astro new file mode 100644 index 0000000..30fa456 --- /dev/null +++ b/src/components/NavigationComponentLink.astro @@ -0,0 +1,8 @@ +--- +const { href } = Astro.props; +--- + +
+ + +
\ No newline at end of file diff --git a/src/components/RightNavigationComponent.astro b/src/components/RightNavigationComponent.astro new file mode 100644 index 0000000..fcf0c39 --- /dev/null +++ b/src/components/RightNavigationComponent.astro @@ -0,0 +1,29 @@ +--- +const { title, variation, bordered = true } = Astro.props; +--- + +
+
+
+
{title}
+
+
+
+ +
+
\ No newline at end of file diff --git a/src/components/RightNavigationComponentLink.astro b/src/components/RightNavigationComponentLink.astro new file mode 100644 index 0000000..cda2cb7 --- /dev/null +++ b/src/components/RightNavigationComponentLink.astro @@ -0,0 +1,7 @@ +--- +const { href } = Astro.props; +--- +
+ + +
diff --git a/src/components/RightSidebarComponent.astro b/src/components/RightSidebarComponent.astro new file mode 100644 index 0000000..1a19686 --- /dev/null +++ b/src/components/RightSidebarComponent.astro @@ -0,0 +1,19 @@ +--- +import SearchComponent from './SearchComponent.astro'; +import RightNavigationComponent from './RightNavigationComponent.astro'; +import RightNavigationComponentLink from './RightNavigationComponentLink.astro'; +--- + + \ No newline at end of file diff --git a/src/components/SearchComponent.astro b/src/components/SearchComponent.astro new file mode 100644 index 0000000..9a269d8 --- /dev/null +++ b/src/components/SearchComponent.astro @@ -0,0 +1,31 @@ +
+
+
+
Site Search
+
+
+
+
+ + +
+
+ + +
+
+ +
+
+
+
\ No newline at end of file diff --git a/src/layouts/Layout.astro b/src/layouts/Layout.astro index 890934e..bbb2cec 100644 --- a/src/layouts/Layout.astro +++ b/src/layouts/Layout.astro @@ -1,4 +1,6 @@ --- +import LeftSidebar from "../components/LeftSidebarComponent.astro"; +import RightSidebar from "../components/RightSidebarComponent.astro"; import "../styles/global.css"; const { title } = Astro.props; @@ -9,16 +11,23 @@ const { title } = Astro.props; - + + + + Pagoda — {title || "default"} -