Spaces:
Running
Running
Download contact.html from Lunaron/lunaron-tools: direct link, hf CLI and curl.
- Browser
- Download file 7.29 kB
-
https://huggingface.co/spaces/Lunaron/lunaron-tools/resolve/main/contact.html
- Command line
-
hf download hf://spaces/Lunaron/lunaron-tools/contact.html
-
curl -L -o contact.html https://huggingface.co/spaces/Lunaron/lunaron-tools/resolve/main/contact.html
7.29 kB
| <html lang="ja" data-theme="light"> | |
| <head> | |
| <meta charset="UTF-8" /> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0" /> | |
| <title>お問い合わせ - Lunaron Tools</title> | |
| <link href="https://fonts.googleapis.com/css2?family=BIZ+UDPGothic:wght@400;700&family=Inter:wght@400;500;600;700;800&family=Syne:wght@400;500;600;700;800&display=swap" rel="stylesheet" /> | |
| <link rel="stylesheet" href="styles.css" /> | |
| <style> | |
| .page-container { max-width: 600px; margin: 0 auto; padding: 60px 24px; min-height: 80vh; } | |
| .page-title { font-family: 'Syne', sans-serif; font-size: 36px; font-weight: 800; margin-bottom: 32px; color: var(--text-primary); text-align: center; } | |
| .content-box { background: var(--bg-glass); backdrop-filter: blur(12px); border: 1px solid var(--border-solid); border-radius: var(--radius-lg); padding: 40px; box-shadow: var(--shadow-glass); } | |
| .form-group { margin-bottom: 20px; } | |
| .form-label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 8px; color: var(--text-secondary); } | |
| .form-input, .form-textarea { width: 100%; padding: 14px 18px; border: 1px solid var(--border-solid); border-radius: var(--radius-md); background: var(--bg-primary); color: var(--text-primary); font-size: 15px; font-family: inherit; transition: all 0.2s; box-sizing: border-box; } | |
| .form-input:focus, .form-textarea:focus { border-color: #00e5ff; outline: none; box-shadow: 0 0 0 4px rgba(0,229,255,0.1); } | |
| .form-textarea { min-height: 150px; resize: vertical; } | |
| .form-submit { width: 100%; padding: 16px; border-radius: var(--radius-full); border: none; background: var(--text-primary); color: var(--bg-primary); font-weight: 800; font-size: 16px; cursor: pointer; transition: all 0.3s; margin-top: 10px; display: flex; align-items: center; justify-content: center; gap: 8px; } | |
| .form-submit:hover:not(:disabled) { background: var(--accent-grad); color: #fff; box-shadow: 0 10px 25px var(--accent-glow); transform: translateY(-2px); } | |
| .form-submit:disabled { opacity: 0.7; cursor: not-allowed; } | |
| .contact-success { display: none; text-align: center; padding: 40px 20px; } | |
| .contact-success svg { width: 64px; height: 64px; color: #34a853; margin-bottom: 24px; animation: scaleIn 0.5s cubic-bezier(0.16, 1, 0.3, 1); } | |
| @keyframes scaleIn { 0% { transform: scale(0); opacity: 0; } 100% { transform: scale(1); opacity: 1; } } | |
| .spinner { border: 3px solid rgba(255,255,255,0.3); border-top: 3px solid var(--bg-primary); border-radius: 50%; width: 20px; height: 20px; animation: spin 1s linear infinite; display: none; } | |
| @keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } } | |
| </style> | |
| </head> | |
| <body> | |
| <div id="nav-placeholder"></div> | |
| <main> | |
| <div class="page-container reveal"> | |
| <h1 class="page-title">お問い合わせ</h1> | |
| <p style="text-align: center; color: var(--text-secondary); margin-bottom: 32px;">ツールに関するご質問、不具合の報告、またはエンタープライズ利用に関するご相談はこちらから。</p> | |
| <div class="content-box"> | |
| <!-- 成功メッセージ画面 --> | |
| <div id="contact-success" class="contact-success"> | |
| <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M22 11.08V12a10 10 0 1 1-5.93-9.14"/><path d="M22 4L12 14.01l-3-3"/></svg> | |
| <h2 style="font-size: 24px; font-weight: 800; margin-bottom: 16px;">送信完了しました</h2> | |
| <p style="color: var(--text-secondary); line-height: 1.6; margin-bottom: 32px;">お問い合わせいただきありがとうございます。<br>内容を確認の上、担当者より折り返しご連絡いたします。</p> | |
| <button class="btn-ghost" onclick="window.location.href='index.html'">トップページへ戻る</button> | |
| </div> | |
| <!-- フォーム本体 --> | |
| <form id="contact-form" onsubmit="handleContactSubmit(event)"> | |
| <!-- ※実際にはFormspreeなどのエンドポイントを action="https://formspree.io/f/XXXXX" のように指定するか、JSでAPIを叩きます --> | |
| <div class="form-group"> | |
| <label class="form-label" for="contact-name">お名前 <span style="color:#ef4444">*</span></label> | |
| <input class="form-input" type="text" id="contact-name" placeholder="Lunaron 太郎" required /> | |
| </div> | |
| <div class="form-group"> | |
| <label class="form-label" for="contact-email">メールアドレス <span style="color:#ef4444">*</span></label> | |
| <input class="form-input" type="email" id="contact-email" placeholder="you@example.com" required /> | |
| </div> | |
| <div class="form-group"> | |
| <label class="form-label" for="contact-category">お問い合わせ種別</label> | |
| <select class="form-input" id="contact-category"> | |
| <option>機能に関するご質問・ご要望</option> | |
| <option>不具合の報告</option> | |
| <option>プロプランに関するお問い合わせ</option> | |
| <option>法人向けプラン(API利用等)のご相談</option> | |
| <option>その他</option> | |
| </select> | |
| </div> | |
| <div class="form-group"> | |
| <label class="form-label" for="contact-message">お問い合わせ内容 <span style="color:#ef4444">*</span></label> | |
| <textarea class="form-textarea" id="contact-message" placeholder="具体的な内容をご記入ください..." required></textarea> | |
| </div> | |
| <button class="form-submit" type="submit" id="submit-btn"> | |
| <span id="submit-text">送信する</span> | |
| <div class="spinner" id="submit-spinner"></div> | |
| </button> | |
| </form> | |
| </div> | |
| </div> | |
| </main> | |
| <div id="footer-placeholder"></div> | |
| <div id="auth-placeholder"></div> | |
| <script src="components/auth.js"></script> | |
| <script src="main.js"></script> | |
| <script type="module" src="app.js"></script> | |
| <script src="components/layout.js"></script> | |
| <script> | |
| (function() { | |
| const t = localStorage.getItem('lunaronTheme') || 'light'; | |
| document.documentElement.setAttribute('data-theme', t); | |
| if(window.LunaronLayout) window.LunaronLayout.inject(); | |
| })(); | |
| function handleContactSubmit(e) { | |
| e.preventDefault(); | |
| const btn = document.getElementById('submit-btn'); | |
| const text = document.getElementById('submit-text'); | |
| const spinner = document.getElementById('submit-spinner'); | |
| // 送信中状態(UIモック) | |
| btn.disabled = true; | |
| text.textContent = '送信中...'; | |
| spinner.style.display = 'block'; | |
| // 擬似的なネットワーク通信の遅延(1.5秒) | |
| setTimeout(() => { | |
| // ※ 本番環境ではここでフェッチ(fetch)APIを使用してSupabase Edge FunctionsやFormspreeにPOSTします | |
| // 例: fetch('https://api.lunaron.com/contact', { method: 'POST', body: ... }) | |
| document.getElementById('contact-form').style.display = 'none'; | |
| document.getElementById('contact-success').style.display = 'block'; | |
| }, 1500); | |
| } | |
| </script> | |
| </body> | |
| </html> | |