Skip to content

Commit

Permalink
No commit message
Browse files Browse the repository at this point in the history
  • Loading branch information
NikolaRHristov committed Feb 6, 2025
1 parent dd8ac8f commit b26abc9
Show file tree
Hide file tree
Showing 19 changed files with 293 additions and 201 deletions.
49 changes: 25 additions & 24 deletions .astro/content.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,21 @@ declare module 'astro:content' {
ContentEntryMap[C]
>['slug'];

export type ReferenceDataEntry<
C extends CollectionKey,
E extends keyof DataEntryMap[C] = string,
> = {
collection: C;
id: E;
};
export type ReferenceContentEntry<
C extends keyof ContentEntryMap,
E extends ValidContentEntrySlug<C> | (string & {}) = string,
> = {
collection: C;
slug: E;
};

/** @deprecated Use `getEntry` instead. */
export function getEntryBySlug<
C extends keyof ContentEntryMap,
Expand Down Expand Up @@ -61,19 +76,17 @@ declare module 'astro:content' {
export function getEntry<
C extends keyof ContentEntryMap,
E extends ValidContentEntrySlug<C> | (string & {}),
>(entry: {
collection: C;
slug: E;
}): E extends ValidContentEntrySlug<C>
>(
entry: ReferenceContentEntry<C, E>,
): E extends ValidContentEntrySlug<C>
? Promise<CollectionEntry<C>>
: Promise<CollectionEntry<C> | undefined>;
export function getEntry<
C extends keyof DataEntryMap,
E extends keyof DataEntryMap[C] | (string & {}),
>(entry: {
collection: C;
id: E;
}): E extends keyof DataEntryMap[C]
>(
entry: ReferenceDataEntry<C, E>,
): E extends keyof DataEntryMap[C]
? Promise<DataEntryMap[C][E]>
: Promise<CollectionEntry<C> | undefined>;
export function getEntry<
Expand All @@ -99,16 +112,10 @@ declare module 'astro:content' {

/** Resolve an array of entry references from the same collection */
export function getEntries<C extends keyof ContentEntryMap>(
entries: {
collection: C;
slug: ValidContentEntrySlug<C>;
}[],
entries: ReferenceContentEntry<C, ValidContentEntrySlug<C>>[],
): Promise<CollectionEntry<C>[]>;
export function getEntries<C extends keyof DataEntryMap>(
entries: {
collection: C;
id: keyof DataEntryMap[C];
}[],
entries: ReferenceDataEntry<C, keyof DataEntryMap[C]>[],
): Promise<CollectionEntry<C>[]>;

export function render<C extends keyof AnyEntryMap>(
Expand All @@ -120,14 +127,8 @@ declare module 'astro:content' {
): import('astro/zod').ZodEffects<
import('astro/zod').ZodString,
C extends keyof ContentEntryMap
? {
collection: C;
slug: ValidContentEntrySlug<C>;
}
: {
collection: C;
id: keyof DataEntryMap[C];
}
? ReferenceContentEntry<C, ValidContentEntrySlug<C>>
: ReferenceDataEntry<C, keyof DataEntryMap[C]>
>;
// Allow generic `string` to avoid excessive type errors in the config
// if `dev` is not running to update as you edit.
Expand Down
2 changes: 1 addition & 1 deletion .astro/data-store.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
[["Map",1,2],"meta::meta",["Map",3,4,5,6],"astro-version","5.1.7","astro-config-digest","{\"root\":{},\"srcDir\":{},\"publicDir\":{},\"outDir\":{},\"cacheDir\":{},\"site\":\"HTTP://localhost\",\"compressHTML\":false,\"base\":\"/\",\"trailingSlash\":\"ignore\",\"output\":\"static\",\"scopedStyleStrategy\":\"attribute\",\"build\":{\"format\":\"directory\",\"client\":{},\"server\":{},\"assets\":\"_astro\",\"serverEntry\":\"entry.mjs\",\"redirects\":true,\"inlineStylesheets\":\"auto\",\"concurrency\":9999},\"server\":{\"open\":false,\"host\":true,\"port\":9999,\"streaming\":true},\"redirects\":{},\"prefetch\":{\"prefetchAll\":true,\"defaultStrategy\":\"hover\"},\"image\":{\"endpoint\":{\"route\":\"/_image\"},\"service\":{\"entrypoint\":\"astro/assets/services/sharp\",\"config\":{}},\"domains\":[],\"remotePatterns\":[]},\"devToolbar\":{\"enabled\":true},\"markdown\":{\"syntaxHighlight\":\"shiki\",\"shikiConfig\":{\"langs\":[],\"langAlias\":{},\"theme\":\"github-dark\",\"themes\":{},\"wrap\":false,\"transformers\":[]},\"remarkPlugins\":[],\"rehypePlugins\":[],\"remarkRehype\":{},\"gfm\":true,\"smartypants\":true},\"security\":{\"checkOrigin\":true},\"env\":{\"schema\":{\"TOKEN_GITHUB_COMMIT\":{\"context\":\"server\",\"access\":\"secret\",\"optional\":false,\"default\":\"GitHub Token API Stream\",\"type\":\"string\"}},\"validateSecrets\":true},\"experimental\":{\"clientPrerender\":true,\"contentIntellisense\":true,\"responsiveImages\":false},\"legacy\":{\"collections\":false}}"]
[["Map",1,2],"meta::meta",["Map",3,4,5,6],"astro-version","5.2.3","astro-config-digest","{\"root\":{},\"srcDir\":{},\"publicDir\":{},\"outDir\":{},\"cacheDir\":{},\"site\":\"HTTP://localhost\",\"compressHTML\":false,\"base\":\"/\",\"trailingSlash\":\"ignore\",\"output\":\"static\",\"scopedStyleStrategy\":\"attribute\",\"build\":{\"format\":\"directory\",\"client\":{},\"server\":{},\"assets\":\"_astro\",\"serverEntry\":\"entry.mjs\",\"redirects\":true,\"inlineStylesheets\":\"auto\",\"concurrency\":9999},\"server\":{\"open\":false,\"host\":true,\"port\":9999,\"streaming\":true},\"redirects\":{},\"prefetch\":{\"prefetchAll\":true,\"defaultStrategy\":\"hover\"},\"image\":{\"endpoint\":{\"route\":\"/_image\"},\"service\":{\"entrypoint\":\"astro/assets/services/sharp\",\"config\":{}},\"domains\":[],\"remotePatterns\":[]},\"devToolbar\":{\"enabled\":true},\"markdown\":{\"syntaxHighlight\":\"shiki\",\"shikiConfig\":{\"langs\":[],\"langAlias\":{},\"theme\":\"github-dark\",\"themes\":{},\"wrap\":false,\"transformers\":[]},\"remarkPlugins\":[],\"rehypePlugins\":[],\"remarkRehype\":{},\"gfm\":true,\"smartypants\":true},\"security\":{\"checkOrigin\":true},\"env\":{\"schema\":{\"TOKEN_GITHUB_COMMIT\":{\"context\":\"server\",\"access\":\"secret\",\"optional\":false,\"default\":\"GitHub Token API Stream\",\"type\":\"string\"}},\"validateSecrets\":true},\"experimental\":{\"clientPrerender\":true,\"contentIntellisense\":true,\"responsiveImages\":false,\"serializeConfig\":false},\"legacy\":{\"collections\":false}}"]
2 changes: 1 addition & 1 deletion .astro/settings.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"_variables": {
"lastUpdateCheck": 1736912697313
"lastUpdateCheck": 1738865233688
}
}
61 changes: 40 additions & 21 deletions Source/Function/Scroll/Code.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
export default (
{ Text, Font }: { Text: string; Font?: number } = {
Text: "",
Font: 1,
},
) => {
import "@Function/Scroll/Stylesheet.css";

export default ({ Text = "", Font = 1 }: { Text?: string; Font?: number }) => {
const [Offset, _Offset] = createSignal(0);

const [Element, _Element] = createSignal<HTMLDivElement | undefined>();
const [Element, _Element] = createSignal<HTMLDivElement>();

const [Count, _Count] = createSignal(10);

Expand Down Expand Up @@ -53,6 +50,7 @@ export default (

if (Past >= Time) {
_Offset((prev) => (prev - 0.2 + Size) % Size);

_LastTimestamp(Current);
}

Expand Down Expand Up @@ -80,30 +78,51 @@ export default (
};

return (
<div class={`w-full overflow-hidden bg-black p-2`} ref={_Element}>
<div class="w-full overflow-hidden p-2" ref={_Element}>
<p class="sr-only">{_Text()}</p>

<div class="flex justify-center" aria-hidden="true">
{Display()
.split("")
.map((Visible) => (
<div>
.map((Visible, charIndex) => (
<div class="mr-2">
{((Position) => (
<div class="mr-2">
<div>
{(
Matrix[Position.toUpperCase()] ||
Matrix[" "]
)?.map((Row) => (
)?.map((Row, rowIndex) => (
<div class="flex">
{Row.map((Pixel) => (
{Row.map((Pixel, pixelIndex) => (
<div>
{((Show) => {
return (
<div
class={`Pixel h-${Font} w-${Font} ${Show ? "bg-white" : "bg-black"}`}
/>
);
})(Pixel)}
{((Show) => (
<div
class={`Pixel h-${Font} w-${Font} ${
Show
? `Color ${
(charIndex +
rowIndex +
pixelIndex) %
2 ===
0
? "Left"
: "Right"
}`
: "bg-transparent"
} `}
style={
Show
? `animation-delay: ${
charIndex *
0.1 +
rowIndex *
0.05 +
pixelIndex *
0.02
}s;`
: ""
}
/>
))(Pixel)}
</div>
))}
</div>
Expand Down
4 changes: 4 additions & 0 deletions Source/Function/Scroll/Layout.astro
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,8 @@ interface Props {

<>
<Code client:only="solid-js" Text={Astro.props.Text ?? ""} Font={2} />

<style>
@import "@Function/Scroll/Stylesheet.css";
</style>
</>
60 changes: 60 additions & 0 deletions Source/Function/Scroll/Stylesheet.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
.Color {
position: relative;
overflow: hidden;
}

.Color {
&::before {
content: "";
position: absolute;
top: 0;
width: 300%;
height: 100%;
background: linear-gradient(
to right,
rgb(227, 224, 219) 0%,
rgb(227, 224, 219) 66.66%,
white 66.66%,
white 100%
);
animation: 8s infinite alternate ease-in;
}

&.Left::before {
left: 0;
animation-name: LeftSlide;
}

&.Right::before {
right: 0;
animation-name: RightSlide;
}
}

@keyframes LeftSlide {
0% {
transform: translateX(0);
}

45% {
transform: translateX(-33.33%);
}

100% {
transform: translateX(-66.66%);
}
}

@keyframes RightSlide {
0% {
transform: translateX(0);
}

45% {
transform: translateX(33.33%);
}

100% {
transform: translateX(66.66%);
}
}
6 changes: 2 additions & 4 deletions Source/pages/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,9 @@ const Index = Astro.url.pathname === "/" ? "-1" : "";
---

<Base>
<a href="/"
title="Status ⌛ Land 🏞️"
tabindex={Index}
>
<a href="/" title="Status ⌛ Land 🏞️" tabindex={Index}>
<Scroll Text="Status" />
</a>

<Commits />
</Base>
24 changes: 9 additions & 15 deletions Target/.vite/manifest.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,6 @@
{
"Source/Function/Commit/Layout.astro?astro&type=script&index=0&lang.ts": {
"file": "_astro/Layout.astro_astro_type_script_index_0_lang.BdpPsZh_.js",
"name": "Layout.astro_astro_type_script_index_0_lang",
"src": "Source/Function/Commit/Layout.astro?astro&type=script&index=0&lang.ts",
"isEntry": true
},
"Source/Layout/Base.astro?astro&type=script&index=0&lang.ts": {
"file": "_astro/Base.astro_astro_type_script_index_0_lang.CEGt5QMY.js",
"file": "_astro/Base.astro_astro_type_script_index_0_lang.DtvbEmm4.js",
"name": "Base.astro_astro_type_script_index_0_lang",
"src": "Source/Layout/Base.astro?astro&type=script&index=0&lang.ts",
"isEntry": true,
Expand All @@ -31,23 +25,23 @@
"file": "_astro/preload-helper.D21cck6N.js",
"name": "preload-helper"
},
"_web.D_hp9GMo.js": {
"file": "_astro/web.D_hp9GMo.js",
"_web.B203QFNt.js": {
"file": "_astro/web.B203QFNt.js",
"name": "web",
"isDynamicEntry": true
},
"astro-entry:@Function/Scroll/Code": {
"file": "_astro/Code.Clbmo1fi.js",
"file": "_astro/Code.DwGjiiXd.js",
"name": "Code",
"src": "astro-entry:@Function/Scroll/Code",
"isEntry": true,
"imports": [
"_preload-helper.D21cck6N.js",
"_web.D_hp9GMo.js"
"_web.B203QFNt.js"
],
"dynamicImports": [
"Source/Variable/Scroll/Matrix.ts",
"_web.D_hp9GMo.js"
"_web.B203QFNt.js"
]
},
"astro:scripts/page.js": {
Expand All @@ -60,12 +54,12 @@
]
},
"node_modules/@astrojs/solid-js/dist/client.js": {
"file": "_astro/client.DTSor4QK.js",
"file": "_astro/client.BovhHypR.js",
"name": "client",
"src": "node_modules/@astrojs/solid-js/dist/client.js",
"isEntry": true,
"imports": [
"_web.D_hp9GMo.js"
"_web.B203QFNt.js"
]
},
"node_modules/astro/components/ClientRouter.astro?astro&type=script&index=0&lang.ts": {
Expand All @@ -78,7 +72,7 @@
]
},
"node_modules/firebase/app/dist/esm/index.esm.js": {
"file": "_astro/index.esm.Bnaa-YML.js",
"file": "_astro/index.esm.Dawd341Z.js",
"name": "index.esm",
"src": "node_modules/firebase/app/dist/esm/index.esm.js",
"isDynamicEntry": true
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { _ as a } from "./preload-helper.D21cck6N.js";
(
await a(async () => {
const { initializeApp: a } = await import("./index.esm.Bnaa-YML.js");
const { initializeApp: a } = await import("./index.esm.Dawd341Z.js");
return { initializeApp: a };
}, [])
).initializeApp({
Expand Down
Loading

0 comments on commit b26abc9

Please sign in to comment.