File size: 3,681 Bytes
8b7b267
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Config Helper Demo</title>
  <style>
    :root {
      --teal-dark: #0d7377;
      --teal: #14b8a6;
      --teal-light: #2dd4bf;
      --cyan: #22d3ee;
      --text-primary: #0f2926;
      --text-secondary: #2a5f5a;
      --text-muted: #6b7280;
      --bg-main: #ffffff;
      --bg-secondary: #f8fdfc;
      --border-light: #e5e7eb;
    }

    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }

    body {
      font-family: system-ui, -apple-system, sans-serif;
      background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
      min-height: 100vh;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 20px;
    }

    .demo-container {
      text-align: center;
      color: white;
    }

    .demo-container h1 {
      font-size: 48px;
      margin-bottom: 16px;
      text-shadow: 0 2px 10px rgba(0,0,0,0.2);
    }

    .demo-container p {
      font-size: 20px;
      margin-bottom: 32px;
      opacity: 0.9;
    }

    .demo-btn {
      background: white;
      color: #667eea;
      border: none;
      padding: 16px 48px;
      border-radius: 12px;
      font-size: 18px;
      font-weight: 600;
      cursor: pointer;
      box-shadow: 0 10px 30px rgba(0,0,0,0.2);
      transition: all 0.3s;
      display: inline-flex;
      align-items: center;
      gap: 12px;
    }

    .demo-btn:hover {
      transform: translateY(-2px);
      box-shadow: 0 15px 40px rgba(0,0,0,0.3);
    }

    .demo-btn:active {
      transform: translateY(0);
    }

    .features {
      margin-top: 48px;
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
      gap: 24px;
      max-width: 800px;
      margin-left: auto;
      margin-right: auto;
    }

    .feature {
      background: rgba(255,255,255,0.1);
      backdrop-filter: blur(10px);
      padding: 24px;
      border-radius: 12px;
      border: 1px solid rgba(255,255,255,0.2);
    }

    .feature h3 {
      font-size: 18px;
      margin-bottom: 8px;
    }

    .feature p {
      font-size: 14px;
      opacity: 0.8;
      margin: 0;
    }
  </style>
</head>
<body>
  <div class="demo-container">
    <h1>πŸš€ API Configuration Helper</h1>
    <p>Click the button below to see all available backend services</p>
    
    <button class="demo-btn" id="open-config">
      <svg width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
        <path d="M12 2v20M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6"/>
      </svg>
      Open Configuration Guide
    </button>

    <div class="features">
      <div class="feature">
        <h3>πŸ“Š 10 Services</h3>
        <p>All backend APIs organized by category</p>
      </div>
      <div class="feature">
        <h3>πŸ“‹ Copy-Paste</h3>
        <p>One-click copy for all configurations</p>
      </div>
      <div class="feature">
        <h3>πŸ’» Code Examples</h3>
        <p>Working examples for each service</p>
      </div>
      <div class="feature">
        <h3>🎨 Clean UI</h3>
        <p>Compact and beautiful design</p>
      </div>
    </div>
  </div>

  <script type="module">
    import { ConfigHelperModal } from '/static/shared/components/config-helper-modal.js';

    const configHelper = new ConfigHelperModal();
    
    document.getElementById('open-config').addEventListener('click', () => {
      configHelper.show();
    });

    // Auto-open after 1 second for demo
    setTimeout(() => {
      configHelper.show();
    }, 1000);
  </script>
</body>
</html>