diff --git a/README.md b/README.md index b1f2ab0..5fca094 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,2 @@ -# Flurry +# Polestar A component library built for MinPluto. \ No newline at end of file diff --git a/package.json b/package.json index 5394502..c6afb1c 100644 --- a/package.json +++ b/package.json @@ -1,11 +1,11 @@ { - "name": "@minpluto/flurry", + "name": "@minpluto/polestar", "author": "SudoVanilla ", "type": "module", - "version": "0.0.11", + "version": "0.0.5", "license": "AGPL-3.0-only", "bugs": { - "url": "https://ark.sudovanilla.org/MinPluto/Flurry/issues", + "url": "https://ark.sudovanilla.org/MinPluto/Polestar/issues", "email": "support@minpluto.org" }, "funding": [ diff --git a/src/Comment.astro b/src/Comment.astro new file mode 100644 index 0000000..de40c01 --- /dev/null +++ b/src/Comment.astro @@ -0,0 +1,39 @@ +--- +// Properties +const { + Avatar, + Username, + Link +} = Astro.props + +// Components +import { Image } from 'astro:assets'; +--- + +
+ {Username +
+ {Username} + +
+
+ + \ No newline at end of file diff --git a/src/Creator.astro b/src/Creator.astro new file mode 100644 index 0000000..e92a09e --- /dev/null +++ b/src/Creator.astro @@ -0,0 +1,34 @@ +--- +// Properties +const { + Avatar, + Name, + Link, + FollowerCount +} = Astro.props + +// Components +import { Image } from "astro:assets"; + +--- + + + {Name +

{Name}

+
+ + \ No newline at end of file diff --git a/src/Sidebar.astro b/src/Sidebar.astro index d710b48..24f93e2 100644 --- a/src/Sidebar.astro +++ b/src/Sidebar.astro @@ -11,13 +11,15 @@ import { Image } from "astro:assets"; { ShowHeader ? (
- Logo -
+ +
@@ -58,6 +60,7 @@ import { Image } from "astro:assets"; flex-direction: column; justify-content: space-between; padding: 0px 12px; + overflow: auto; .fl-sidebar-items { display: grid; gap: 6px; @@ -83,13 +86,15 @@ import { Image } from "astro:assets"; align-items: center; gap: 12px; border-radius: 6px; - padding: 6px 12px; + padding: 10px 12px; cursor: pointer; font-size: 14px; - border: 1px transparent solid; + min-height: 24px; &:hover { background: #3c3c3c; - border: 1px #5c5c5c solid; + } + svg { + width: 18px; } } } @@ -104,7 +109,7 @@ import { Image } from "astro:assets"; height: 64px; pointer-events: none; } - a { + .fl-sidebar-header-items a { color: white; text-decoration: none; border-radius: 6px; diff --git a/src/VideoItem.astro b/src/VideoItem.astro index 1ed229e..6a7240f 100644 --- a/src/VideoItem.astro +++ b/src/VideoItem.astro @@ -15,17 +15,58 @@ const { import { Image } from 'astro:assets'; --- - +
- {'Thumbnail'} -

{Platform}

+ {'Thumbnail'} +

{Length}

- {'Creator + {'Creator

{Title}

{Date} - {Views}

-
\ No newline at end of file + + + \ No newline at end of file diff --git a/test/astro.config.mjs b/test/astro.config.mjs index cc271c8..c12a900 100644 --- a/test/astro.config.mjs +++ b/test/astro.config.mjs @@ -1,7 +1,15 @@ import { defineConfig } from 'astro/config' import vue from '@astrojs/vue' +import node from '@astrojs/node' // https://astro.build/config export default defineConfig({ - integrations: [vue()] + integrations: [vue()], + output: 'server', + adapter: node({ + mode: 'standalone', + }), + experimental: { + serverIslands: true + } }); diff --git a/test/bun.lockb b/test/bun.lockb index d005279..f985d5f 100755 Binary files a/test/bun.lockb and b/test/bun.lockb differ diff --git a/test/package.json b/test/package.json index c4f7bb8..4c6b776 100644 --- a/test/package.json +++ b/test/package.json @@ -11,6 +11,7 @@ }, "dependencies": { "@astrojs/check": "^0.9.2", + "@astrojs/node": "^8.3.3", "@astrojs/vue": "^4.5.0", "@iconoir/vue": "^7.8.0", "astro": "^4.14.2", diff --git a/test/src/pages/index.astro b/test/src/pages/index.astro index d8359be..4b544ba 100644 --- a/test/src/pages/index.astro +++ b/test/src/pages/index.astro @@ -1,7 +1,10 @@ --- // Components +import Comment from '../../../src/Comment.astro' +import Creator from '../../../src/Creator.astro' import Dialog from '../../../src/Dialog.astro' import Sidebar from '../../../src/Sidebar.astro' +import Video from '../../../src/VideoItem.astro' // Icons import { @@ -18,7 +21,9 @@ import { EmojiTalkingHappy, PlanetAlt, Settings, - MediaVideoList + MediaVideoList, +LogOut, +OpenInBrowser } from '@iconoir/vue' --- @@ -60,31 +65,121 @@ import { Gaming Tech

Project Demo

- Open Dialog + Open Dialog +

Creators

+ +
+
+
+
+
+ + + - Settings - - - + + +
+
+
+ +
+
+
+ + + Lorem ipsum odor amet, consectetuer adipiscing elit. Aliquet dapibus ridiculus purus dui id fusce interdum nibh. Nullam ut eu ridiculus consequat potenti. Cursus ornare cras orci penatibus dis leo et. At suscipit volutpat tincidunt elit suscipit egestas fames fusce finibus. Quisque interdum duis pharetra lobortis facilisi. Nullam ut montes, ullamcorper platea nam convallis. Eleifend lacus congue erat, amet ac montes. Netus ex velit non cursus lacinia magnis. + +Phasellus eget consequat penatibus magnis at. Augue neque placerat pellentesque finibus rhoncus integer. Molestie class ac dapibus malesuada interdum natoque posuere. Odio commodo interdum et luctus suspendisse habitant feugiat. Magna luctus pharetra tristique mattis quisque ex consectetur viverra. Consequat conubia viverra vitae penatibus venenatis fusce facilisis, nisl tincidunt. + +
+ + + + \ No newline at end of file