mirror of
https://github.com/LucasVbr/notion-widgets.git
synced 2026-05-13 17:21:55 +00:00
Add layout for Markdown files
This commit is contained in:
+4
-1
@@ -12,7 +12,10 @@
|
|||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@astrojs/image": "^0.17.0",
|
"@astrojs/image": "^0.17.0",
|
||||||
"@astrojs/tailwind": "^4.0.0",
|
"@astrojs/tailwind": "^4.0.0",
|
||||||
"astro": "^2.6.6",
|
"astro": "^2.7.0",
|
||||||
"tailwindcss": "^3.3.2"
|
"tailwindcss": "^3.3.2"
|
||||||
|
},
|
||||||
|
"devDependencies": {
|
||||||
|
"@tailwindcss/typography": "^0.5.9"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1,12 @@
|
|||||||
|
---
|
||||||
|
import Layout from './Layout.astro';
|
||||||
|
const {frontmatter} = Astro.props;
|
||||||
|
---
|
||||||
|
|
||||||
|
<Layout title={frontmatter.title}>
|
||||||
|
<main class="w-screen min-h-screen bg-gray-400 p-10">
|
||||||
|
<article class="container bg-gray-300 mx-auto p-5 prose lg:prose-xl rounded-md shadow-2xl">
|
||||||
|
<slot/>
|
||||||
|
</article>
|
||||||
|
</main>
|
||||||
|
</Layout>
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
---
|
||||||
|
title: Getting Start
|
||||||
|
layout: ../../layouts/MarkdownFileLayout.astro
|
||||||
|
---
|
||||||
|
|
||||||
|
# Getting Start
|
||||||
|
|
||||||
@@ -1,2 +0,0 @@
|
|||||||
# Getting Start
|
|
||||||
|
|
||||||
@@ -2,7 +2,6 @@
|
|||||||
import Layout from '../layouts/Layout.astro';
|
import Layout from '../layouts/Layout.astro';
|
||||||
import {WidgetState} from '../models/WidgetState';
|
import {WidgetState} from '../models/WidgetState';
|
||||||
import WidgetCardList from '../components/WidgetCardList.astro';
|
import WidgetCardList from '../components/WidgetCardList.astro';
|
||||||
import Card from '../layouts/Card.astro';
|
|
||||||
|
|
||||||
const widgets = await Astro.glob<WidgetState>('./widgets/*.astro');
|
const widgets = await Astro.glob<WidgetState>('./widgets/*.astro');
|
||||||
---
|
---
|
||||||
|
|||||||
+8
-6
@@ -1,8 +1,10 @@
|
|||||||
/** @type {import('tailwindcss').Config} */
|
/** @type {import('tailwindcss').Config} */
|
||||||
module.exports = {
|
module.exports = {
|
||||||
content: ['./src/**/*.{astro,html,js,jsx,md,mdx,svelte,ts,tsx,vue}'],
|
content: ['./src/**/*.{astro,html,js,jsx,md,mdx,svelte,ts,tsx,vue}'],
|
||||||
theme: {
|
theme: {
|
||||||
extend: {},
|
extend: {},
|
||||||
},
|
},
|
||||||
plugins: [],
|
plugins: [
|
||||||
}
|
require('@tailwindcss/typography'),
|
||||||
|
],
|
||||||
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user