Skip to content

Commit

Permalink
Vorbereitungen für nextra v2
Browse files Browse the repository at this point in the history
  • Loading branch information
behrends committed Apr 6, 2022
1 parent eed454c commit bdb41cc
Show file tree
Hide file tree
Showing 7 changed files with 21 additions and 34 deletions.
8 changes: 4 additions & 4 deletions pages/_app.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import 'tailwindcss/tailwind.css';
import '../styles.css';
import 'nextra-theme-docs/style.css';
import '../styles/globals.css';
import Prism from 'prism-react-renderer/prism';

(typeof global !== 'undefined' ? global : window).Prism = Prism;
require('prismjs/components/prism-groovy');
require('prismjs/components/prism-kotlin');

export default function App({ Component, pageProps }) {
return <Component {...pageProps} />;
export default function Nextra({ Component, pageProps }) {
const getLayout = Component.getLayout || ((page) => page);
return getLayout(<Component {...pageProps} />);
}
8 changes: 5 additions & 3 deletions pages/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,19 +19,21 @@ export default function Home() {

<div className="flex flex-wrap items-center justify-around max-w-full mt-6 sm:w-full">
<Link href="/prog">
<h1 className="cursor-pointer">Programmierung (TIF)</h1>
<h1 className="text-3xl font-bold cursor-pointer">
Programmierung (TIF)
</h1>
</Link>
</div>

<div className="flex flex-wrap items-center justify-around max-w-full mt-6 sm:w-full">
<Link href="/web-prog">
<h1 className="cursor-pointer">
<h1 className="text-3xl font-bold cursor-pointer">
Web-Programmierung (WWI/WDS)
</h1>
</Link>
</div>

<div className="flex flex-wrap items-center justify-around max-w-full mt-6 sm:w-full">
<div className="text-3xl font-bold flex flex-wrap items-center justify-around max-w-full mt-6 sm:w-full">
<Link href="/mobile">
<h1 className="cursor-pointer">
Entwicklung mobiler Apps (TIF)
Expand Down
8 changes: 4 additions & 4 deletions pages/meta.json
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
{
"prog": {
"title": "Programmierung",
"type": "nav"
"type": "page"
},
"web-prog": {
"title": "Web-Programmierung",
"type": "nav"
"type": "page"
},
"mobile": {
"title": "Mobile Apps",
"type": "nav"
"type": "page"
},
"impressum": {
"title": "Impressum",
"type": "nav",
"type": "page",
"hidden": true
}
}
3 changes: 3 additions & 0 deletions styles.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
@tailwind base;
@tailwind components;
@tailwind utilities;
16 changes: 0 additions & 16 deletions styles/globals.css

This file was deleted.

6 changes: 1 addition & 5 deletions tailwind.config.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
module.exports = {
content: [
'./pages/**/*.{js,ts,jsx,tsx}',
'./pages/**/*.{md,js,ts,mdx,jsx,tsx}',
'./components/**/*.{js,ts,jsx,tsx}',
],
theme: {
extend: {},
},
plugins: [],
};
6 changes: 4 additions & 2 deletions theme.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
export default {
projectLink: 'https://github.com/behrends/workshops',
github: 'https://github.com/behrends/workshops', // project repo
docsRepositoryBase: 'https://github.com/behrends/workshops', // docs repo
titleSuffix: '',
Expand All @@ -8,9 +9,12 @@ export default {
unstable_stork: false,
darkMode: true,
defaultMenuCollapsed: false,
feedbackLink: () => 'Fragen / Rückmeldung auf GitHub →',
feedbackLabels: 'feedback',
floatTOC: true,
font: true,
footer: true,
footerEditLink: 'Diese Seite bei GitHub →',
footerText: (
<span>
<abbr
Expand Down Expand Up @@ -40,8 +44,6 @@ export default {
</a>
</span>
),
// footerText: `© ${new Date().getFullYear()} Erik Behrends.`,
footerEditLink: 'Diese Seite kommentieren oder bearbeiten.',
logo: <span className="font-extrabold">Workshops</span>,
head: (
<>
Expand Down

0 comments on commit bdb41cc

Please sign in to comment.