Skip to content

Commit

Permalink
Update Mr. Crypto Indexer configuration and
Browse files Browse the repository at this point in the history
documentation
  • Loading branch information
DanielSintimbrean committed Nov 18, 2023
1 parent 907dab4 commit 7d30a81
Show file tree
Hide file tree
Showing 4 changed files with 46 additions and 22 deletions.
18 changes: 11 additions & 7 deletions web/astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -6,22 +6,26 @@ import tailwind from "@astrojs/tailwind";
export default defineConfig({
integrations: [
starlight({
title: "Docs with Tailwind",
title: "Mr. Crypto Indexer",
social: {
github: "https://github.com/withastro/starlight",
github: "https://github.com/Racks-Community/MrCryptoIndexer/",
"x.com": "https://x.com/mrcryptobyracks",
},
editLink: {
baseUrl:
"https://github.com/Racks-Community/MrCryptoIndexer/edit/main/web",
},
sidebar: [
{
label: "Introducción",
items: [
// Each item here is one entry in the navigation menu.
{ label: "Motivación", link: "/introduccion/motivacion" },
{
label: "Motivación",
link: "/introduccion/motivacion",
},
],
},
{
label: "Reference",
autogenerate: { directory: "reference" },
},
],
customCss: ["./src/tailwind.css"],
}),
Expand Down
Binary file added web/src/assets/mrc-indexer.webp
Binary file not shown.
23 changes: 15 additions & 8 deletions web/src/content/docs/index.mdx
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
---
title: Welcome to Starlight
description: Get started building your docs site with Starlight.
title: Docs Mr. Crypto Indexer
description: Get all data from Mr. Crypto NFT Collection
template: splash
hero:
title: |
Mr. Crypto
Mr. Crypto <br />
<span
class="font-black text-transparent
bg-clip-text bg-gradient-to-b
Expand All @@ -13,15 +13,22 @@ hero:
>
Indexer
</span>
tagline: Congrats on setting up a new Starlight project!
tagline: Fast, flexible, and efficent.
image:
file: ../../assets/mrc-indexer.webp
actions:
- text: Example Guide
link: /introduccion/motivacion/
- text: Documentación
link: /MrCryptoIndexer/introduccion/motivacion/
icon: right-arrow
variant: primary
- text: Read the Starlight docs
link: https://starlight.astro.build
- text: Probar en vivo
link: https://indexer.mrcryptonft.com/?query=query+example+%7B%0A++mrCryptoTokens%28first%3A+5%29%7B%0A++++tokenId%0A++++imageURL%0A++++Owner%7B%0A++++++address%0A++++%7D%0A++%7D%0A%7D
icon: external
variant: secondary
- text: Mr. Crypto - OpenSea
link: https://opensea.io/es/collection/mrcrypto-by-racksmafia
icon: external
variant: minimal
---

import { Card, CardGrid } from "@astrojs/starlight/components";
Expand Down
27 changes: 20 additions & 7 deletions web/tailwind.config.mjs
Original file line number Diff line number Diff line change
@@ -1,17 +1,30 @@
import colors from "tailwindcss/colors";
import starlightPlugin from "@astrojs/starlight-tailwind";

// Generated color palettes
const accent = {
200: "#d0c0ea",
500: "#864ac4",
600: "#8247c0",
900: "#3c2458",
950: "#2a1c3c",
};
const gray = {
100: "#f5f6f8",
200: "#eceef2",
300: "#c0c2c7",
400: "#888b96",
500: "#545861",
700: "#353841",
800: "#24272f",
900: "#17181c",
};

/** @type {import('tailwindcss').Config} */
export default {
content: ["./src/**/*.{astro,html,js,jsx,md,mdx,svelte,ts,tsx,vue}"],
theme: {
extend: {
colors: {
// Your preferred accent color. Indigo is closest to Starlight’s defaults.
accent: colors.indigo,
// Your preferred gray scale. Zinc is closest to Starlight’s defaults.
gray: colors.zinc,
},
colors: { accent, gray },
},
},
plugins: [starlightPlugin()],
Expand Down

0 comments on commit 7d30a81

Please sign in to comment.