File size: 2,566 Bytes
0d5160e
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
d58051a
 
 
0d5160e
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
c3c7ae8
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Claude Agent Picker Pattern 🎯</title>
    <link rel="stylesheet" href="style.css">
    <script src="https://cdn.jsdelivr.net/npm/marked/marked.min.js"></script>
    <link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700;800&family=JetBrains+Mono:wght@400;600&display=swap" rel="stylesheet">
</head>
<body>
    <div class="hero-gradient"></div>
    <div class="container">
        <div id="content"></div>
        <footer class="footer">
            <p>💡 A late-night idea by <a href="https://danielrosehill.com" target="_blank">Daniel Rosehill</a></p>
            <p class="footer-date">October 31, 2025</p>
            <a href="https://danielrosehill.com" target="_blank">
                <img src="badge.png" alt="Daniel Rosehill" style="width: 480px; max-width: 100%; margin-top: 20px;">
            </a>
        </footer>
    </div>

    <script>
        // Fetch and render the markdown
        fetch('source/README.md')
            .then(response => response.text())
            .then(text => {
                // Configure marked
                marked.setOptions({
                    breaks: true,
                    gfm: true
                });

                // Convert markdown to HTML
                const html = marked.parse(text);

                // Update image paths to point to source/images/
                const updatedHtml = html.replace(/src="images\//g, 'src="source/images/');

                document.getElementById('content').innerHTML = updatedHtml;

                // Add some animation to images after loading
                setTimeout(() => {
                    document.querySelectorAll('img').forEach((img, index) => {
                        img.style.opacity = '0';
                        img.style.transform = 'translateY(20px)';
                        setTimeout(() => {
                            img.style.transition = 'all 0.6s ease-out';
                            img.style.opacity = '1';
                            img.style.transform = 'translateY(0)';
                        }, index * 100);
                    });
                }, 100);
            })
            .catch(error => {
                console.error('Error loading markdown:', error);
                document.getElementById('content').innerHTML = '<p class="error">Error loading content. Please try again.</p>';
            });
    </script>
</body>
</html>