feat: update now page
This commit is contained in:
parent
0283946952
commit
ac5cf19351
5 changed files with 94 additions and 9 deletions
7
src/constants/bkup/2025-02-15.json
Normal file
7
src/constants/bkup/2025-02-15.json
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
{
|
||||||
|
"title": "Moved projects to SourceHut",
|
||||||
|
"description": "Learning other ways of software collaboration",
|
||||||
|
"publishDate": "2025-02-15",
|
||||||
|
"publishedOn": "the 15th of February, 2025",
|
||||||
|
"publishState": ""
|
||||||
|
}
|
6
src/constants/bkup/2025-02-15.md
Normal file
6
src/constants/bkup/2025-02-15.md
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
I have moved main activities (e.g, repository, planned work, announcements/discussions) on my projects to [SourceHut](https://sourcehut.org) — a *code forge* much like GitHub, GitLab or Codeberg, but with significant differences.
|
||||||
|
|
||||||
|
The projects are still automatically mirrored to GitHub using automatic `git push --mirror` via [SourceHut Builds](https://builds.sr.ht).
|
||||||
|
|
||||||
|
👉 [My projects on SourceHut](https://sr.ht/~ayoayco/)
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
"title": "Moved projects to SourceHut",
|
"title": "Migrated some JS projects to TS",
|
||||||
"description": "Learning other ways of software collaboration",
|
"description": "TypeScript is making some good moves recently",
|
||||||
"publishDate": "2025-02-15",
|
"publishDate": "2025-03-13",
|
||||||
"publishedOn": "the 15th of February, 2025",
|
"publishedOn": "",
|
||||||
"publishState": ""
|
"publishState": ""
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
I have moved main activities (e.g, repository, planned work, announcements/discussions) on my projects to [SourceHut](https://sourcehut.org) — a *code forge* much like GitHub, GitLab or Codeberg, but with significant differences.
|
Started some migrations of JS projects to TypeScript. There are a few moves from TypeScript & node that influenced me to do this:
|
||||||
|
|
||||||
The projects are still automatically mirrored to GitHub using automatic `git push --mirror` via [SourceHut Builds](https://builds.sr.ht).
|
|
||||||
|
|
||||||
👉 [My projects on SourceHut](https://sr.ht/~ayoayco/)
|
|
||||||
|
|
||||||
|
1. [Node's type stripping](https://nodejs.org/api/typescript.html#type-stripping) - allows execution of TypeScript files that only contains erasable TypeScript syntax.
|
||||||
|
2. [TypeScript's erasable syntax only](https://www.totaltypescript.com/erasable-syntax-only) - a flag to tell `tsc` to throw error on syntax that are not erasable (e.g., enums, namespaces, and class parameter properties)
|
||||||
|
3. [TypeScript native compiler](https://devblogs.microsoft.com/typescript/typescript-native-port/) - promises 10x faster typescript compilation
|
||||||
|
|
73
src/pages/now/and-then/posts/2025-02-15.astro
Normal file
73
src/pages/now/and-then/posts/2025-02-15.astro
Normal file
|
@ -0,0 +1,73 @@
|
||||||
|
---
|
||||||
|
import Layout from '../../../../layouts/Layout.astro'
|
||||||
|
import Footer from '../../../../components/Footer.astro'
|
||||||
|
|
||||||
|
const title = `Moved projects to SourceHut`
|
||||||
|
const description = `Learning other ways of software collaboration`
|
||||||
|
let publishedOn = `the 15th of February, 2025`
|
||||||
|
const publishDate = `2025-02-15`
|
||||||
|
const publishState = ``
|
||||||
|
const content = `<p>I have moved main activities (e.g, repository, planned work, announcements/discussions) on my projects to <a href="https://sourcehut.org">SourceHut</a> — a <em>code forge</em> much like GitHub, GitLab or Codeberg, but with significant differences.</p>
|
||||||
|
<p>The projects are still automatically mirrored to GitHub using automatic <code>git push --mirror</code> via <a href="https://builds.sr.ht">SourceHut Builds</a>.</p>
|
||||||
|
<p>👉 <a href="https://sr.ht/~ayoayco/">My projects on SourceHut</a></p>`
|
||||||
|
|
||||||
|
publishedOn = publishedOn === '' ? publishDate : publishedOn
|
||||||
|
---
|
||||||
|
|
||||||
|
<Layout title={title} description={description}>
|
||||||
|
<main>
|
||||||
|
<h1><span class="text-gradient">{title}</span></h1>
|
||||||
|
<p>
|
||||||
|
<em>
|
||||||
|
Published on
|
||||||
|
<time datetime={publishDate}>{publishedOn}</time>
|
||||||
|
{publishState}
|
||||||
|
</em>
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<Fragment set:html={content} />
|
||||||
|
|
||||||
|
<Footer />
|
||||||
|
</main>
|
||||||
|
</Layout>
|
||||||
|
|
||||||
|
<style>
|
||||||
|
main {
|
||||||
|
margin: auto;
|
||||||
|
padding: 1em;
|
||||||
|
max-width: var(--content-width);
|
||||||
|
}
|
||||||
|
|
||||||
|
.text-gradient {
|
||||||
|
font-weight: 900;
|
||||||
|
background-image: var(--ayo-gradient);
|
||||||
|
animation: pulse 4s ease-in-out infinite;
|
||||||
|
background-size: 500% 500%;
|
||||||
|
-webkit-background-clip: text;
|
||||||
|
-webkit-text-fill-color: transparent;
|
||||||
|
background-size: 100% 200%;
|
||||||
|
background-position-y: 100%;
|
||||||
|
border-radius: 0.4rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.highlighted-content {
|
||||||
|
margin: 1rem 0;
|
||||||
|
background: #4f39fa;
|
||||||
|
padding: 1rem;
|
||||||
|
border-radius: 0.4rem;
|
||||||
|
color: var(--color-bg);
|
||||||
|
}
|
||||||
|
|
||||||
|
.highlighted-content code {
|
||||||
|
font-size: var(--font-size-base);
|
||||||
|
border: 0.1em solid var(--color-border);
|
||||||
|
border-radius: 4px;
|
||||||
|
padding: 0.15em 0.25em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.link-card-grid {
|
||||||
|
display: grid;
|
||||||
|
gap: 1rem;
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
|
</style>
|
Loading…
Reference in a new issue