-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
41 changed files
with
250 additions
and
39 deletions.
There are no files selected for viewing
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<div | ||
class="group block of-hidden border:(~ base rounded-lg) hover:(scale-101 shadow-xl z-10) transition-all duration-500 bg-base relative" | ||
> | ||
<div class="prose prose-sm p4 m0 pb3"> | ||
<div class="prose m-auto slide-enter-content"> | ||
<slot /> | ||
</div> | ||
</div> | ||
</div> |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
--- | ||
import type { Props } from 'astro-vitesse/props' | ||
import Default from 'astro-vitesse/components/Head.astro' | ||
// Get the URL of the generated image for the current page using its | ||
// ID and replace the file extension with `.png`. | ||
// const ogImageUrl = new URL(`/og/${Astro.props.id.replace(/\.\w+$/, '.png')}`, Astro.site) | ||
const ogImageUrl = new URL(`/og/${Astro.props.slug ? Astro.props.slug : 'index' + '.png'}`, Astro.site) | ||
--- | ||
|
||
<!-- Render the default <Head/> component. --> | ||
<Default {...Astro.props}><slot /></Default> | ||
|
||
<!-- Render the <meta/> tags for the Open Graph images. --> | ||
<meta property="og:image" content={ogImageUrl} /> | ||
<meta name="twitter:image" content={ogImageUrl} /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
--- | ||
import { getImage } from 'astro:assets' | ||
export type Props = { | ||
href: string | ||
iconUrl: string | ||
} | ||
const { href, iconUrl } = Astro.props | ||
const icon = await getImage({ | ||
src: iconUrl, | ||
inferSize: true, | ||
}) | ||
--- | ||
|
||
<a href={href} class="markdown-magic-link markdown-magic-link-link" target="_blank" rel="noopener"> | ||
<span class="markdown-magic-link-image" style={`background-image: url("${icon.src}");`}> </span> | ||
<slot /> | ||
</a> |
6 changes: 3 additions & 3 deletions
6
...ground/src/components/SponsorButton.astro → docs/src/components/SponsorButton.astro
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
<p>If you enjoy my work and find them useful, consider sponsor me to help Open Source sustainable. Thank you!</p> | ||
<p>{Astro.locals.t('sponsor.thanks')}</p> | ||
|
||
<p class="flex gap-2 flex-wrap"> | ||
<a href="https://github.com/sponsors/adrian-ub" target="_blank" class="group inline-block btn-rose"> | ||
<span i-ph-heart-duotone group-hover="i-ph-heart-fill text-rose" transition-all duration-200 ease-out></span> | ||
Sponsor to support Adrián | ||
{Astro.locals.t('sponsor.to-suport')} Adrián | ||
</a> | ||
<a href="https://github.com/sponsors/antfu" target="_blank" class="group btn-yellow inline-block"> | ||
<span i-ph-lightning-duotone group-hover="i-ph-lightning-fill text-yellow" transition-all duration-200 ease-out> | ||
</span> | ||
Sponsor to support Anthony | ||
{Astro.locals.t('sponsor.to-suport')} Anthony | ||
</a> | ||
</p> |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
--- | ||
title: Astro Vitesse | ||
display: 'Dale un toque elegante a tus páginas con Astro Vitesse' | ||
description: 'Dale un toque elegante a tus páginas con Astro Vitesse' | ||
--- | ||
|
||
import Card from '@/components/Card.astro' | ||
import SponsorButton from '@/components/SponsorButton.astro' | ||
import LinkWithIcon from '@/components/LinkWithIcon.astro' | ||
|
||
Todo lo que necesitas para crear un sitio web espectacular. Rápido, asequible y fácil de usar. | ||
|
||
Está inspirado en <LinkWithIcon href="https://antfu.me" iconUrl="https://antfu.me/favicon.svg">antfu.me</LinkWithIcon> <br /> | ||
Desarrollado con <LinkWithIcon href="https://astro.build" iconUrl="https://github.com/withastro.png">Astro</LinkWithIcon> <br /> | ||
Basado en <LinkWithIcon href="https://starlight.astro.build" iconUrl="https://starlight.astro.build/favicon.svg">Starlight</LinkWithIcon> | ||
|
||
<div class="class flex flex-col space-y-4"> | ||
|
||
<Card> | ||
|
||
Incluye: navegación del sitio, internacionalización, SEO, tipografía fácil de leer, resaltado de código, modo oscuro y mucho más. | ||
|
||
</Card> | ||
|
||
<Card> | ||
|
||
Lleva tu lenguaje de marcado favorito. Astro Vitesse te ofrece validación de frontmatter integrada con seguridad de tipos en TypeScript. | ||
|
||
</Card> | ||
|
||
<Card> | ||
|
||
Astro Vitesse se ofrece como una solución completa, independiente de cualquier framework. Puedes extenderlo con Angular, React, Vue, Svelte, Solid y otros. | ||
|
||
</Card> | ||
|
||
</div> | ||
|
||
<div flex-auto /> | ||
|
||
--- | ||
|
||
Encuentrame en | ||
|
||
<p flex="~ gap-2 wrap" class="mt--2!"> | ||
<a href="https://github.com/adrian-ub" target="_blank"><span op75 class="i-simple-icons-github" /> GitHub</a> | ||
<a href="https://elk.zone/mastodon.social/@adrianub" target="_blank"><span op75 class="i-simple-icons-mastodon" /> Mastodon</a> | ||
<a href="https://www.twitter.com/AdrianUB" target="_blank"><span op75 class="i-ri-twitter-x-fill" /> Twitter</a> | ||
</p> | ||
|
||
--- | ||
|
||
<SponsorButton /> |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
--- | ||
title: Astro Vitesse | ||
display: 'Give your pages an elegant touch with Astro Vitesse' | ||
description: 'Give your pages an elegant touch with Astro Vitesse' | ||
--- | ||
|
||
import Card from '@/components/Card.astro' | ||
import SponsorButton from '@/components/SponsorButton.astro' | ||
import LinkWithIcon from '@/components/LinkWithIcon.astro' | ||
|
||
Everything you need to create a stunning website. Fast, affordable and easy to use. | ||
|
||
It's inspired by <LinkWithIcon href="https://antfu.me" iconUrl="https://antfu.me/favicon.svg">antfu.me</LinkWithIcon> <br /> | ||
Developed with <LinkWithIcon href="https://astro.build" iconUrl="https://github.com/withastro.png">Astro</LinkWithIcon> <br /> | ||
Based on <LinkWithIcon href="https://starlight.astro.build" iconUrl="https://starlight.astro.build/favicon.svg">Starlight</LinkWithIcon> | ||
|
||
<div class="class flex flex-col space-y-4"> | ||
|
||
<Card> | ||
|
||
Includes: Site navigation, internationalization, SEO, easy-to-read typography, code highlighting, dark mode and more. | ||
|
||
</Card> | ||
|
||
<Card> | ||
|
||
Bring your favorite markup language. Astro Vitesse gives you built-in frontmatter validation with TypeScript type-safety. | ||
|
||
</Card> | ||
|
||
<Card> | ||
|
||
Astro Vitesse ships as a framework-agnostic, complete solution. Extend with React, Vue, Svelte, Solid, and more. | ||
|
||
</Card> | ||
|
||
</div> | ||
|
||
<div class="flex-auto"></div> | ||
|
||
--- | ||
|
||
Find me on | ||
|
||
<p flex="~ gap-2 wrap" class="mt--2!"> | ||
<a href="https://github.com/adrian-ub" target="_blank"><span op75 class="i-simple-icons-github" /> GitHub</a> | ||
<a href="https://elk.zone/mastodon.social/@adrianub" target="_blank"><span op75 class="i-ri-mastodon-fill" /> Mastodon</a> | ||
<a href="https://www.twitter.com/AdrianUB" target="_blank"><span op75 class="i-ri-twitter-x-fill" /> Twitter</a> | ||
</p> | ||
|
||
--- | ||
|
||
<SponsorButton /> |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
import { OGImageRoute } from 'astro-og-canvas' | ||
|
||
import { paths } from 'node_modules/astro-vitesse/src/utils/routing' | ||
|
||
const pages = Object.fromEntries(paths.map(({ params: { slug }, props: { | ||
entry, | ||
} }) => { | ||
return [!slug ? 'index' : slug, entry?.data] | ||
})) | ||
|
||
export const { getStaticPaths, GET } = OGImageRoute({ | ||
// Pass down the documentation pages. | ||
pages, | ||
// Define the name of the parameter used in the endpoint path, here `slug` | ||
// as the file is named `[...slug].ts`. | ||
param: 'slug', | ||
// Define a function called for each page to customize the generated image. | ||
getImageOptions: (_path, page: (typeof pages)[number]) => { | ||
return { | ||
// Use the page title and description as the image title and description. | ||
title: page.title, | ||
description: page.description, | ||
// Customize various colors and add a border. | ||
bgGradient: [[24, 24, 27]], | ||
border: { color: [63, 63, 70], width: 20 }, | ||
padding: 120, | ||
} | ||
}, | ||
}) |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"extends": "astro/tsconfigs/strict", | ||
"compilerOptions": { | ||
"baseUrl": ".", | ||
"paths": { | ||
"@/*": ["src/*"] | ||
} | ||
} | ||
} |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.