init
25
.gitignore
vendored
Normal file
|
|
@ -0,0 +1,25 @@
|
||||||
|
# Logs
|
||||||
|
logs
|
||||||
|
*.log
|
||||||
|
npm-debug.log*
|
||||||
|
yarn-debug.log*
|
||||||
|
yarn-error.log*
|
||||||
|
pnpm-debug.log*
|
||||||
|
lerna-debug.log*
|
||||||
|
|
||||||
|
package-lock.json
|
||||||
|
node_modules
|
||||||
|
dist
|
||||||
|
dist-ssr
|
||||||
|
*.local
|
||||||
|
|
||||||
|
# Editor directories and files
|
||||||
|
.vscode/*
|
||||||
|
!.vscode/extensions.json
|
||||||
|
.idea
|
||||||
|
.DS_Store
|
||||||
|
*.suo
|
||||||
|
*.ntvs*
|
||||||
|
*.njsproj
|
||||||
|
*.sln
|
||||||
|
*.sw?
|
||||||
1
README.md
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
AhojSvet Landing page
|
||||||
29
eslint.config.js
Normal file
|
|
@ -0,0 +1,29 @@
|
||||||
|
import js from '@eslint/js'
|
||||||
|
import globals from 'globals'
|
||||||
|
import reactHooks from 'eslint-plugin-react-hooks'
|
||||||
|
import reactRefresh from 'eslint-plugin-react-refresh'
|
||||||
|
import { defineConfig, globalIgnores } from 'eslint/config'
|
||||||
|
|
||||||
|
export default defineConfig([
|
||||||
|
globalIgnores(['dist']),
|
||||||
|
{
|
||||||
|
files: ['**/*.{js,jsx}'],
|
||||||
|
extends: [
|
||||||
|
js.configs.recommended,
|
||||||
|
reactHooks.configs.flat.recommended,
|
||||||
|
reactRefresh.configs.vite,
|
||||||
|
],
|
||||||
|
languageOptions: {
|
||||||
|
ecmaVersion: 2020,
|
||||||
|
globals: globals.browser,
|
||||||
|
parserOptions: {
|
||||||
|
ecmaVersion: 'latest',
|
||||||
|
ecmaFeatures: { jsx: true },
|
||||||
|
sourceType: 'module',
|
||||||
|
},
|
||||||
|
},
|
||||||
|
rules: {
|
||||||
|
'no-unused-vars': ['error', { varsIgnorePattern: '^[A-Z_]' }],
|
||||||
|
},
|
||||||
|
},
|
||||||
|
])
|
||||||
12
index.html
Normal file
|
|
@ -0,0 +1,12 @@
|
||||||
|
<!doctype html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<meta charset="UTF-8" />
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||||
|
<title>Ahoj Svet!</title>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<div id="root"></div>
|
||||||
|
<script type="module" src="/src/main.jsx"></script>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
36
package.json
Normal file
|
|
@ -0,0 +1,36 @@
|
||||||
|
{
|
||||||
|
"name": "ahojsvet.landing",
|
||||||
|
"private": true,
|
||||||
|
"version": "0.0.0",
|
||||||
|
"type": "module",
|
||||||
|
"scripts": {
|
||||||
|
"dev": "vite",
|
||||||
|
"build": "vite build",
|
||||||
|
"lint": "eslint .",
|
||||||
|
"preview": "vite preview"
|
||||||
|
},
|
||||||
|
"dependencies": {
|
||||||
|
"i18next": "^25.8.4",
|
||||||
|
"i18next-browser-languagedetector": "^8.2.0",
|
||||||
|
"lucide-react": "^0.563.0",
|
||||||
|
"react": "^19.2.0",
|
||||||
|
"react-dom": "^19.2.0",
|
||||||
|
"react-i18next": "^16.5.4",
|
||||||
|
"react-router-dom": "^7.13.0"
|
||||||
|
},
|
||||||
|
"devDependencies": {
|
||||||
|
"@eslint/js": "^9.39.1",
|
||||||
|
"@tailwindcss/vite": "^4.1.18",
|
||||||
|
"@types/react": "^19.2.5",
|
||||||
|
"@types/react-dom": "^19.2.3",
|
||||||
|
"@vitejs/plugin-react": "^5.1.1",
|
||||||
|
"autoprefixer": "^10.4.23",
|
||||||
|
"eslint": "^9.39.1",
|
||||||
|
"eslint-plugin-react-hooks": "^7.0.1",
|
||||||
|
"eslint-plugin-react-refresh": "^0.4.24",
|
||||||
|
"globals": "^16.5.0",
|
||||||
|
"postcss": "^8.5.6",
|
||||||
|
"tailwindcss": "^4.1.18",
|
||||||
|
"vite": "^7.2.4"
|
||||||
|
}
|
||||||
|
}
|
||||||
BIN
public/android-chrome-192x192.png
Normal file
|
After Width: | Height: | Size: 5.4 KiB |
BIN
public/android-chrome-512x512.png
Normal file
|
After Width: | Height: | Size: 17 KiB |
68
public/api/contact.php
Normal file
|
|
@ -0,0 +1,68 @@
|
||||||
|
<?php
|
||||||
|
require_once __DIR__ . '/vendor/autoload.php';
|
||||||
|
|
||||||
|
use Dotenv\Dotenv;
|
||||||
|
use PHPMailer\PHPMailer\PHPMailer;
|
||||||
|
use PHPMailer\PHPMailer\Exception;
|
||||||
|
|
||||||
|
// Load environment variables
|
||||||
|
$dotenv = Dotenv::createImmutable(__DIR__);
|
||||||
|
$dotenv->load();
|
||||||
|
|
||||||
|
header('Content-Type: application/json');
|
||||||
|
header('Access-Control-Allow-Origin: *');
|
||||||
|
header('Access-Control-Allow-Methods: POST');
|
||||||
|
header('Access-Control-Allow-Headers: Content-Type');
|
||||||
|
|
||||||
|
if ($_SERVER['REQUEST_METHOD'] === 'POST') {
|
||||||
|
$data = json_decode(file_get_contents('php://input'), true);
|
||||||
|
|
||||||
|
// Check honeypot
|
||||||
|
if (!empty($data['website']) || !empty($data['phone_check'])) {
|
||||||
|
http_response_code(200);
|
||||||
|
echo json_encode(['success' => true]);
|
||||||
|
exit;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Validate and sanitize
|
||||||
|
$name = htmlspecialchars($data['name']);
|
||||||
|
$email = filter_var($data['email'], FILTER_SANITIZE_EMAIL);
|
||||||
|
$company = htmlspecialchars($data['company']);
|
||||||
|
$type = htmlspecialchars($data['type']);
|
||||||
|
$message = htmlspecialchars($data['message']);
|
||||||
|
|
||||||
|
try {
|
||||||
|
$mail = new PHPMailer(true);
|
||||||
|
|
||||||
|
// SMTP Configuration
|
||||||
|
$mail->isSMTP();
|
||||||
|
$mail->Host = $_ENV['SMTP_HOST'];
|
||||||
|
$mail->SMTPAuth = true;
|
||||||
|
$mail->Username = $_ENV['SMTP_USERNAME'];
|
||||||
|
$mail->Password = $_ENV['SMTP_PASSWORD'];
|
||||||
|
$mail->SMTPSecure = $_ENV['SMTP_ENCRYPTION'];
|
||||||
|
$mail->Port = $_ENV['SMTP_PORT'];
|
||||||
|
|
||||||
|
// Recipients
|
||||||
|
$mail->setFrom($_ENV['SMTP_FROM_EMAIL'], $_ENV['SMTP_FROM_NAME']);
|
||||||
|
$mail->addAddress($_ENV['CONTACT_EMAIL']);
|
||||||
|
$mail->addReplyTo($email, $name);
|
||||||
|
|
||||||
|
// Content
|
||||||
|
$mail->isHTML(false);
|
||||||
|
$mail->Subject = 'New Contact Form: ' . $type;
|
||||||
|
$mail->Body = "Name: $name\nEmail: $email\nCompany: $company\nType: $type\n\nMessage:\n$message";
|
||||||
|
|
||||||
|
$mail->send();
|
||||||
|
|
||||||
|
http_response_code(200);
|
||||||
|
echo json_encode(['success' => true]);
|
||||||
|
} catch (Exception $e) {
|
||||||
|
http_response_code(500);
|
||||||
|
echo json_encode(['success' => false, 'error' => $mail->ErrorInfo]);
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
http_response_code(405);
|
||||||
|
echo json_encode(['error' => 'Method not allowed']);
|
||||||
|
}
|
||||||
|
?>
|
||||||
BIN
public/apple-touch-icon.png
Normal file
|
After Width: | Height: | Size: 5 KiB |
BIN
public/dashboard.png
Normal file
|
After Width: | Height: | Size: 169 KiB |
BIN
public/favicon-16x16.png
Normal file
|
After Width: | Height: | Size: 396 B |
BIN
public/favicon-32x32.png
Normal file
|
After Width: | Height: | Size: 779 B |
BIN
public/favicon.ico
Normal file
|
After Width: | Height: | Size: 15 KiB |
73
public/katana.svg
Normal file
|
After Width: | Height: | Size: 23 KiB |
1
public/site.webmanifest
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
{"name":"","short_name":"","icons":[{"src":"/android-chrome-192x192.png","sizes":"192x192","type":"image/png"},{"src":"/android-chrome-512x512.png","sizes":"512x512","type":"image/png"}],"theme_color":"#ffffff","background_color":"#ffffff","display":"standalone"}
|
||||||
1
public/vite.svg
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" class="iconify iconify--logos" width="31.88" height="32" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 257"><defs><linearGradient id="IconifyId1813088fe1fbc01fb466" x1="-.828%" x2="57.636%" y1="7.652%" y2="78.411%"><stop offset="0%" stop-color="#41D1FF"></stop><stop offset="100%" stop-color="#BD34FE"></stop></linearGradient><linearGradient id="IconifyId1813088fe1fbc01fb467" x1="43.376%" x2="50.316%" y1="2.242%" y2="89.03%"><stop offset="0%" stop-color="#FFEA83"></stop><stop offset="8.333%" stop-color="#FFDD35"></stop><stop offset="100%" stop-color="#FFA800"></stop></linearGradient></defs><path fill="url(#IconifyId1813088fe1fbc01fb466)" d="M255.153 37.938L134.897 252.976c-2.483 4.44-8.862 4.466-11.382.048L.875 37.958c-2.746-4.814 1.371-10.646 6.827-9.67l120.385 21.517a6.537 6.537 0 0 0 2.322-.004l117.867-21.483c5.438-.991 9.574 4.796 6.877 9.62Z"></path><path fill="url(#IconifyId1813088fe1fbc01fb467)" d="M185.432.063L96.44 17.501a3.268 3.268 0 0 0-2.634 3.014l-5.474 92.456a3.268 3.268 0 0 0 3.997 3.378l24.777-5.718c2.318-.535 4.413 1.507 3.936 3.838l-7.361 36.047c-.495 2.426 1.782 4.5 4.151 3.78l15.304-4.649c2.372-.72 4.652 1.36 4.15 3.788l-11.698 56.621c-.732 3.542 3.979 5.473 5.943 2.437l1.313-2.028l72.516-144.72c1.215-2.423-.88-5.186-3.54-4.672l-25.505 4.922c-2.396.462-4.435-1.77-3.759-4.114l16.646-57.705c.677-2.35-1.37-4.583-3.769-4.113Z"></path></svg>
|
||||||
|
After Width: | Height: | Size: 1.5 KiB |
117
src/App.css
Normal file
|
|
@ -0,0 +1,117 @@
|
||||||
|
* {
|
||||||
|
font-family: 'Work Sans', sans-serif;
|
||||||
|
}
|
||||||
|
|
||||||
|
.gradient-text {
|
||||||
|
background: linear-gradient(135deg, #fff 0%, #fca5a5 50%, #b91c1c 100%);
|
||||||
|
-webkit-background-clip: text;
|
||||||
|
-webkit-text-fill-color: transparent;
|
||||||
|
background-clip: text;
|
||||||
|
}
|
||||||
|
|
||||||
|
.glow {
|
||||||
|
box-shadow: 0 0 60px rgba(185, 28, 28, 0.3);
|
||||||
|
}
|
||||||
|
|
||||||
|
.card-hover {
|
||||||
|
transition: all 0.3s ease;
|
||||||
|
}
|
||||||
|
|
||||||
|
.card-hover:hover {
|
||||||
|
transform: translateY(-4px);
|
||||||
|
box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
|
||||||
|
}
|
||||||
|
|
||||||
|
@keyframes float {
|
||||||
|
0%,
|
||||||
|
100% {
|
||||||
|
transform: translateY(0px);
|
||||||
|
}
|
||||||
|
50% {
|
||||||
|
transform: translateY(-10px);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.float {
|
||||||
|
animation: float 6s ease-in-out infinite;
|
||||||
|
}
|
||||||
|
|
||||||
|
@keyframes pulse-slow {
|
||||||
|
0%,
|
||||||
|
100% {
|
||||||
|
opacity: 0.4;
|
||||||
|
}
|
||||||
|
50% {
|
||||||
|
opacity: 0.8;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.pulse-slow {
|
||||||
|
animation: pulse-slow 4s ease-in-out infinite;
|
||||||
|
}
|
||||||
|
|
||||||
|
@keyframes slash {
|
||||||
|
0% {
|
||||||
|
transform: scaleX(1);
|
||||||
|
opacity: 0.6;
|
||||||
|
}
|
||||||
|
50% {
|
||||||
|
transform: scaleX(1.05);
|
||||||
|
opacity: 1;
|
||||||
|
}
|
||||||
|
100% {
|
||||||
|
transform: scaleX(1);
|
||||||
|
opacity: 0.6;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
#root {
|
||||||
|
margin: 0 auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
.logo {
|
||||||
|
height: 6em;
|
||||||
|
padding: 1.5em;
|
||||||
|
will-change: filter;
|
||||||
|
transition: filter 300ms;
|
||||||
|
}
|
||||||
|
.logo:hover {
|
||||||
|
filter: drop-shadow(0 0 2em #646cffaa);
|
||||||
|
}
|
||||||
|
.logo.react:hover {
|
||||||
|
filter: drop-shadow(0 0 2em #61dafbaa);
|
||||||
|
}
|
||||||
|
|
||||||
|
@keyframes logo-spin {
|
||||||
|
from {
|
||||||
|
transform: rotate(0deg);
|
||||||
|
}
|
||||||
|
to {
|
||||||
|
transform: rotate(360deg);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (prefers-reduced-motion: no-preference) {
|
||||||
|
a:nth-of-type(2) .logo {
|
||||||
|
animation: logo-spin infinite 20s linear;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.card {
|
||||||
|
padding: 2em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.read-the-docs {
|
||||||
|
color: #888;
|
||||||
|
}
|
||||||
|
|
||||||
|
.hidden-honeypot {
|
||||||
|
position: absolute;
|
||||||
|
left: -9999px;
|
||||||
|
width: 1px;
|
||||||
|
height: 1px;
|
||||||
|
opacity: 0;
|
||||||
|
pointer-events: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
41
src/App.jsx
Normal file
|
|
@ -0,0 +1,41 @@
|
||||||
|
import { useEffect, useState } from 'react';
|
||||||
|
import { useTranslation } from 'react-i18next';
|
||||||
|
import Navigation from './components/Navigation';
|
||||||
|
import Hero from './components/Hero';
|
||||||
|
import TheProblem from './components/TheProblem';
|
||||||
|
import Features from './components/Features';
|
||||||
|
import SpeedComparison from './components/SpeedComparison';
|
||||||
|
import HiddenCostsIcebergSection from './components/HiddenCostsIcebergSection';
|
||||||
|
import Screenshots from './components/Screenshots';
|
||||||
|
import InTheWild from './components/InTheWild';
|
||||||
|
import ContactForm from './components/ContactForm';
|
||||||
|
import CTA from './components/CTA';
|
||||||
|
import Footer from './components/Footer';
|
||||||
|
import './App.css';
|
||||||
|
|
||||||
|
export default function App() {
|
||||||
|
const [scrollY, setScrollY] = useState(0);
|
||||||
|
const { i18n } = useTranslation();
|
||||||
|
|
||||||
|
useEffect(() => {
|
||||||
|
const handleScroll = () => setScrollY(window.scrollY);
|
||||||
|
window.addEventListener('scroll', handleScroll);
|
||||||
|
return () => window.removeEventListener('scroll', handleScroll);
|
||||||
|
}, []);
|
||||||
|
|
||||||
|
return (
|
||||||
|
<div className="bg-gray-900 text-white min-h-screen font-sans antialiased">
|
||||||
|
<Navigation scrollY={scrollY} />
|
||||||
|
<Hero />
|
||||||
|
<TheProblem />
|
||||||
|
<Features />
|
||||||
|
<SpeedComparison />
|
||||||
|
<HiddenCostsIcebergSection />
|
||||||
|
<Screenshots />
|
||||||
|
<InTheWild />
|
||||||
|
<ContactForm />
|
||||||
|
<CTA />
|
||||||
|
<Footer />
|
||||||
|
</div>
|
||||||
|
);
|
||||||
|
}
|
||||||
29
src/components/CTA.jsx
Normal file
|
|
@ -0,0 +1,29 @@
|
||||||
|
import { useTranslation } from 'react-i18next';
|
||||||
|
import { Play } from 'lucide-react';
|
||||||
|
|
||||||
|
export default function CTA() {
|
||||||
|
const { t } = useTranslation();
|
||||||
|
const cta = t('cta', { returnObjects: true });
|
||||||
|
|
||||||
|
return (
|
||||||
|
<section className="py-32 bg-gray-900 relative overflow-hidden">
|
||||||
|
<div className="absolute inset-0">
|
||||||
|
<div className="absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 w-[600px] h-[600px] bg-red-700/10 rounded-full blur-3xl" />
|
||||||
|
</div>
|
||||||
|
<div className="max-w-4xl mx-auto px-6 text-center relative z-10">
|
||||||
|
<h2 className="text-4xl md:text-6xl font-black mb-6 text-white">
|
||||||
|
{cta.title}
|
||||||
|
</h2>
|
||||||
|
<p className="text-xl text-gray-400 mb-12">
|
||||||
|
{cta.subtitle}
|
||||||
|
</p>
|
||||||
|
<a
|
||||||
|
href="https://demo.ahojsvet.eu"
|
||||||
|
className="inline-flex items-center gap-2 bg-red-700 hover:bg-red-600 text-white px-10 py-5 rounded-xl font-bold text-xl transition-all glow hover:scale-105"
|
||||||
|
>
|
||||||
|
<Play size={24} /> {cta.button}
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
);
|
||||||
|
}
|
||||||
157
src/components/ContactForm.jsx
Normal file
|
|
@ -0,0 +1,157 @@
|
||||||
|
import { useState } from 'react';
|
||||||
|
import { useTranslation } from 'react-i18next';
|
||||||
|
|
||||||
|
export default function ContactForm() {
|
||||||
|
const { t } = useTranslation();
|
||||||
|
const contact = t('contact', { returnObjects: true });
|
||||||
|
const [formSent, setFormSent] = useState(false);
|
||||||
|
const [formData, setFormData] = useState({
|
||||||
|
name: '',
|
||||||
|
email: '',
|
||||||
|
company: '',
|
||||||
|
type: contact.types[0],
|
||||||
|
message: '',
|
||||||
|
website: '',
|
||||||
|
phone_check: ''
|
||||||
|
});
|
||||||
|
|
||||||
|
const handleSubmit = () => {
|
||||||
|
// Check honeypot fields
|
||||||
|
if (formData.website || formData.phone_check) {
|
||||||
|
return; // Ignore if honeypot fields are filled
|
||||||
|
}
|
||||||
|
|
||||||
|
// TODO: Replace with actual form submission endpoint
|
||||||
|
console.log('Form submitted:', formData);
|
||||||
|
setFormSent(true);
|
||||||
|
setTimeout(() => setFormSent(false), 3000);
|
||||||
|
setFormData({
|
||||||
|
name: '',
|
||||||
|
email: '',
|
||||||
|
company: '',
|
||||||
|
type: contact.types[0],
|
||||||
|
message: '',
|
||||||
|
website: '',
|
||||||
|
phone_check: ''
|
||||||
|
});
|
||||||
|
};
|
||||||
|
|
||||||
|
return (
|
||||||
|
<section id="contact" className="py-32 bg-gray-900">
|
||||||
|
<div className="max-w-3xl mx-auto px-6">
|
||||||
|
<div className="text-center mb-16">
|
||||||
|
<h2 className="text-4xl md:text-6xl font-black mb-4 text-white">
|
||||||
|
{contact.title}
|
||||||
|
</h2>
|
||||||
|
<p className="text-xl text-gray-400">
|
||||||
|
{contact.subtitle}
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div className="bg-gray-800 rounded-2xl p-8 space-y-6">
|
||||||
|
<div className="grid md:grid-cols-2 gap-6">
|
||||||
|
<div>
|
||||||
|
<label className="block text-sm font-bold mb-2 text-white">
|
||||||
|
{contact.name} *
|
||||||
|
</label>
|
||||||
|
<input
|
||||||
|
type="text"
|
||||||
|
required
|
||||||
|
value={formData.name}
|
||||||
|
onChange={(e) => setFormData({ ...formData, name: e.target.value })}
|
||||||
|
className="w-full bg-gray-900 border border-gray-700 rounded-lg px-4 py-3 text-white focus:border-red-700 focus:outline-none transition-colors"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
|
<label className="block text-sm font-bold mb-2 text-white">
|
||||||
|
{contact.email} *
|
||||||
|
</label>
|
||||||
|
<input
|
||||||
|
type="email"
|
||||||
|
required
|
||||||
|
value={formData.email}
|
||||||
|
onChange={(e) => setFormData({ ...formData, email: e.target.value })}
|
||||||
|
className="w-full bg-gray-900 border border-gray-700 rounded-lg px-4 py-3 text-white focus:border-red-700 focus:outline-none transition-colors"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div className="grid md:grid-cols-2 gap-6">
|
||||||
|
<div>
|
||||||
|
<label className="block text-sm font-bold mb-2 text-white">
|
||||||
|
{contact.company}
|
||||||
|
</label>
|
||||||
|
<input
|
||||||
|
type="text"
|
||||||
|
value={formData.company}
|
||||||
|
onChange={(e) => setFormData({ ...formData, company: e.target.value })}
|
||||||
|
className="w-full bg-gray-900 border border-gray-700 rounded-lg px-4 py-3 text-white focus:border-red-700 focus:outline-none transition-colors"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
|
<label className="block text-sm font-bold mb-2 text-white">
|
||||||
|
{contact.type} *
|
||||||
|
</label>
|
||||||
|
<select
|
||||||
|
required
|
||||||
|
value={formData.type}
|
||||||
|
onChange={(e) => setFormData({ ...formData, type: e.target.value })}
|
||||||
|
className="w-full bg-gray-900 border border-gray-700 rounded-lg px-4 py-3 text-white focus:border-red-700 focus:outline-none transition-colors"
|
||||||
|
>
|
||||||
|
{contact.types.map(type => (
|
||||||
|
<option key={type} value={type}>{type}</option>
|
||||||
|
))}
|
||||||
|
</select>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div>
|
||||||
|
<label className="block text-sm font-bold mb-2 text-white">
|
||||||
|
{contact.message} *
|
||||||
|
</label>
|
||||||
|
<textarea
|
||||||
|
required
|
||||||
|
rows={6}
|
||||||
|
value={formData.message}
|
||||||
|
onChange={(e) => setFormData({ ...formData, message: e.target.value })}
|
||||||
|
className="w-full bg-gray-900 border border-gray-700 rounded-lg px-4 py-3 text-white focus:border-red-700 focus:outline-none transition-colors resize-none"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
{/* Honeypot fields - hidden from users */}
|
||||||
|
<div className="hidden">
|
||||||
|
<input
|
||||||
|
type="text"
|
||||||
|
name="website"
|
||||||
|
value={formData.website}
|
||||||
|
onChange={(e) => setFormData({ ...formData, website: e.target.value })}
|
||||||
|
tabIndex="-1"
|
||||||
|
autoComplete="off"
|
||||||
|
/>
|
||||||
|
<input
|
||||||
|
type="text"
|
||||||
|
name="phone_check"
|
||||||
|
value={formData.phone_check}
|
||||||
|
onChange={(e) => setFormData({ ...formData, phone_check: e.target.value })}
|
||||||
|
tabIndex="-1"
|
||||||
|
autoComplete="off"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<button
|
||||||
|
onClick={handleSubmit}
|
||||||
|
className="w-full bg-red-700 hover:bg-red-600 text-white px-8 py-4 rounded-xl font-bold text-lg transition-all glow hover:scale-[1.02]"
|
||||||
|
>
|
||||||
|
{contact.send}
|
||||||
|
</button>
|
||||||
|
|
||||||
|
{formSent && (
|
||||||
|
<div className="bg-green-900 border border-green-700 rounded-lg px-6 py-4 text-center">
|
||||||
|
<div className="text-green-400 font-bold">{contact.success}</div>
|
||||||
|
</div>
|
||||||
|
)}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
);
|
||||||
|
}
|
||||||
38
src/components/Features.jsx
Normal file
|
|
@ -0,0 +1,38 @@
|
||||||
|
import { useTranslation } from 'react-i18next';
|
||||||
|
import { Shield, Globe2, BarChart3, Blocks, Mail, Tag, Users, Layers, Zap } from 'lucide-react';
|
||||||
|
|
||||||
|
const Icons = { Shield, Globe2, BarChart3, Blocks, Mail, Tag, Users, Layers, Zap };
|
||||||
|
|
||||||
|
export default function Features() {
|
||||||
|
const { t } = useTranslation();
|
||||||
|
|
||||||
|
return (
|
||||||
|
<section className="pb-32 pt-12 bg-white text-gray-900">
|
||||||
|
<div className="max-w-6xl mx-auto px-6">
|
||||||
|
<div className="text-center mb-20">
|
||||||
|
<h2 className="text-4xl md:text-6xl font-black mb-4">
|
||||||
|
{t('features.title')}
|
||||||
|
</h2>
|
||||||
|
<p className="text-2xl md:text-3xl font-bold text-red-700">
|
||||||
|
{t('features.subtitle')}
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div className="grid md:grid-cols-2 lg:grid-cols-3 gap-6">
|
||||||
|
{t('features.items', { returnObjects: true }).map((feature, i) => {
|
||||||
|
const Icon = Icons[feature.icon];
|
||||||
|
return (
|
||||||
|
<div key={i} className="card-hover bg-gray-100 rounded-2xl p-8 border border-gray-200">
|
||||||
|
<div className="w-14 h-14 bg-red-700 rounded-xl flex items-center justify-center mb-6">
|
||||||
|
<Icon size={28} className="text-white" />
|
||||||
|
</div>
|
||||||
|
<h3 className="text-xl font-bold mb-3">{feature.title}</h3>
|
||||||
|
<p className="text-gray-600 leading-relaxed">{feature.desc}</p>
|
||||||
|
</div>
|
||||||
|
);
|
||||||
|
})}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
);
|
||||||
|
}
|
||||||
35
src/components/Footer.jsx
Normal file
|
|
@ -0,0 +1,35 @@
|
||||||
|
import { useTranslation } from 'react-i18next';
|
||||||
|
|
||||||
|
export default function Footer() {
|
||||||
|
const { t } = useTranslation();
|
||||||
|
const footer = t('footer', { returnObjects: true });
|
||||||
|
|
||||||
|
return (
|
||||||
|
<footer className="py-12 border-t border-gray-800 bg-gray-900">
|
||||||
|
<div className="max-w-6xl mx-auto px-6">
|
||||||
|
<div className="flex flex-col md:flex-row items-center justify-between gap-6">
|
||||||
|
<div className="flex items-center gap-2">
|
||||||
|
<div className="w-8 h-8 bg-red-700 rounded-lg flex items-center justify-center font-black text-white">
|
||||||
|
A
|
||||||
|
</div>
|
||||||
|
<span className="font-bold text-white">AhojSvet.eu</span>
|
||||||
|
</div>
|
||||||
|
<div className="flex items-center gap-8 text-gray-400">
|
||||||
|
<a href="https://demo.ahojsvet.eu" className="hover:text-white transition-colors">
|
||||||
|
Demo
|
||||||
|
</a>
|
||||||
|
<a href="https://navod.ahojsvet.eu" className="hover:text-white transition-colors">
|
||||||
|
Docs
|
||||||
|
</a>
|
||||||
|
<a href="#contact" className="hover:text-white transition-colors">
|
||||||
|
Kontakt
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
<p className="text-gray-500 text-sm">
|
||||||
|
{footer.tagline}
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</footer>
|
||||||
|
);
|
||||||
|
}
|
||||||
47
src/components/Hero.jsx
Normal file
|
|
@ -0,0 +1,47 @@
|
||||||
|
import { useTranslation } from 'react-i18next';
|
||||||
|
import { BookOpen, Play, ChevronRight } from 'lucide-react';
|
||||||
|
|
||||||
|
export default function Hero() {
|
||||||
|
const { t } = useTranslation();
|
||||||
|
|
||||||
|
return (
|
||||||
|
<section className="min-h-screen flex items-center justify-center relative overflow-hidden pt-20 bg-gray-900">
|
||||||
|
<div className="absolute inset-0 overflow-hidden">
|
||||||
|
<div className="absolute top-1/4 left-1/4 w-96 h-96 bg-red-700/20 rounded-full blur-3xl pulse-slow" />
|
||||||
|
<div className="absolute bottom-1/4 right-1/4 w-64 h-64 bg-red-900/20 rounded-full blur-3xl pulse-slow" style={{ animationDelay: '2s' }} />
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div className="max-w-6xl mx-auto px-6 text-center relative z-10">
|
||||||
|
<div className="float">
|
||||||
|
<h1 className="text-5xl sm:text-7xl md:text-8xl font-black mb-2 tracking-tight text-white">
|
||||||
|
{t('hero.tagline')}
|
||||||
|
</h1>
|
||||||
|
<h1 className="text-5xl sm:text-7xl md:text-8xl font-black pb-8 tracking-tight gradient-text">
|
||||||
|
{t('hero.subtitle')}
|
||||||
|
</h1>
|
||||||
|
</div>
|
||||||
|
<p className="text-xl md:text-2xl text-gray-400 max-w-2xl mx-auto mb-12 font-medium">
|
||||||
|
{t('hero.description')}
|
||||||
|
</p>
|
||||||
|
<div className="flex flex-col sm:flex-row gap-4 justify-center">
|
||||||
|
<a
|
||||||
|
href="https://demo.ahojsvet.eu"
|
||||||
|
className="inline-flex items-center justify-center gap-2 bg-red-700 hover:bg-red-600 text-white px-8 py-4 rounded-xl font-bold text-lg transition-all glow hover:scale-105"
|
||||||
|
>
|
||||||
|
<Play size={20} /> {t('hero.cta')}
|
||||||
|
</a>
|
||||||
|
<a
|
||||||
|
href="https://navod.ahojsvet.eu"
|
||||||
|
className="inline-flex items-center justify-center gap-2 bg-gray-800 hover:bg-gray-700 text-white px-8 py-4 rounded-xl font-bold text-lg transition-colors"
|
||||||
|
>
|
||||||
|
<BookOpen size={20} /> {t('hero.docs')}
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div className="absolute bottom-8 left-1/2 -translate-x-1/2 animate-bounce">
|
||||||
|
<ChevronRight size={32} className="rotate-90 text-gray-600" />
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
);
|
||||||
|
}
|
||||||
212
src/components/HiddenCostsIcebergSection.jsx
Normal file
|
|
@ -0,0 +1,212 @@
|
||||||
|
import { useState, useEffect, useRef } from "react";
|
||||||
|
import { Eye, EyeOff, ChevronDown, Puzzle, RefreshCw, Shield, CreditCard, Code2, Cookie, BarChart3, Mail, AlertTriangle, Clock, Check } from "lucide-react";
|
||||||
|
import { useTranslation } from 'react-i18next';
|
||||||
|
|
||||||
|
const iconMap = {
|
||||||
|
setup: CreditCard, theme: Code2, plugin: Puzzle, hosting: BarChart3,
|
||||||
|
maintenance: RefreshCw, conflict: AlertTriangle, security: Shield,
|
||||||
|
change: Clock, cookie: Cookie, analytics: BarChart3, email: Mail, dev: Code2,
|
||||||
|
};
|
||||||
|
|
||||||
|
const severityColor = {
|
||||||
|
1: "border-yellow-500/40 bg-yellow-500/5",
|
||||||
|
2: "border-orange-500/40 bg-orange-500/5",
|
||||||
|
3: "border-red-500/40 bg-red-500/5",
|
||||||
|
};
|
||||||
|
const severityDot = { 1: "bg-yellow-500", 2: "bg-orange-500", 3: "bg-red-500" };
|
||||||
|
|
||||||
|
export default function CostIceberg() {
|
||||||
|
const [revealed, setRevealed] = useState(false);
|
||||||
|
const [visibleCount, setVisibleCount] = useState(0);
|
||||||
|
const sectionRef = useRef(null);
|
||||||
|
const { t } = useTranslation();
|
||||||
|
|
||||||
|
useEffect(() => {
|
||||||
|
if (!revealed) { setVisibleCount(0); return; }
|
||||||
|
let i = 0;
|
||||||
|
const hiddenItems = t('iceberg.hidden', { returnObjects: true });
|
||||||
|
const interval = setInterval(() => {
|
||||||
|
i++;
|
||||||
|
setVisibleCount(i);
|
||||||
|
if (i >= hiddenItems.length) clearInterval(interval);
|
||||||
|
}, 120);
|
||||||
|
return () => clearInterval(interval);
|
||||||
|
}, [revealed, t]);
|
||||||
|
|
||||||
|
const tipItems = t('iceberg.tip', { returnObjects: true });
|
||||||
|
const hiddenItems = t('iceberg.hidden', { returnObjects: true });
|
||||||
|
const ahojsvetPoints = t('iceberg.ahojsvet.points', { returnObjects: true });
|
||||||
|
|
||||||
|
return (
|
||||||
|
<section ref={sectionRef} className="py-20 md:py-32 text-white" style={{ background: "#111827" }}>
|
||||||
|
<div className="max-w-6xl mx-auto px-4 md:px-6">
|
||||||
|
{/* Header */}
|
||||||
|
<div className="text-center mb-16 md:mb-20">
|
||||||
|
<h2 className="text-4xl md:text-6xl font-black mb-4" style={{ fontFamily: "'Work Sans', sans-serif" }}>
|
||||||
|
{t('iceberg.title')}
|
||||||
|
</h2>
|
||||||
|
<p className="text-lg md:text-2xl font-medium" style={{ color: "#f87171" }}>
|
||||||
|
{t('iceberg.subtitle')}
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div className="grid lg:grid-cols-2 gap-8 md:gap-12 items-start">
|
||||||
|
{/* WordPress Iceberg */}
|
||||||
|
<div>
|
||||||
|
{/* Tip */}
|
||||||
|
<div className="mb-2">
|
||||||
|
<div className="flex items-center gap-2 mb-4">
|
||||||
|
<Eye size={18} style={{ color: "#9ca3af" }} />
|
||||||
|
<span className="text-sm font-bold uppercase tracking-wider" style={{ color: "#9ca3af" }}>
|
||||||
|
{t('iceberg.tipLabel')}
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
<div className="space-y-3">
|
||||||
|
{tipItems.map((item, i) => {
|
||||||
|
const Icon = iconMap[item.icon];
|
||||||
|
return (
|
||||||
|
<div key={i} className="rounded-xl p-4 md:p-5 border flex items-start gap-4"
|
||||||
|
style={{ background: "#1f2937", borderColor: "#374151" }}>
|
||||||
|
<div className="w-10 h-10 rounded-lg flex items-center justify-center flex-shrink-0"
|
||||||
|
style={{ background: "#374151" }}>
|
||||||
|
<Icon size={20} style={{ color: "#9ca3af" }} />
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
|
<div className="font-bold">{item.label}</div>
|
||||||
|
<div className="text-sm" style={{ color: "#9ca3af" }}>{item.desc}</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
);
|
||||||
|
})}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
{/* Waterline + Reveal Button */}
|
||||||
|
<div className="relative my-6">
|
||||||
|
<div className="absolute inset-0 flex items-center">
|
||||||
|
<div className="w-full border-t-2 border-dashed" style={{ borderColor: "#3b82f6", opacity: 0.4 }} />
|
||||||
|
</div>
|
||||||
|
<div className="relative flex justify-center">
|
||||||
|
<button
|
||||||
|
onClick={() => setRevealed(!revealed)}
|
||||||
|
className="flex items-center gap-2 px-5 py-2.5 rounded-full font-bold text-sm transition-all"
|
||||||
|
style={{
|
||||||
|
background: revealed ? "#1f2937" : "#b91c1c",
|
||||||
|
color: "#fff",
|
||||||
|
boxShadow: revealed ? "none" : "0 0 30px rgba(185,28,28,0.4)",
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
{revealed ? <EyeOff size={16} /> : <ChevronDown size={16} />}
|
||||||
|
{revealed ? t('iceberg.hideBtn') : t('iceberg.revealBtn')}
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
{/* Hidden Costs */}
|
||||||
|
<div style={{
|
||||||
|
maxHeight: revealed ? "2000px" : "0px",
|
||||||
|
opacity: revealed ? 1 : 0,
|
||||||
|
overflow: "hidden",
|
||||||
|
transition: "max-height 0.8s ease, opacity 0.5s ease",
|
||||||
|
}}>
|
||||||
|
<div className="flex items-center gap-2 mb-4">
|
||||||
|
<EyeOff size={18} style={{ color: "#ef4444" }} />
|
||||||
|
<span className="text-sm font-bold uppercase tracking-wider" style={{ color: "#ef4444" }}>
|
||||||
|
{t('iceberg.hiddenLabel')}
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
<div className="space-y-3">
|
||||||
|
{hiddenItems.map((item, i) => {
|
||||||
|
const Icon = iconMap[item.icon];
|
||||||
|
const visible = i < visibleCount;
|
||||||
|
return (
|
||||||
|
<div
|
||||||
|
key={i}
|
||||||
|
className={`rounded-xl p-4 md:p-5 border flex items-start gap-4 ${severityColor[item.severity]}`}
|
||||||
|
style={{
|
||||||
|
opacity: visible ? 1 : 0,
|
||||||
|
transform: visible ? "translateY(0)" : "translateY(12px)",
|
||||||
|
transition: "opacity 0.35s ease, transform 0.35s ease",
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
<div className="w-10 h-10 rounded-lg flex items-center justify-center flex-shrink-0"
|
||||||
|
style={{ background: "rgba(255,255,255,0.05)" }}>
|
||||||
|
<Icon size={20} style={{ color: "#f87171" }} />
|
||||||
|
</div>
|
||||||
|
<div className="flex-1">
|
||||||
|
<div className="flex items-center gap-2 mb-0.5">
|
||||||
|
<span className="font-bold">{item.label}</span>
|
||||||
|
<span className={`w-2 h-2 rounded-full ${severityDot[item.severity]}`} />
|
||||||
|
</div>
|
||||||
|
<div className="text-sm" style={{ color: "#9ca3af" }}>{item.desc}</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
);
|
||||||
|
})}
|
||||||
|
</div>
|
||||||
|
|
||||||
|
{/* Summary */}
|
||||||
|
{visibleCount >= hiddenItems.length && (
|
||||||
|
<div className="mt-6 rounded-xl p-5 border text-center"
|
||||||
|
style={{
|
||||||
|
borderColor: "#ef4444",
|
||||||
|
background: "rgba(239,68,68,0.08)",
|
||||||
|
animation: "fadeIn 0.5s ease",
|
||||||
|
}}>
|
||||||
|
<div className="text-2xl md:text-3xl font-black" style={{ color: "#ef4444" }}>
|
||||||
|
10+ skrytých nákladov
|
||||||
|
</div>
|
||||||
|
<div className="text-sm mt-1" style={{ color: "#9ca3af" }}>
|
||||||
|
...a to sme ešte nezačali riešiť škálovanie.
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
)}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
{/* AhojSvet - Clean Side */}
|
||||||
|
<div className="lg:sticky lg:top-32">
|
||||||
|
<div className="rounded-2xl p-6 md:p-8 border-4" style={{ background: "#f0fdf4", borderColor: "#16a34a" }}>
|
||||||
|
<div className="text-center mb-8">
|
||||||
|
<div className="inline-flex items-center gap-2 px-4 py-1.5 rounded-full text-sm font-bold mb-4"
|
||||||
|
style={{ background: "#16a34a", color: "#fff" }}>
|
||||||
|
Bez prekvapení
|
||||||
|
</div>
|
||||||
|
<h3 className="text-3xl font-black" style={{ color: "#111827" }}>{t('iceberg.ahojsvet.title')}</h3>
|
||||||
|
<p className="text-base mt-1" style={{ color: "#6b7280" }}>{t('iceberg.ahojsvet.subtitle')}</p>
|
||||||
|
</div>
|
||||||
|
<div className="space-y-5">
|
||||||
|
{ahojsvetPoints.map((p, i) => (
|
||||||
|
<div key={i} className="flex items-start gap-3">
|
||||||
|
<div className="w-6 h-6 rounded-full flex items-center justify-center flex-shrink-0 mt-0.5"
|
||||||
|
style={{ background: "#16a34a" }}>
|
||||||
|
<Check size={14} color="#fff" strokeWidth={3} />
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
|
<div className="font-bold" style={{ color: "#111827" }}>{p.label}</div>
|
||||||
|
<div className="text-sm" style={{ color: "#6b7280" }}>{p.desc}</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
))}
|
||||||
|
</div>
|
||||||
|
<div className="mt-8 text-center">
|
||||||
|
<a href="#contact"
|
||||||
|
className="inline-block px-8 py-4 rounded-xl font-bold text-lg transition-all"
|
||||||
|
style={{
|
||||||
|
background: "#b91c1c", color: "#fff",
|
||||||
|
boxShadow: "0 0 40px rgba(185,28,28,0.3)",
|
||||||
|
}}>
|
||||||
|
{t('iceberg.ahojsvet.cta')}
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<style>{`
|
||||||
|
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
|
||||||
|
`}</style>
|
||||||
|
</section>
|
||||||
|
);
|
||||||
|
}
|
||||||
60
src/components/InTheWild.jsx
Normal file
|
|
@ -0,0 +1,60 @@
|
||||||
|
import { useTranslation } from 'react-i18next';
|
||||||
|
import { ExternalLink, ChevronRight } from 'lucide-react';
|
||||||
|
|
||||||
|
export default function InTheWild() {
|
||||||
|
const { t } = useTranslation();
|
||||||
|
const wild = t('wild', { returnObjects: true });
|
||||||
|
|
||||||
|
const projects = [
|
||||||
|
{ name: 'Projekt 1', desc: 'Pridaj sem svoj projekt', url: '#', placeholder: true },
|
||||||
|
{ name: 'Projekt 2', desc: 'Pridaj sem svoj projekt', url: '#', placeholder: true }
|
||||||
|
];
|
||||||
|
|
||||||
|
return (
|
||||||
|
<section id="wild" className="py-32 bg-white text-gray-900">
|
||||||
|
<div className="max-w-6xl mx-auto px-6">
|
||||||
|
<div className="text-center mb-16">
|
||||||
|
<h2 className="text-4xl md:text-6xl font-black mb-4">
|
||||||
|
{wild.title}
|
||||||
|
</h2>
|
||||||
|
<p className="text-xl text-gray-500">
|
||||||
|
{wild.subtitle}
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div className="grid md:grid-cols-2 gap-8 max-w-4xl mx-auto mb-12">
|
||||||
|
{projects.map((project, i) => (
|
||||||
|
<a
|
||||||
|
key={i}
|
||||||
|
href={project.url}
|
||||||
|
target="_blank"
|
||||||
|
rel="noopener noreferrer"
|
||||||
|
className="card-hover bg-gray-100 rounded-2xl overflow-hidden border border-gray-200 block"
|
||||||
|
>
|
||||||
|
<div className="aspect-video bg-gray-200 flex items-center justify-center">
|
||||||
|
{project.placeholder ? (
|
||||||
|
<ExternalLink size={32} className="text-gray-400" />
|
||||||
|
) : (
|
||||||
|
<img src={project.image} alt={project.name} className="w-full h-full object-cover" />
|
||||||
|
)}
|
||||||
|
</div>
|
||||||
|
<div className="p-6">
|
||||||
|
<h3 className="font-bold text-lg mb-1">{project.name}</h3>
|
||||||
|
<p className="text-gray-500 text-sm">{project.desc}</p>
|
||||||
|
</div>
|
||||||
|
</a>
|
||||||
|
))}
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div className="text-center">
|
||||||
|
<a
|
||||||
|
href="mailto:kontakt@ahojsvet.eu"
|
||||||
|
className="inline-flex items-center gap-2 text-red-700 font-bold hover:underline"
|
||||||
|
>
|
||||||
|
{wild.cta} <ChevronRight size={20} />
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
);
|
||||||
|
}
|
||||||
55
src/components/Navigation.jsx
Normal file
|
|
@ -0,0 +1,55 @@
|
||||||
|
import { useState } from 'react';
|
||||||
|
import { useTranslation } from 'react-i18next';
|
||||||
|
import { Menu, X } from 'lucide-react';
|
||||||
|
|
||||||
|
export default function Navigation({ scrollY }) {
|
||||||
|
const { t } = useTranslation();
|
||||||
|
const [menuOpen, setMenuOpen] = useState(false);
|
||||||
|
|
||||||
|
return (
|
||||||
|
<nav className={`fixed top-0 left-0 right-0 z-50 transition-all duration-300 ${scrollY > 50 ? 'bg-gray-900/95 backdrop-blur-sm' : ''}`}>
|
||||||
|
<div className="max-w-6xl mx-auto px-6 py-4 flex items-center justify-between">
|
||||||
|
<div className="flex items-center gap-2">
|
||||||
|
<div className="w-10 h-10 bg-red-700 rounded-lg flex items-center justify-center font-black text-xl">A</div>
|
||||||
|
<span className="font-extrabold text-xl text-white">AhojSvet</span>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div className="hidden md:flex items-center gap-8">
|
||||||
|
<a href="https://demo.ahojsvet.eu" className="flex items-center gap-2 bg-gray-800 hover:bg-gray-700 px-4 py-2 rounded-lg transition-colors font-medium text-white">
|
||||||
|
{t('nav.demo')}
|
||||||
|
</a>
|
||||||
|
<a href="https://navod.ahojsvet.eu" className="text-gray-400 hover:text-white transition-colors font-medium">
|
||||||
|
{t('nav.docs')}
|
||||||
|
</a>
|
||||||
|
<a href="#wild" className="text-gray-400 hover:text-white transition-colors font-medium">
|
||||||
|
{t('nav.wild')}
|
||||||
|
</a>
|
||||||
|
<a href="#contact" className="text-gray-400 hover:text-white transition-colors font-medium">
|
||||||
|
{t('nav.contact')}
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<button onClick={() => setMenuOpen(!menuOpen)} className="md:hidden p-2 text-white">
|
||||||
|
{menuOpen ? <X size={24} /> : <Menu size={24} />}
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
{menuOpen && (
|
||||||
|
<div className="md:hidden bg-gray-900 border-t border-gray-800 px-6 py-4 flex flex-col gap-4">
|
||||||
|
<a href="https://demo.ahojsvet.eu" className="text-gray-400 hover:text-white py-2">
|
||||||
|
{t('nav.demo')}
|
||||||
|
</a>
|
||||||
|
<a href="https://navod.ahojsvet.eu" className="text-gray-400 hover:text-white py-2">
|
||||||
|
{t('nav.docs')}
|
||||||
|
</a>
|
||||||
|
<a href="#wild" className="text-gray-400 hover:text-white py-2">
|
||||||
|
{t('nav.wild')}
|
||||||
|
</a>
|
||||||
|
<a href="#contact" className="text-gray-400 hover:text-white py-2">
|
||||||
|
{t('nav.contact')}
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
)}
|
||||||
|
</nav>
|
||||||
|
);
|
||||||
|
}
|
||||||
55
src/components/Screenshots.jsx
Normal file
|
|
@ -0,0 +1,55 @@
|
||||||
|
import { useState } from 'react';
|
||||||
|
import { useTranslation } from 'react-i18next';
|
||||||
|
import { BarChart3, ShoppingBag, FileText, Blocks } from 'lucide-react';
|
||||||
|
|
||||||
|
export default function Screenshots() {
|
||||||
|
const { t } = useTranslation();
|
||||||
|
const [activeTab, setActiveTab] = useState(0);
|
||||||
|
const tabs = t('screenshots.tabs', { returnObjects: true });
|
||||||
|
|
||||||
|
const iconMap = {
|
||||||
|
0: BarChart3,
|
||||||
|
1: ShoppingBag,
|
||||||
|
2: FileText,
|
||||||
|
3: Blocks
|
||||||
|
};
|
||||||
|
|
||||||
|
const CurrentIcon = iconMap[activeTab];
|
||||||
|
|
||||||
|
return (
|
||||||
|
<section className="py-32 bg-gray-900">
|
||||||
|
<div className="max-w-6xl mx-auto px-6">
|
||||||
|
<h2 className="text-4xl md:text-6xl font-black text-center mb-16 text-white">
|
||||||
|
{t('screenshots.title')}
|
||||||
|
</h2>
|
||||||
|
|
||||||
|
<div className="grid grid-cols-2 md:grid-cols-4 justify-center gap-2 mb-8">
|
||||||
|
{tabs.map((tab, i) => (
|
||||||
|
<button
|
||||||
|
key={i}
|
||||||
|
onClick={() => setActiveTab(i)}
|
||||||
|
className={`px-6 py-3 rounded-lg font-bold transition-all ${
|
||||||
|
activeTab === i
|
||||||
|
? 'bg-red-700 text-white'
|
||||||
|
: 'bg-gray-800 text-gray-400 hover:bg-gray-700'
|
||||||
|
}`}
|
||||||
|
>
|
||||||
|
{tab}
|
||||||
|
</button>
|
||||||
|
))}
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div className="bg-gray-800 rounded-2xl p-4 glow">
|
||||||
|
<div className="bg-gray-950 rounded-xl aspect-video flex items-center justify-center">
|
||||||
|
<div className="text-center">
|
||||||
|
<CurrentIcon size={64} className="mx-auto mb-4 text-red-500" />
|
||||||
|
<p className="text-gray-500 font-medium text-lg">
|
||||||
|
{tabs[activeTab]} screenshot
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
);
|
||||||
|
}
|
||||||
94
src/components/SpeedComparison.jsx
Normal file
|
|
@ -0,0 +1,94 @@
|
||||||
|
import { useState } from 'react';
|
||||||
|
import { useTranslation } from 'react-i18next';
|
||||||
|
import { speedData } from '../constants/speedData';
|
||||||
|
|
||||||
|
export default function SpeedComparison() {
|
||||||
|
const { t } = useTranslation();
|
||||||
|
const [network, setNetwork] = useState('WiFi');
|
||||||
|
|
||||||
|
return (
|
||||||
|
<section className="py-32 bg-gray-900">
|
||||||
|
<div className="max-w-6xl mx-auto px-6">
|
||||||
|
<div className="text-center mb-16">
|
||||||
|
<h2 className="text-4xl md:text-6xl font-black mb-4 text-white">
|
||||||
|
{t('speed.title')}
|
||||||
|
</h2>
|
||||||
|
<p className="text-xl text-gray-400 mb-8">
|
||||||
|
{t('speed.subtitle')}
|
||||||
|
</p>
|
||||||
|
<div className="flex flex-wrap justify-center gap-3 mb-12">
|
||||||
|
<span className="text-gray-400 font-medium self-center">{t('speed.selector')}</span>
|
||||||
|
{t('speed.networks', { returnObjects: true }).map(net => (
|
||||||
|
<button
|
||||||
|
key={net}
|
||||||
|
onClick={() => setNetwork(net)}
|
||||||
|
className={`px-4 py-2 rounded-lg font-bold transition-all ${
|
||||||
|
network === net
|
||||||
|
? 'bg-red-700 text-white'
|
||||||
|
: 'bg-gray-800 text-gray-400 hover:bg-gray-700'
|
||||||
|
}`}
|
||||||
|
>
|
||||||
|
{net}
|
||||||
|
</button>
|
||||||
|
))}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div className="grid gap-8">
|
||||||
|
{Object.entries(t('speed.metrics', { returnObjects: true })).map(([key, label]) => {
|
||||||
|
const asData = speedData[network].ahojsvet[key];
|
||||||
|
const wpData = speedData[network].wordpress[key];
|
||||||
|
const percentFaster = Math.round((1 - asData[0] / wpData[0]) * 100);
|
||||||
|
|
||||||
|
return (
|
||||||
|
<div key={key} className="bg-gray-800 rounded-2xl p-6">
|
||||||
|
<h3 className="text-2xl font-bold mb-6 text-center text-white">{label}</h3>
|
||||||
|
<div className="grid md:grid-cols-2 gap-6">
|
||||||
|
<div className="bg-green-950 border-2 border-green-700 rounded-xl p-6">
|
||||||
|
<div className="text-sm font-bold text-green-400 mb-3">AhojSvet</div>
|
||||||
|
<div className="space-y-2">
|
||||||
|
<div className="flex justify-between">
|
||||||
|
<span className="text-gray-400">Load time:</span>
|
||||||
|
<span className="font-bold text-white">{asData[0]}{t('speed.units.time')}</span>
|
||||||
|
</div>
|
||||||
|
<div className="flex justify-between">
|
||||||
|
<span className="text-gray-400">Data:</span>
|
||||||
|
<span className="font-bold text-white">{asData[1]}{t('speed.units.size')}</span>
|
||||||
|
</div>
|
||||||
|
<div className="flex justify-between">
|
||||||
|
<span className="text-gray-400">Requests:</span>
|
||||||
|
<span className="font-bold text-white">{asData[2]} {t('speed.units.requests')}</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div className="bg-gray-900 border-2 border-gray-700 rounded-xl p-6">
|
||||||
|
<div className="text-sm font-bold text-gray-500 mb-3">WordPress + WooCommerce</div>
|
||||||
|
<div className="space-y-2">
|
||||||
|
<div className="flex justify-between">
|
||||||
|
<span className="text-gray-500">Load time:</span>
|
||||||
|
<span className="font-bold text-gray-400">{wpData[0]}{t('speed.units.time')}</span>
|
||||||
|
</div>
|
||||||
|
<div className="flex justify-between">
|
||||||
|
<span className="text-gray-500">Data:</span>
|
||||||
|
<span className="font-bold text-gray-400">{wpData[1]}{t('speed.units.size')}</span>
|
||||||
|
</div>
|
||||||
|
<div className="flex justify-between">
|
||||||
|
<span className="text-gray-500">Requests:</span>
|
||||||
|
<span className="font-bold text-gray-400">{wpData[2]} {t('speed.units.requests')}</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div className="mt-4 text-center">
|
||||||
|
<span className="inline-block bg-red-700 text-white px-4 py-2 rounded-lg font-bold">
|
||||||
|
{percentFaster}% rýchlejšie
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
);
|
||||||
|
})}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
);
|
||||||
|
}
|
||||||
40
src/components/TheProblem.jsx
Normal file
|
|
@ -0,0 +1,40 @@
|
||||||
|
import { useTranslation } from 'react-i18next';
|
||||||
|
|
||||||
|
export default function TheProblem() {
|
||||||
|
const { t } = useTranslation();
|
||||||
|
|
||||||
|
return (
|
||||||
|
<section className="pt-32 bg-gray-800">
|
||||||
|
<div className="max-w-6xl mx-auto px-6 pb-24">
|
||||||
|
<div className="text-center mb-20">
|
||||||
|
<h2 className="text-4xl md:text-6xl font-black mb-4 text-white">
|
||||||
|
{t('problem.title')}
|
||||||
|
</h2>
|
||||||
|
<p className="text-xl md:text-2xl text-red-400 font-medium max-w-3xl mx-auto">
|
||||||
|
{t('problem.subtitle')}
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div className="grid md:grid-cols-2 lg:grid-cols-4 gap-6">
|
||||||
|
{t('problem.cards', { returnObjects: true }).map((card, i) => (
|
||||||
|
<div key={i} className="bg-gray-900 rounded-2xl p-8 border border-gray-700 text-center">
|
||||||
|
<div className="text-3xl font-black text-red-500 mb-3">{card.title}</div>
|
||||||
|
<p className="text-gray-400 leading-relaxed">{card.desc}</p>
|
||||||
|
</div>
|
||||||
|
))}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
{/* Bleeding Sword Divider */}
|
||||||
|
<div className="bg-white">
|
||||||
|
<div className="w-full mx-auto">
|
||||||
|
<img
|
||||||
|
src="katana.svg"
|
||||||
|
className="w-full h-auto"
|
||||||
|
alt=""
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
);
|
||||||
|
}
|
||||||
67
src/constants/speedData.js
Normal file
|
|
@ -0,0 +1,67 @@
|
||||||
|
// Speed comparison data - [load time, data size, requests]
|
||||||
|
export const speedData = {
|
||||||
|
WiFi: {
|
||||||
|
ahojsvet: {
|
||||||
|
productPage: [320, 145, 4],
|
||||||
|
categoryNav: [85, 12, 1],
|
||||||
|
search: [45, 8, 1],
|
||||||
|
checkout: [280, 95, 3],
|
||||||
|
admin: [420, 165, 5]
|
||||||
|
},
|
||||||
|
wordpress: {
|
||||||
|
productPage: [2800, 2100, 47],
|
||||||
|
categoryNav: [1900, 850, 32],
|
||||||
|
search: [950, 340, 18],
|
||||||
|
checkout: [3200, 1800, 52],
|
||||||
|
admin: [4100, 2400, 58]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
'4G': {
|
||||||
|
ahojsvet: {
|
||||||
|
productPage: [580, 145, 4],
|
||||||
|
categoryNav: [165, 12, 1],
|
||||||
|
search: [95, 8, 1],
|
||||||
|
checkout: [520, 95, 3],
|
||||||
|
admin: [780, 165, 5]
|
||||||
|
},
|
||||||
|
wordpress: {
|
||||||
|
productPage: [4200, 2100, 47],
|
||||||
|
categoryNav: [2800, 850, 32],
|
||||||
|
search: [1450, 340, 18],
|
||||||
|
checkout: [4800, 1800, 52],
|
||||||
|
admin: [6100, 2400, 58]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
'3G': {
|
||||||
|
ahojsvet: {
|
||||||
|
productPage: [1200, 145, 4],
|
||||||
|
categoryNav: [350, 12, 1],
|
||||||
|
search: [210, 8, 1],
|
||||||
|
checkout: [1100, 95, 3],
|
||||||
|
admin: [1650, 165, 5]
|
||||||
|
},
|
||||||
|
wordpress: {
|
||||||
|
productPage: [8500, 2100, 47],
|
||||||
|
categoryNav: [5600, 850, 32],
|
||||||
|
search: [2900, 340, 18],
|
||||||
|
checkout: [9800, 1800, 52],
|
||||||
|
admin: [12400, 2400, 58]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
'2G': {
|
||||||
|
ahojsvet: {
|
||||||
|
productPage: [3800, 145, 4],
|
||||||
|
categoryNav: [1100, 12, 1],
|
||||||
|
search: [680, 8, 1],
|
||||||
|
checkout: [3500, 95, 3],
|
||||||
|
admin: [5200, 165, 5]
|
||||||
|
},
|
||||||
|
wordpress: {
|
||||||
|
productPage: [24000, 2100, 47],
|
||||||
|
categoryNav: [16500, 850, 32],
|
||||||
|
search: [8600, 340, 18],
|
||||||
|
checkout: [28000, 1800, 52],
|
||||||
|
admin: [35000, 2400, 58]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
18
src/i18n/index.js
Normal file
|
|
@ -0,0 +1,18 @@
|
||||||
|
import i18n from "i18next";
|
||||||
|
import { initReactI18next } from "react-i18next";
|
||||||
|
import en from "./locales/en.json";
|
||||||
|
import sk from "./locales/sk.json";
|
||||||
|
import cs from "./locales/cs.json";
|
||||||
|
|
||||||
|
i18n.use(initReactI18next).init({
|
||||||
|
resources: {
|
||||||
|
en: { translation: en },
|
||||||
|
sk: { translation: sk },
|
||||||
|
cs: { translation: cs },
|
||||||
|
},
|
||||||
|
lng: "sk",
|
||||||
|
fallbackLng: "sk",
|
||||||
|
interpolation: { escapeValue: false },
|
||||||
|
});
|
||||||
|
|
||||||
|
export default i18n;
|
||||||
87
src/i18n/locales/cs.json
Normal file
|
|
@ -0,0 +1,87 @@
|
||||||
|
{
|
||||||
|
"nav": {
|
||||||
|
"demo": "Demo",
|
||||||
|
"docs": "Dokumentácia",
|
||||||
|
"wild": "V praxi",
|
||||||
|
"contact": "Kontakt"
|
||||||
|
},
|
||||||
|
"hero": {
|
||||||
|
"tagline": "Zbav sa reťazí.",
|
||||||
|
"subtitle": "Vlastni svoj obchod.",
|
||||||
|
"description": "Open-source eCommerce platforma bez SaaS závislostí. Tvoj obchod, tvoje dáta, žiadni páni.",
|
||||||
|
"cta": "Vyskúšať demo",
|
||||||
|
"docs": "Dokumentácia"
|
||||||
|
},
|
||||||
|
"problem": {
|
||||||
|
"title": "Dosť bolo slop-u.",
|
||||||
|
"subtitle": "Tisíce eur za WordPress z roku 2015",
|
||||||
|
"cards": [
|
||||||
|
{ "title": "4.2s load time", "desc": "Tvoj zákazník odchádza kým sa stránka načíta. V roku 2025." },
|
||||||
|
{ "title": "2.1MB payload", "desc": "47 pluginov, 12 skriptov na trackovanie, 0 výkon." },
|
||||||
|
{ "title": "€99/mesiac", "desc": "Premium plugin. Potom ďalší. A ďalší. Na TVOJOM webe." },
|
||||||
|
{ "title": "€3,500 setup", "desc": "Za starú šablónu a import 20 produktov. Bez školenia." }
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"features": {
|
||||||
|
"title": "Všetko čo potrebuješ.",
|
||||||
|
"subtitle": "Nič čo nepotrebuješ.",
|
||||||
|
"items": [
|
||||||
|
{ "icon": "Shield", "title": "Žiadne SaaS", "desc": "Žiadny Algolia, Cookiebot, ani mesačné poplatky. Všetko beží na tvojom serveri."},
|
||||||
|
{ "icon": "Globe2", "title": "Multi-channel", "desc": "Jeden admin, nekonečné kanály. SK, DE, CZ domény s vlastnými šablónami a jazykmi."},
|
||||||
|
{ "icon": "BarChart3", "title": "First-party analytika", "desc": "Všetky GA4 eventy ako tvoje vlastné dáta. GDPR friendly, žiadne cookie bannery."},
|
||||||
|
{ "icon": "Blocks", "title": "Blokový CMS", "desc": "Dynamické stránky, blog, landing pages. Blokový editor ako v Notion."},
|
||||||
|
{ "icon": "Mail", "title": "Email builder", "desc": "Vstavaný generátor emailov. Blokový systém, vlastné šablóny, žiadny Mailchimp."},
|
||||||
|
{ "icon": "Tag", "title": "Zľavy & kupóny", "desc": "Cart rules, kupóny s metrikami, influencer marketing, buy X get Y."},
|
||||||
|
{ "icon": "Users", "title": "Premium používatelia", "desc": "Manuálne VIP statusy, oprávnenia na médiá, pripravené na subscription model."},
|
||||||
|
{ "icon": "Layers", "title": "Taxonómie", "desc": "Kategórie, tagy, vlastné hierarchie. Všetko s prekladmi a SEO."},
|
||||||
|
{ "icon": "Zap", "title": "Pod 1MB", "desc": "Celý backend bez závislostí. Čistý, udržiavateľný, rýchly ako blesk."}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"speed": {
|
||||||
|
"title": "Rýchlosť záleží.",
|
||||||
|
"subtitle": "Hlavne na 3G v slovenskej dedinke.",
|
||||||
|
"selector": "Vyber pripojenie:",
|
||||||
|
"networks": ["WiFi", "4G", "3G", "2G"],
|
||||||
|
"units": {
|
||||||
|
"time": "ms",
|
||||||
|
"size": "KB",
|
||||||
|
"requests": "req"
|
||||||
|
},
|
||||||
|
"metrics": {
|
||||||
|
"productPage": "Produktová stránka",
|
||||||
|
"categoryNav": "Navigácia + filtre",
|
||||||
|
"search": "Vyhľadávanie",
|
||||||
|
"checkout": "Checkout flow",
|
||||||
|
"admin": "Admin panel"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"screenshots": {
|
||||||
|
"title": "Pozri sa dovnútra.",
|
||||||
|
"tabs": ["Admin", "Obchod", "Objednávky", "CMS"]
|
||||||
|
},
|
||||||
|
"wild": {
|
||||||
|
"title": "V divočine",
|
||||||
|
"subtitle": "Projekty bežiace na AhojSvet",
|
||||||
|
"cta": "Pridaj svoj projekt"
|
||||||
|
},
|
||||||
|
"contact": {
|
||||||
|
"title": "Poďme sa baviť.",
|
||||||
|
"subtitle": "Všeobecné otázky alebo partnership",
|
||||||
|
"name": "Meno",
|
||||||
|
"email": "Email",
|
||||||
|
"company": "Spoločnosť",
|
||||||
|
"type": "Typ správy",
|
||||||
|
"types": ["Všeobecný dotaz", "Budúci projekt", "Partnerstvo", "Podpora"],
|
||||||
|
"message": "Správa",
|
||||||
|
"send": "Poslať správu",
|
||||||
|
"success": "Správa bola odoslaná"
|
||||||
|
},
|
||||||
|
"cta": {
|
||||||
|
"title": "Pripravení na zmenu?",
|
||||||
|
"subtitle": "Vyberte AhojSvet a začnite revolúciu",
|
||||||
|
"button": "Začať hneď"
|
||||||
|
},
|
||||||
|
"footer": {
|
||||||
|
"tagline": "© 2024 AhojSvet.eu. Všetky práva vyhradené."
|
||||||
|
}
|
||||||
|
}
|
||||||
87
src/i18n/locales/en.json
Normal file
|
|
@ -0,0 +1,87 @@
|
||||||
|
{
|
||||||
|
"nav": {
|
||||||
|
"demo": "Demo",
|
||||||
|
"docs": "Dokumentácia",
|
||||||
|
"wild": "V praxi",
|
||||||
|
"contact": "Kontakt"
|
||||||
|
},
|
||||||
|
"hero": {
|
||||||
|
"tagline": "Zbav sa reťazí.",
|
||||||
|
"subtitle": "Vlastni svoj obchod.",
|
||||||
|
"description": "Open-source eCommerce platforma bez SaaS závislostí. Tvoj obchod, tvoje dáta, žiadni páni.",
|
||||||
|
"cta": "Vyskúšať demo",
|
||||||
|
"docs": "Dokumentácia"
|
||||||
|
},
|
||||||
|
"problem": {
|
||||||
|
"title": "Dosť bolo slop-u.",
|
||||||
|
"subtitle": "Tisíce eur za WordPress z roku 2015",
|
||||||
|
"cards": [
|
||||||
|
{ "title": "4.2s load time", "desc": "Tvoj zákazník odchádza kým sa stránka načíta. V roku 2025." },
|
||||||
|
{ "title": "2.1MB payload", "desc": "47 pluginov, 12 skriptov na trackovanie, 0 výkon." },
|
||||||
|
{ "title": "€99/mesiac", "desc": "Premium plugin. Potom ďalší. A ďalší. Na TVOJOM webe." },
|
||||||
|
{ "title": "€3,500 setup", "desc": "Za starú šablónu a import 20 produktov. Bez školenia." }
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"features": {
|
||||||
|
"title": "Všetko čo potrebuješ.",
|
||||||
|
"subtitle": "Nič čo nepotrebuješ.",
|
||||||
|
"items": [
|
||||||
|
{ "icon": "Shield", "title": "Žiadne SaaS", "desc": "Žiadny Algolia, Cookiebot, ani mesačné poplatky. Všetko beží na tvojom serveri."},
|
||||||
|
{ "icon": "Globe2", "title": "Multi-channel", "desc": "Jeden admin, nekonečné kanály. SK, DE, CZ domény s vlastnými šablónami a jazykmi."},
|
||||||
|
{ "icon": "BarChart3", "title": "First-party analytika", "desc": "Všetky GA4 eventy ako tvoje vlastné dáta. GDPR friendly, žiadne cookie bannery."},
|
||||||
|
{ "icon": "Blocks", "title": "Blokový CMS", "desc": "Dynamické stránky, blog, landing pages. Blokový editor ako v Notion."},
|
||||||
|
{ "icon": "Mail", "title": "Email builder", "desc": "Vstavaný generátor emailov. Blokový systém, vlastné šablóny, žiadny Mailchimp."},
|
||||||
|
{ "icon": "Tag", "title": "Zľavy & kupóny", "desc": "Cart rules, kupóny s metrikami, influencer marketing, buy X get Y."},
|
||||||
|
{ "icon": "Users", "title": "Premium používatelia", "desc": "Manuálne VIP statusy, oprávnenia na médiá, pripravené na subscription model."},
|
||||||
|
{ "icon": "Layers", "title": "Taxonómie", "desc": "Kategórie, tagy, vlastné hierarchie. Všetko s prekladmi a SEO."},
|
||||||
|
{ "icon": "Zap", "title": "Pod 1MB", "desc": "Celý backend bez závislostí. Čistý, udržiavateľný, rýchly ako blesk."}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"speed": {
|
||||||
|
"title": "Rýchlosť záleží.",
|
||||||
|
"subtitle": "Hlavne na 3G v slovenskej dedinke.",
|
||||||
|
"selector": "Vyber pripojenie:",
|
||||||
|
"networks": ["WiFi", "4G", "3G", "2G"],
|
||||||
|
"units": {
|
||||||
|
"time": "ms",
|
||||||
|
"size": "KB",
|
||||||
|
"requests": "req"
|
||||||
|
},
|
||||||
|
"metrics": {
|
||||||
|
"productPage": "Produktová stránka",
|
||||||
|
"categoryNav": "Navigácia + filtre",
|
||||||
|
"search": "Vyhľadávanie",
|
||||||
|
"checkout": "Checkout flow",
|
||||||
|
"admin": "Admin panel"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"screenshots": {
|
||||||
|
"title": "Pozri sa dovnútra.",
|
||||||
|
"tabs": ["Admin", "Obchod", "Objednávky", "CMS"]
|
||||||
|
},
|
||||||
|
"wild": {
|
||||||
|
"title": "V divočine",
|
||||||
|
"subtitle": "Projekty bežiace na AhojSvet",
|
||||||
|
"cta": "Pridaj svoj projekt"
|
||||||
|
},
|
||||||
|
"contact": {
|
||||||
|
"title": "Poďme sa baviť.",
|
||||||
|
"subtitle": "Všeobecné otázky alebo partnership",
|
||||||
|
"name": "Meno",
|
||||||
|
"email": "Email",
|
||||||
|
"company": "Spoločnosť",
|
||||||
|
"type": "Typ správy",
|
||||||
|
"types": ["Všeobecný dotaz", "Budúci projekt", "Partnerstvo", "Podpora"],
|
||||||
|
"message": "Správa",
|
||||||
|
"send": "Poslať správu",
|
||||||
|
"success": "Správa bola odoslaná"
|
||||||
|
},
|
||||||
|
"cta": {
|
||||||
|
"title": "Pripravení na zmenu?",
|
||||||
|
"subtitle": "Vyberte AhojSvet a začnite revolúciu",
|
||||||
|
"button": "Začať hneď"
|
||||||
|
},
|
||||||
|
"footer": {
|
||||||
|
"tagline": "© 2024 AhojSvet.eu. Všetky práva vyhradené."
|
||||||
|
}
|
||||||
|
}
|
||||||
123
src/i18n/locales/sk.json
Normal file
|
|
@ -0,0 +1,123 @@
|
||||||
|
{
|
||||||
|
"nav": {
|
||||||
|
"demo": "Demo",
|
||||||
|
"docs": "Dokumentácia",
|
||||||
|
"wild": "V praxi",
|
||||||
|
"contact": "Kontakt"
|
||||||
|
},
|
||||||
|
"hero": {
|
||||||
|
"tagline": "Zbav sa reťazí.",
|
||||||
|
"subtitle": "Vlastni svoj obchod.",
|
||||||
|
"description": "Open-source eCommerce platforma bez SaaS závislostí. Tvoj obchod, tvoje dáta, žiadni páni.",
|
||||||
|
"cta": "Vyskúšať demo",
|
||||||
|
"docs": "Dokumentácia"
|
||||||
|
},
|
||||||
|
"problem": {
|
||||||
|
"title": "Dosť bolo slop-u.",
|
||||||
|
"subtitle": "Tisíce eur za WordPress z roku 2015",
|
||||||
|
"cards": [
|
||||||
|
{ "title": "4.2s load time", "desc": "Tvoj zákazník odchádza kým sa stránka načíta. V roku 2025." },
|
||||||
|
{ "title": "2.1MB payload", "desc": "47 pluginov, 12 skriptov na trackovanie, 0 výkon." },
|
||||||
|
{ "title": "€99/mesiac", "desc": "Premium plugin. Potom ďalší. A ďalší. Na TVOJOM webe." },
|
||||||
|
{ "title": "€3,500 setup", "desc": "Za starú šablónu a import 20 produktov. Bez školenia." }
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"features": {
|
||||||
|
"title": "Všetko čo potrebuješ.",
|
||||||
|
"subtitle": "Nič čo nepotrebuješ.",
|
||||||
|
"items": [
|
||||||
|
{ "icon": "Shield", "title": "Žiadne SaaS", "desc": "Žiadny Algolia, Cookiebot, ani mesačné poplatky. Všetko beží na tvojom serveri."},
|
||||||
|
{ "icon": "Globe2", "title": "Multi-channel", "desc": "Jeden admin, nekonečné kanály. SK, DE, CZ domény s vlastnými šablónami a jazykmi."},
|
||||||
|
{ "icon": "BarChart3", "title": "First-party analytika", "desc": "Všetky GA4 eventy ako tvoje vlastné dáta. GDPR friendly, žiadne cookie bannery."},
|
||||||
|
{ "icon": "Blocks", "title": "Blokový CMS", "desc": "Dynamické stránky, blog, landing pages. Blokový editor ako v Notion."},
|
||||||
|
{ "icon": "Mail", "title": "Email builder", "desc": "Vstavaný generátor emailov. Blokový systém, vlastné šablóny, žiadny Mailchimp."},
|
||||||
|
{ "icon": "Tag", "title": "Zľavy & kupóny", "desc": "Cart rules, kupóny s metrikami, influencer marketing, buy X get Y."},
|
||||||
|
{ "icon": "Users", "title": "Premium používatelia", "desc": "Manuálne VIP statusy, oprávnenia na médiá, pripravené na subscription model."},
|
||||||
|
{ "icon": "Layers", "title": "Taxonómie", "desc": "Kategórie, tagy, vlastné hierarchie. Všetko s prekladmi a SEO."},
|
||||||
|
{ "icon": "Zap", "title": "Pod 1MB", "desc": "Celý backend bez závislostí. Čistý, udržiavateľný, rýchly ako blesk."}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"speed": {
|
||||||
|
"title": "Rýchlosť záleží.",
|
||||||
|
"subtitle": "Hlavne na 3G v slovenskej dedinke.",
|
||||||
|
"selector": "Vyber pripojenie:",
|
||||||
|
"networks": ["WiFi", "4G", "3G", "2G"],
|
||||||
|
"units": {
|
||||||
|
"time": "ms",
|
||||||
|
"size": "KB",
|
||||||
|
"requests": "req"
|
||||||
|
},
|
||||||
|
"metrics": {
|
||||||
|
"productPage": "Produktová stránka",
|
||||||
|
"categoryNav": "Navigácia + filtre",
|
||||||
|
"search": "Vyhľadávanie",
|
||||||
|
"checkout": "Checkout flow",
|
||||||
|
"admin": "Admin panel"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"iceberg": {
|
||||||
|
"title": "Ľadovec WordPress-u.",
|
||||||
|
"subtitle": "Agentúra ti ukáže špičku. Zvyšok zistíš neskôr.",
|
||||||
|
"tipLabel": "Čo ti agentúra povie",
|
||||||
|
"hiddenLabel": "Čo zistíš po 3 mesiacoch",
|
||||||
|
"revealBtn": "Ukáž zvyšok",
|
||||||
|
"hideBtn": "Skryť",
|
||||||
|
"tip": [
|
||||||
|
{ "icon": "setup", "label": "Setup webu", "desc": "\"Profesionálny e-shop za super cenu\"" },
|
||||||
|
{ "icon": "theme", "label": "Premium šablóna", "desc": "\"Krásny dizajn, hotový za týždeň\"" }
|
||||||
|
],
|
||||||
|
"hidden": [
|
||||||
|
{ "icon": "plugin", "label": "Premium pluginy", "desc": "Elementor Pro, WooCommerce extensions, SEO, zálohy... každý s vlastným predplatným.", "severity": 2 },
|
||||||
|
{ "icon": "hosting", "label": "Managed hosting", "desc": "\"Odporúčaný\" hosting za €30-50/mesiac. Lebo WordPress potrebuje výkon.", "severity": 1 },
|
||||||
|
{ "icon": "maintenance", "label": "Mesačná \"údržba\"", "desc": "Agentúra ti účtuje za kliknutie na 'Update All'. Každý mesiac.", "severity": 2 },
|
||||||
|
{ "icon": "conflict", "label": "Plugin konflikty", "desc": "Aktualizuješ jeden plugin, rozbije sa checkout. Urgentný ticket.", "severity": 3 },
|
||||||
|
{ "icon": "security", "label": "Bezpečnostné záplaty", "desc": "WordPress je #1 cieľ hackerov. Záplaty, firewall pluginy, monitoring.", "severity": 2 },
|
||||||
|
{ "icon": "change", "label": "\"To nejde bez pluginu\"", "desc": "Chceš jednoduchú zmenu? Nový plugin. Alebo 8h custom vývoja v spaghetti kóde.", "severity": 3 },
|
||||||
|
{ "icon": "cookie", "label": "Cookie banner služba", "desc": "Cookiebot, CookieYes... ďalší mesačný poplatok za GDPR compliance.", "severity": 1 },
|
||||||
|
{ "icon": "analytics", "label": "Analytika tretích strán", "desc": "GA4 + tag manager + consent mode. Alebo plať za Plausible/Fathom.", "severity": 1 },
|
||||||
|
{ "icon": "email", "label": "Email marketing", "desc": "Mailchimp, Klaviyo... ďalšia mesačná služba s vlastným cenníkom.", "severity": 1 },
|
||||||
|
{ "icon": "dev", "label": "Dev hodiny × 2", "desc": "Plugin spaghetti = každá úprava trvá dvakrát dlhšie. A stojí dvakrát viac.", "severity": 3 }
|
||||||
|
],
|
||||||
|
"ahojsvet": {
|
||||||
|
"title": "AhojSvet",
|
||||||
|
"subtitle": "Žiadny ľadovec. Žiadne prekvapenia.",
|
||||||
|
"points": [
|
||||||
|
{ "label": "Jednorázový setup", "desc": "Zaplatíš raz. Vlastníš navždy." },
|
||||||
|
{ "label": "€0 mesačne za softvér", "desc": "Žiadne pluginy, žiadne predplatné. Tvoj server, tvoje náklady." },
|
||||||
|
{ "label": "Všetko vstavané", "desc": "Analytika, emaily, CMS, vyhľadávanie — bez tretích strán." },
|
||||||
|
{ "label": "Čistý Laravel kód", "desc": "Každý developer ho prečíta. Rozšírenia za zlomok času." },
|
||||||
|
{ "label": "Tvoje dáta, tvoje pravidlá", "desc": "GDPR friendly by default. Žiadne cookie bannery." }
|
||||||
|
],
|
||||||
|
"cta": "Spýtaj sa na cenu →"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"screenshots": {
|
||||||
|
"title": "Pozri sa dovnútra.",
|
||||||
|
"tabs": ["Admin", "Obchod", "Objednávky", "CMS"]
|
||||||
|
},
|
||||||
|
"wild": {
|
||||||
|
"title": "V divočine",
|
||||||
|
"subtitle": "Projekty bežiace na AhojSvet",
|
||||||
|
"cta": "Pridaj svoj projekt"
|
||||||
|
},
|
||||||
|
"contact": {
|
||||||
|
"title": "Poďme sa baviť.",
|
||||||
|
"subtitle": "Všeobecné otázky alebo partnership",
|
||||||
|
"name": "Meno",
|
||||||
|
"email": "Email",
|
||||||
|
"company": "Spoločnosť",
|
||||||
|
"type": "Typ správy",
|
||||||
|
"types": ["Všeobecný dotaz", "Budúci projekt", "Partnerstvo", "Podpora"],
|
||||||
|
"message": "Správa",
|
||||||
|
"send": "Poslať správu",
|
||||||
|
"success": "Správa bola odoslaná"
|
||||||
|
},
|
||||||
|
"cta": {
|
||||||
|
"title": "Pripravení na zmenu?",
|
||||||
|
"subtitle": "Vyberte AhojSvet a začnite revolúciu",
|
||||||
|
"button": "Začať hneď"
|
||||||
|
},
|
||||||
|
"footer": {
|
||||||
|
"tagline": "© 2024 AhojSvet.eu. Všetky práva vyhradené."
|
||||||
|
}
|
||||||
|
}
|
||||||
1
src/index.css
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
@import "tailwindcss";
|
||||||
11
src/main.jsx
Normal file
|
|
@ -0,0 +1,11 @@
|
||||||
|
import { StrictMode } from 'react'
|
||||||
|
import { createRoot } from 'react-dom/client'
|
||||||
|
import "./i18n";
|
||||||
|
import './index.css'
|
||||||
|
import App from './App.jsx'
|
||||||
|
|
||||||
|
createRoot(document.getElementById('root')).render(
|
||||||
|
<StrictMode>
|
||||||
|
<App />
|
||||||
|
</StrictMode>,
|
||||||
|
)
|
||||||
7
vite.config.js
Normal file
|
|
@ -0,0 +1,7 @@
|
||||||
|
import { defineConfig } from 'vite'
|
||||||
|
import react from '@vitejs/plugin-react'
|
||||||
|
import tailwindcss from '@tailwindcss/vite'
|
||||||
|
|
||||||
|
export default defineConfig({
|
||||||
|
plugins: [react(), tailwindcss()],
|
||||||
|
})
|
||||||