Coding Madlad (@codingmadladold) header
Coding Madlad (@codingmadladold) profile picture

For my new content, got to @codingmadlad

CHECK OUT MY FREE TEMPLATES →
Joined April 2023
Who want's to see this turned into a Notion + Website Template Bundle?
2
220
🚨 MY ECOMMERCE STORE TEMPLATE HAS JUST BEEN DROPPED! 🚨 And I need your help to make my first website template a success. Go to ProductHunt and Upvote my template! producthunt.com/posts/ecomme…
1
1
1
170
It doesn't take much coding knowledge to turn Notion into a CMS. Drop me a DM if you want the Code. landing.madlad.store/ecommer…
2
89
The Madlad Links has been published. How does it look?
2
7
200
When your website is so good it starts lagging.
1
2
117
Interesting Easter eggs.
Alright @vercel. You got some explaining to do.
3
76
Alright @vercel. You got some explaining to do.
1
1
2
136
Damn... The only thing I'd ran, was my website.
4
108
NEW NOTION TEMPLATE! Introducing... Resource Madness! (Yeah, I remade it)
1
5
176
Replying to @bzagrodzki
Assuming you're using the same style as Vercel. You could use shiki. CSS - index.css :root { --editor-padding: 16px 16px 21px 16px; --shiki-foreground: hsla(0, 0%, 9%,1); --shiki-token-constant: oklch(53.18% 0.2399 256.9900584162342); --shiki-token-string: oklch(51.75% 0.1453 147.65); --shiki-token-comment: hsla(0, 0%, 40%,1); --shiki-token-keyword: oklch(53.5% 0.2058 2.84); --shiki-token-parameter: oklch(52.79% 0.1496 54.65); --shiki-token-function: oklch(47.18% 0.2579 304); --shiki-token-string-expression: oklch(51.75% 0.1453 147.65); --shiki-token-punctuation: hsla(0, 0%, 9%,1); --shiki-token-link: oklch(51.75% 0.1453 147.65); --shiki-token-number: #111111; --shiki-token-property: oklch(53.18% 0.2399 256.9900584162342); } .shiki .token.constant { color: var(--shiki-token-constant); } .shiki .token.string { color: var(--shiki-token-string); } .shiki .token.comment { color: var(--shiki-token-comment); } .shiki .token.keyword { color: var(--shiki-token-keyword); } .shiki .token.parameter { color: var(--shiki-token-parameter); } .shiki .token.function { color: var(--shiki-token-function); } .shiki .token.string-expression { color: var(--shiki-token-string-expression); } .shiki .token.punctuation { color: var(--shiki-token-punctuation); } .shiki .token.link { color: var(--shiki-token-link); } .shiki .token.number { color: var(--shiki-token-number); } .shiki .token.property { color: var(--shiki-token-property); } CodeHighlighter.jsx import React, { useEffect, useState } from 'react'; import * as shiki from 'shiki'; const CodeHighlighter = ({ code }) => { const [highlightedCode, setHighlightedCode] = useState(''); useEffect(() => { const vercelTheme = shiki.createCssVariablesTheme({ name: 'vercel', variablePrefix: '--shiki-', variableDefaults: {}, fontStyle: true }); const highlightCode = async () => { const highlighter = await shiki.getHighlighter({ langs: ['jsx'], themes: [vercelTheme] }); const highlighted = highlighter.codeToHtml(code, { lang: 'jsx', theme: 'vercel' }); setHighlightedCode(highlighted); }; highlightCode(); }, [code]); return ( <div className="shiki" style={{ padding: 'var(--editor-padding)', color: 'var(--shiki-foreground)' }} dangerouslySetInnerHTML={{ __html: highlightedCode }} /> ); }; export default CodeHighlighter; App.jsx import React from 'react'; import CodeHighlighter from './CodeHighlighter'; const codeSnippet = `import { Button } from "@/components/ui/button"; export const Footer = () => { return ( <footer className="flex items-center justify-center md:mt-12"> <Button className="w-full max-w-96 size="lg"> Archive and next </Button> </footer> ); };`; function App() { return ( <div className="App"> <CodeHighlighter code={codeSnippet} /> </div> ); } export default App;
37
The Template is complete! The only problem is... school starts in 2 days. So, the release day would be moved to... JUNE 1ST (SATURDAY)!
1
1
4
119
Replying to @samstooff
You ain't the only one mate.
1
1
25
Update on my website: - Pushed to production - Removed mock data
1
3
100
What do you think about all the themes? Based on Shadcn-UI.
1
4
112
Update on the ECommerce Store Madness - Added every theme you could possibly think of. - Set up project environment variables.
1
3
103
Time to reveal my best project yet. Introducing... ECommerce Store Madness! That's right! My first ever website template!
1
2
174
Tell me what's different today.
1
3
129
The Gumroad page is ALMOST alive again! Check it out at gumroad.madlad.store
1
8
138
Some people have other worldly creativity. @bzagrodzki. you, my friend, are a genius.
1
4
124