├── vercel.json ├── public ├── robots.txt ├── favicon.ico ├── images │ ├── logo.png │ ├── favicon-16x16.png │ ├── favicon-32x32.png │ ├── apple-touch-icon.png │ ├── mstile-150x150.png │ ├── android-chrome-192x192.png │ ├── android-chrome-256x256.png │ ├── android-chrome-512x512.png │ ├── site.webmanifest │ └── safari-pinned-tab.svg ├── fonts │ ├── MonoLisaVariableItalic.woff2 │ └── MonoLisaVariableNormal.woff2 └── browserconfig.xml ├── .eslintrc.json ├── postcss.config.js ├── jsconfig.json ├── components ├── Bottom.js ├── Layout.js ├── MarkdownPreview.js ├── MarkdownEditor.js └── Top.js ├── .gitignore ├── tailwind.config.js ├── next.config.js ├── package.json ├── README.md ├── markdown └── sample.md ├── pages ├── index.js └── _app.js └── styles └── globals.css /vercel.json: -------------------------------------------------------------------------------- 1 | {} -------------------------------------------------------------------------------- /public/robots.txt: -------------------------------------------------------------------------------- 1 | User-agent: * 2 | Disallow: -------------------------------------------------------------------------------- /.eslintrc.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "next/core-web-vitals" 3 | } 4 | -------------------------------------------------------------------------------- /public/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Owned-Operated/markdowneditor/HEAD/public/favicon.ico -------------------------------------------------------------------------------- /public/images/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Owned-Operated/markdowneditor/HEAD/public/images/logo.png -------------------------------------------------------------------------------- /postcss.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | plugins: { 3 | tailwindcss: {}, 4 | autoprefixer: {}, 5 | }, 6 | } 7 | -------------------------------------------------------------------------------- /public/images/favicon-16x16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Owned-Operated/markdowneditor/HEAD/public/images/favicon-16x16.png -------------------------------------------------------------------------------- /public/images/favicon-32x32.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Owned-Operated/markdowneditor/HEAD/public/images/favicon-32x32.png -------------------------------------------------------------------------------- /jsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "baseUrl": ".", 4 | "paths": { 5 | "@/*": ["./*"] 6 | } 7 | } 8 | } -------------------------------------------------------------------------------- /public/images/apple-touch-icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Owned-Operated/markdowneditor/HEAD/public/images/apple-touch-icon.png -------------------------------------------------------------------------------- /public/images/mstile-150x150.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Owned-Operated/markdowneditor/HEAD/public/images/mstile-150x150.png -------------------------------------------------------------------------------- /public/fonts/MonoLisaVariableItalic.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Owned-Operated/markdowneditor/HEAD/public/fonts/MonoLisaVariableItalic.woff2 -------------------------------------------------------------------------------- /public/fonts/MonoLisaVariableNormal.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Owned-Operated/markdowneditor/HEAD/public/fonts/MonoLisaVariableNormal.woff2 -------------------------------------------------------------------------------- /public/images/android-chrome-192x192.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Owned-Operated/markdowneditor/HEAD/public/images/android-chrome-192x192.png -------------------------------------------------------------------------------- /public/images/android-chrome-256x256.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Owned-Operated/markdowneditor/HEAD/public/images/android-chrome-256x256.png -------------------------------------------------------------------------------- /public/images/android-chrome-512x512.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Owned-Operated/markdowneditor/HEAD/public/images/android-chrome-512x512.png -------------------------------------------------------------------------------- /components/Bottom.js: -------------------------------------------------------------------------------- 1 | import React from 'react' 2 | import Link from 'next/link' 3 | 4 | export default function Bottom() { 5 | 6 | return ( 7 | 9 | ) 10 | } 11 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # See https://help.github.com/articles/ignoring-files/ for more about ignoring files. 2 | 3 | # dependencies 4 | /node_modules 5 | 6 | # next.js 7 | /.next/ 8 | 9 | # misc 10 | .DS_Store 11 | *.pem 12 | 13 | # local env files 14 | .env 15 | -------------------------------------------------------------------------------- /components/Layout.js: -------------------------------------------------------------------------------- 1 | import Top from './Top' 2 | import Bottom from './Bottom' 3 | 4 | export default function Layout({ children }) { 5 | return ( 6 | <> 7 | 8 |
{children}
9 | 10 | 11 | ) 12 | } -------------------------------------------------------------------------------- /tailwind.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | darkMode: ["class"], 3 | content: [ 4 | "./pages/**/*.{js,ts,jsx,tsx}", 5 | "./components/**/*.{js,ts,jsx,tsx}", 6 | ], 7 | plugins: [ 8 | require('@tailwindcss/typography'), 9 | require('@tailwindcss/aspect-ratio') 10 | ], 11 | } -------------------------------------------------------------------------------- /public/browserconfig.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | #00aba9 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /next.config.js: -------------------------------------------------------------------------------- 1 | const result = require('dotenv').config() 2 | 3 | module.exports = { 4 | reactStrictMode: false, 5 | webpack: (config, { buildId, dev, isServer, defaultLoaders, webpack }) => { 6 | config.module.rules.push({ 7 | test: /\.md$/, 8 | use: 'raw-loader', 9 | }) 10 | return config 11 | } 12 | } -------------------------------------------------------------------------------- /components/MarkdownPreview.js: -------------------------------------------------------------------------------- 1 | import React from 'react' 2 | import * as marked from 'marked' 3 | 4 | function MarkdownPreview({ content }) { 5 | return ( 6 |
10 | ) 11 | } 12 | 13 | export default MarkdownPreview -------------------------------------------------------------------------------- /components/MarkdownEditor.js: -------------------------------------------------------------------------------- 1 | import React from 'react' 2 | 3 | function MarkdownEditor({ value, onChange }) { 4 | return ( 5 |