CARGO-TAXI

未关闭
#1,587 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
5/5
预计耗时
一周以上
新手友好度
10/100
Issue 类型
功能
描述清晰度
需要澄清
活跃度
活跃
技术栈
html, javascript, tailwindcss
领域
frontend, web-dev

调研方向

The issue contains a standalone Slovak cargo-taxi booking page, but gives no request describing what should be changed or how it relates to this repository. First check the repository’s contribution guidance and existing examples to establish whether this page is intended as a submission. Do not start implementation until the desired outcome and acceptance criteria are clarified.

由索引模型根据 Issue 内容生成。

描述

<title>Nákladný Taxík & Sťahovanie | Rezervácia</title> <script src="https://cdn.tailwindcss.com/"></script> <style> body { font-family: 'Inter', sans-serif; } </style>

🚚 NákladnýTaxík.sk

Objednať teraz

Rýchla preprava tovaru a sťahovanie

Spočítajte si orientačnú cenu prepravy a objednajte si dodávku za pár sekúnd.

<!-- Kalkulačka a Formulár -->
<div id="rezervacia" class="bg-white rounded-2xl shadow-xl p-6 md:p-8 mb-12">
  <h3 class="text-2xl font-bold text-gray-900 mb-6 border-b pb-3">Výpočet ceny a Rezervácia</h3>
  
  <form id="bookingForm" class="space-y-6" oninput="vypocitajCenu()">
    
    <!-- Výber vozidla -->
    <div>
      <label class="block font-semibold mb-2 text-gray-700">1. Vyberte typ vozidla:</label>
      <div class="grid grid-cols-1 sm:grid-cols-2 gap-4">
        <label class="border-2 rounded-xl p-4 flex items-center gap-3 cursor-pointer hover:border-blue-500 transition">
          <input type="radio" name="vozidlo" value="0.80" checked class="w-5 h-5 text-blue-600">
          <div>
            <div class="font-bold">Štandardná dodávka</div>
            <div class="text-sm text-gray-500">do 3.5t • 0.80 € / km</div>
          </div>
        </label>
        <label class="border-2 rounded-xl p-4 flex items-center gap-3 cursor-pointer hover:border-blue-500 transition">
          <input type="radio" name="vozidlo" value="1.10" class="w-5 h-5 text-blue-600">
          <div>
            <div class="font-bold">Veľká Maxi dodávka</div>
            <div class="text-sm text-gray-500">L4H3 • 1.10 € / km</div>
          </div>
        </label>
      </div>
    </div>

    <!-- Vzdialenosť a Pomocníci -->
    <div class="grid grid-cols-1 md:grid-cols-2 gap-4">
      <div>
        <label class="block font-semibold mb-1 text-gray-700">Odhadovaná vzdialenosť (km):</label>
        <input type="number" id="km" min="1" value="25" class="w-full border rounded-lg p-3 focus:ring-2 focus:ring-blue-500 outline-none">
      </div>
      <div>
        <label class="block font-semibold mb-1 text-gray-700">Pomocné práce / Vynášanie:</label>
        <select id="pomoc" class="w-full border rounded-lg p-3 focus:ring-2 focus:ring-blue-500 outline-none">
          <option value="0">Bez pomocníka (Len vodič)</option>
          <option value="15">+1 Pomocník (+15 € / hod)</option>
          <option value="30">+2 Pomocníci (+30 € / hod)</option>
        </select>
      </div>
    </div>

    <!-- Výsledok kalkulačky -->
    <div class="bg-blue-50 rounded-xl p-4 text-center border border-blue-200">
      <span class="text-gray-600 font-medium">Orientačná celková cena:</span>
      <div class="text-3xl font-extrabold text-blue-900 mt-1" id="vysledokCena">25.00 €</div>
      <span class="text-xs text-gray-500">*Základná nástupná sadzba je 5 €</span>
    </div>

    <hr class="my-6">

    <!-- Kontaktné údaje -->
    <h4 class="text-lg font-bold text-gray-800 mb-4">2. Kontaktné údaje a trasa:</h4>
    
    <div class="grid grid-cols-1 md:grid-cols-2 gap-4">
      <div>
        <label class="block font-medium text-sm text-gray-700 mb-1">Meno a priezvisko *</label>
        <input type="text" required placeholder="Ján Novák" class="w-full border rounded-lg p-3 outline-none focus:ring-2 focus:ring-blue-500">
      </div>
      <div>
        <label class="block font-medium text-sm text-gray-700 mb-1">Telefónne číslo *</label>
        <input type="tel" required placeholder="+421 9XX XXX XXX" class="w-full border rounded-lg p-3 outline-none focus:ring-2 focus:ring-blue-500">
      </div>
    </div>

    <div>
      <label class="block font-medium text-sm text-gray-700 mb-1">Adresa vyzdvihnutia *</label>
      <input type="text" required placeholder="Ulica, Mesto" class="w-full border rounded-lg p-3 outline-none focus:ring-2 focus:ring-blue-500">
    </div>

    <div>
      <label class="block font-medium text-sm text-gray-700 mb-1">Adresa doručenia *</label>
      <input type="text" required placeholder="Ulica, Mesto" class="w-full border rounded-lg p-3 outline-none focus:ring-2 focus:ring-blue-500">
    </div>

    <button type="submit" class="w-full bg-blue-600 hover:bg-blue-700 text-white font-bold py-4 rounded-xl shadow-lg transition text-lg">
      Odoslať nezáväznú objednávku
    </button>

  </form>
</div>
© 2026 Nákladný Taxík. Všetky práva vyhradené. <script> function vypocitajCenu() { const kilometrov = parseFloat(document.getElementById('km').value) || 0; const vozidloSadzba = parseFloat(document.querySelector('input[name="vozidlo"]:checked').value); const pomocSadzba = parseFloat(document.getElementById('pomoc').value); const zakladnaSadzba = 5.00; let celkovaCena = zakladnaSadzba + (kilometrov * vozidloSadzba) + pomocSadzba; document.getElementById('vysledokCena').innerText = celkovaCena.toFixed(2) + ' €'; } document.getElementById('bookingForm').addEventListener('submit', function(e) { e.preventDefault(); alert('Ďakujeme! Vaša objednávka bola odoslaná. Budeme vás kontaktovať.'); }); // Spustiť výpočet pri načítaní vypocitajCenu(); </script>
主要语言
TypeScript
星标
5.2k
派生
1.9k
平均合并
1 小时 4 分钟
30 天内合并 PR
2

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 有 Pull Request 模板
  • 没有贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

vercel/examples 的其他 Issue

查看 vercel/examples 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。