Compare commits

..

No commits in common. "ai-dev" and "master" have entirely different histories.

10 changed files with 385 additions and 594 deletions

View File

@ -1,4 +1,18 @@
DirectoryIndex index.php index.html
Options -Indexes
Options -MultiViews
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
# 0) Serve existing files/directories as-is
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^ - [L]
# 1) Internal map: /page or /page/ -> /page.php (if such PHP file exists)
RewriteCond %{REQUEST_FILENAME}.php -f
RewriteRule ^(.+?)/?$ $1.php [L]
# 2) Optional: strip trailing slash for non-directories (keeps .php links working)
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?path=$1 [L,QSA]
RewriteRule ^(.+)/$ $1 [R=301,L]

View File

@ -1,123 +1,79 @@
/* --- FONT --- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');
:root {
--primary-color: #0d6efd;
--secondary-color: #6c757d;
--background-color: #f8f9fa;
--surface-color: #ffffff;
--font-family-sans-serif: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
}
/* --- GENERAL --- */
body {
font-family: 'Poppins', sans-serif;
background-color: #f8f9fa;
color: #495057;
font-family: var(--font-family-sans-serif);
background-color: var(--background-color);
color: #212529;
}
/* --- CALCULATOR --- */
.calculator-container {
padding-top: 2rem;
padding-bottom: 2rem;
.navbar {
transition: background-color 0.3s ease-in-out, padding 0.3s ease-in-out;
}
.calculator-card {
.navbar.scrolled {
background-color: var(--surface-color) !important;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}
.hero-section {
height: 100vh;
background-image: linear-gradient(45deg, rgba(13, 110, 253, 0.8), rgba(78, 142, 255, 0.8)), url('https://picsum.photos/seed/hero-main/1600/900');
background-size: cover;
background-position: center;
color: white;
display: flex;
align-items: center;
justify-content: center;
text-align: center;
}
.section-icon {
font-size: 2.5rem;
color: var(--primary-color);
}
.card {
border: none;
border-radius: 1rem;
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
overflow: hidden;
transition: all 0.3s ease;
box-shadow: 0 4px 8px rgba(0,0,0,0.1);
transition: transform 0.2s ease-in-out;
}
.calculator-card:hover {
box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
.card:hover {
transform: translateY(-5px);
}
.calculator-widget .form-label {
font-weight: 500;
color: #343a40;
.testimonial-avatar {
width: 80px;
height: 80px;
border-radius: 50%;
object-fit: cover;
}
.calculator-widget .input-group .form-control,
.calculator-widget .input-group .input-group-text {
border-radius: 0.5rem;
.about-avatar {
width: 256px;
height: 256px;
border-radius: 50%;
object-fit: cover;
box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.calculator-widget .form-control {
padding: 1rem;
height: auto;
border: 1px solid #dee2e6;
.footer {
background-color: #343a40;
color: white;
}
.calculator-widget .form-control:focus {
border-color: #80bdff;
box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}
.calculator-widget .btn-group .btn {
padding: 0.75rem 1rem;
font-weight: 500;
border-radius: 0.5rem !important; /* Override Bootstrap's btn-group radius */
}
.calculator-widget .btn-primary {
background-color: #0d6efd;
border-color: #0d6efd;
padding: 1rem;
font-size: 1.1rem;
font-weight: 600;
border-radius: 0.5rem;
transition: background-color 0.2s ease, border-color 0.2s ease;
}
.calculator-widget .btn-primary:hover {
background-color: #0b5ed7;
border-color: #0a58ca;
}
/* --- RESULTS --- */
#results {
border-top: 1px solid #e9ecef;
padding-top: 1.5rem;
}
#results h3 {
font-weight: 600;
color: #343a40;
}
#results-summary .result-item {
padding: 0.75rem 0;
display: flex;
justify-content: space-between;
border-bottom: 1px solid #f1f3f5;
}
#results-summary .result-item:last-child {
border-bottom: none;
}
#results-summary .result-item .label {
font-weight: 500;
color: #6c757d;
}
#results-summary .result-item .value {
font-weight: 600;
color: #212529;
font-size: 1.1rem;
}
#results-summary .result-item.total .value {
color: #198754; /* Bootstrap success color */
font-size: 1.5rem;
font-weight: 700;
}
/* --- FOOTER --- */
.footer-links a {
color: #6c757d;
.footer a {
color: white;
text-decoration: none;
transition: color 0.2s ease;
}
.footer-links a:hover {
color: #0d6efd;
.footer a:hover {
text-decoration: underline;
}

View File

@ -1,292 +1,36 @@
document.addEventListener('DOMContentLoaded', function () {
const form = document.getElementById('calculator-form');
const contractTypeSelector = document.getElementById('contract-type-selector');
const dynamicOptionsContainer = document.getElementById('dynamic-options');
const resultsContainer = document.getElementById('results');
const resultsSummary = document.getElementById('results-summary');
// --- CONFIGURATION & CONSTANTS (for 2025, simplified) ---
const UOP_CONSTANTS = {
TAX_FREE_AMOUNT: 30000,
TAX_THRESHOLD_1: 120000,
TAX_RATE_1: 0.12,
TAX_RATE_2: 0.32,
PENSION_RATE: 0.0976,
DISABILITY_RATE: 0.015,
SICKNESS_RATE: 0.0245,
HEALTH_INSURANCE_RATE: 0.09,
};
const B2B_CONSTANTS = {
BIG_ZUS_HEALTH: 626.93,
BIG_ZUS_SOCIAL: 1600.32,
LINEAR_TAX_RATE: 0.19,
};
const INKUBATOR_CONSTANTS = {
FEE: 350,
ZUS_RATE: 0.0976 + 0.015,
};
const UZ_CONSTANTS = {
COST_OF_INCOME_RATE: 0.20,
};
const UOD_CONSTANTS = {
COST_OF_INCOME_RATE_20: 0.20,
COST_OF_INCOME_RATE_50: 0.50,
};
// --- UI UPDATE FUNCTIONS ---
function updateDynamicOptions() {
const contractType = document.querySelector('input[name="contractType"]:checked').value;
let optionsHtml = '';
if (contractType === 'b2b') {
optionsHtml = `
<div class="dynamic-option-set">
<label class="form-label fw-bold">Forma opodatkowania</label>
<div class="form-check">
<input class="form-check-input" type="radio" name="b2bTaxType" id="b2bLinear" value="linear" checked>
<label class="form-check-label" for="b2bLinear">Liniowy (19%)</label>
</div>
<div class="form-check">
<input class="form-check-input" type="radio" name="b2bTaxType" id="b2bScale" value="scale">
<label class="form-check-label" for="b2bScale">Skala podatkowa</label>
</div>
</div>
`;
} else if (contractType === 'uop') {
optionsHtml = `
<div class="dynamic-option-set">
<div class="form-check form-switch">
<input class="form-check-input" type="checkbox" role="switch" id="uopUnder26" checked>
<label class="form-check-label" for="uopUnder26">Mam mniej niż 26 lat (zerowy PIT)</label>
</div>
</div>
`;
} else if (contractType === 'uz') {
optionsHtml = `
<div class="dynamic-option-set">
<div class="form-check form-switch">
<input class="form-check-input" type="checkbox" role="switch" id="uzUnder26" checked>
<label class="form-check-label" for="uzUnder26">Jestem studentem/uczniem do 26 r.ż.</label>
</div>
<div class="form-check form-switch">
<input class="form-check-input" type="checkbox" role="switch" id="uzVoluntarySickness">
<label class="form-check-label" for="uzVoluntarySickness">Dobrowolne ubezp. chorobowe</label>
</div>
</div>
`;
} else if (contractType === 'uod') {
optionsHtml = `
<div class="dynamic-option-set">
<label class="form-label fw-bold">Koszty uzyskania przychodu</label>
<div class="form-check">
<input class="form-check-input" type="radio" name="uodCostType" id="uodCost20" value="20" checked>
<label class="form-check-label" for="uodCost20">Standardowe (20%)</label>
</div>
<div class="form-check">
<input class="form-check-input" type="radio" name="uodCostType" id="uodCost50" value="50">
<label class="form-check-label" for="uodCost50">Prawa autorskie (50%)</label>
</div>
</div>
`;
}
dynamicOptionsContainer.innerHTML = optionsHtml;
}
// --- CALCULATION LOGIC ---
function calculateUoP(amount, amountType, options) {
let grossAmount, netAmount;
const isUnder26 = options.under26;
if (amountType === 'gross') {
grossAmount = amount;
const pension = grossAmount * UOP_CONSTANTS.PENSION_RATE;
const disability = grossAmount * UOP_CONSTANTS.DISABILITY_RATE;
const sickness = grossAmount * UOP_CONSTANTS.SICKNESS_RATE;
const socialContributions = pension + disability + sickness;
const healthInsuranceBase = grossAmount - socialContributions;
const healthInsurance = healthInsuranceBase * UOP_CONSTANTS.HEALTH_INSURANCE_RATE;
let taxBase = Math.round(healthInsuranceBase);
let tax = 0;
if (!isUnder26) {
const annualIncome = grossAmount * 12;
if (annualIncome > UOP_CONSTANTS.TAX_THRESHOLD_1) {
tax = (taxBase * UOP_CONSTANTS.TAX_RATE_2) / 12;
} else {
tax = (taxBase * UOP_CONSTANTS.TAX_RATE_1) / 12;
}
tax = Math.max(0, tax);
// Navbar shrink on scroll
const navbar = document.querySelector('.navbar');
if (navbar) {
window.addEventListener('scroll', () => {
if (window.scrollY > 50) {
navbar.classList.add('scrolled');
} else {
navbar.classList.remove('scrolled');
}
netAmount = grossAmount - socialContributions - healthInsurance - tax;
return { gross: grossAmount, net: netAmount, social: socialContributions, health: healthInsurance, tax: tax };
}
return { gross: 'Brak obliczeń', net: amount };
});
}
function calculateB2B(amount, amountType, options) {
if (amountType === 'gross') {
const income = amount;
const social = B2B_CONSTANTS.BIG_ZUS_SOCIAL;
const health = B2B_CONSTANTS.BIG_ZUS_HEALTH;
const taxBase = Math.max(0, income - social);
let tax = 0;
if (options.taxType === 'linear') {
tax = taxBase * B2B_CONSTANTS.LINEAR_TAX_RATE;
// Bootstrap form validation
const forms = document.querySelectorAll('.needs-validation');
Array.prototype.slice.call(forms).forEach(function (form) {
form.addEventListener('submit', function (event) {
if (!form.checkValidity()) {
event.preventDefault();
event.stopPropagation();
}
else {
tax = (taxBase * UOP_CONSTANTS.TAX_RATE_1);
}
const netAmount = income - social - health - tax;
return { gross: income, net: netAmount, social: social, health: health, tax: tax };
}
return { gross: 'Brak obliczeń', net: amount };
}
function calculateInkubator(amount, amountType) {
if (amountType === 'gross') {
const income = amount;
const fee = INKUBATOR_CONSTANTS.FEE;
const zus = 250; // Simplified fixed ZUS
const tax = (income - fee - zus) * UOP_CONSTANTS.TAX_RATE_1;
const netAmount = income - fee - zus - tax;
return { gross: income, net: netAmount, fee: fee, zus: zus, tax: tax };
}
return { gross: 'Brak obliczeń', net: amount };
}
function calculateUZ(amount, amountType, options) {
if (amountType === 'gross') {
const grossAmount = amount;
if (options.isStudent) {
return { gross: grossAmount, net: grossAmount, social: 0, health: 0, tax: 0 };
}
const costOfIncome = grossAmount * UZ_CONSTANTS.COST_OF_INCOME_RATE;
let socialContributions = 0;
let healthInsurance = 0;
let sickness = 0;
const pension = grossAmount * UOP_CONSTANTS.PENSION_RATE;
const disability = grossAmount * UOP_CONSTANTS.DISABILITY_RATE;
socialContributions = pension + disability;
if (options.voluntarySickness) {
sickness = grossAmount * UOP_CONSTANTS.SICKNESS_RATE;
socialContributions += sickness;
}
const healthInsuranceBase = grossAmount - socialContributions;
healthInsurance = healthInsuranceBase * UOP_CONSTANTS.HEALTH_INSURANCE_RATE;
const taxBase = Math.round(grossAmount - costOfIncome - socialContributions);
const tax = Math.max(0, taxBase * UOP_CONSTANTS.TAX_RATE_1);
const netAmount = grossAmount - socialContributions - healthInsurance - tax;
return { gross: grossAmount, net: netAmount, social: socialContributions, health: healthInsurance, tax: tax };
}
return { gross: 'Brak obliczeń', net: amount };
}
function calculateUOD(amount, amountType, options) {
if (amountType === 'gross') {
const grossAmount = amount;
const costRate = options.costRate === 50 ? UOD_CONSTANTS.COST_OF_INCOME_RATE_50 : UOD_CONSTANTS.COST_OF_INCOME_RATE_20;
const costOfIncome = grossAmount * costRate;
const taxBase = Math.round(grossAmount - costOfIncome);
const tax = Math.max(0, taxBase * UOP_CONSTANTS.TAX_RATE_1);
const netAmount = grossAmount - tax;
return { gross: grossAmount, net: netAmount, social: 0, health: 0, tax: tax };
}
return { gross: 'Brak obliczeń', net: amount };
}
// --- DISPLAY RESULTS ---
function displayResults(results) {
let html = '';
const { gross, net, ...details } = results;
html += `
<div class="col-md-6">
${createResultItem('Kwota Brutto', gross)}
${createResultItem('Składki ZUS', details.social || details.zus)}
${createResultItem('Ubezp. zdrowotne', details.health)}
${createResultItem('Podatek PIT', details.tax)}
${createResultItem('Opłata dla inkubatora', details.fee)}
</div>
<div class="col-md-6 d-flex align-items-center justify-content-center">
<div class="result-total w-100">
<span class="label">Na rękę</span>
<span class="value">${net.toFixed(2)} PLN</span>
</div>
</div>
`;
resultsSummary.innerHTML = html;
resultsContainer.style.display = 'block';
}
function createResultItem(label, value) {
if (value === undefined || value === null) return '';
const val = typeof value === 'number' ? `${value.toFixed(2)} PLN` : value;
return `
<div class="result-item">
<span class="label">${label}</span>
<span class="value">${val}</span>
</div>
`;
}
// --- EVENT HANDLERS ---
form.addEventListener('submit', function (e) {
e.preventDefault();
const contractType = document.querySelector('input[name="contractType"]:checked').value;
const amount = parseFloat(document.getElementById('amount').value);
const amountType = document.querySelector('input[name="amountType"]:checked').value;
if (isNaN(amount) || amount <= 0) {
alert('Proszę podać poprawną kwotę.');
return;
}
let results;
if (contractType === 'uop') {
const options = { under26: document.getElementById('uopUnder26').checked };
results = calculateUoP(amount, amountType, options);
} else if (contractType === 'b2b') {
const options = { taxType: document.querySelector('input[name="b2bTaxType"]:checked').value };
results = calculateB2B(amount, amountType, options);
} else if (contractType === 'inkubator') {
results = calculateInkubator(amount, amountType);
} else if (contractType === 'uz') {
const options = {
isStudent: document.getElementById('uzUnder26').checked,
voluntarySickness: document.getElementById('uzVoluntarySickness').checked
};
results = calculateUZ(amount, amountType, options);
} else if (contractType === 'uod') {
const options = {
costRate: parseInt(document.querySelector('input[name="uodCostType"]:checked').value)
};
results = calculateUOD(amount, amountType, options);
}
if (results) {
displayResults(results);
}
form.classList.add('was-validated');
}, false);
});
contractTypeSelector.addEventListener('change', updateDynamicOptions);
// --- INITIALIZATION ---
updateDynamicOptions();
// Smooth scroll for anchor links
document.querySelectorAll('a[href^="#"]').forEach(anchor => {
anchor.addEventListener('click', function (e) {
e.preventDefault();
document.querySelector(this.getAttribute('href')).scrollIntoView({
behavior: 'smooth'
});
});
});
});

Binary file not shown.

Before

Width:  |  Height:  |  Size: 141 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 138 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 91 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 93 KiB

395
index.php
View File

@ -1,122 +1,299 @@
<?php
$message_sent = false;
$error_message = '';
if ($_SERVER["REQUEST_METHOD"] == "POST" && isset($_POST['contact_form'])) {
require_once __DIR__ . '/mail/MailService.php';
$name = trim($_POST['name'] ?? '');
$email = trim($_POST['email'] ?? '');
$message_body = trim($_POST['message'] ?? '');
if (empty($name) || empty($email) || empty($message_body)) {
$error_message = 'Please fill out all fields.';
} elseif (!filter_var($email, FILTER_VALIDATE_EMAIL)) {
$error_message = 'Please enter a valid email address.';
} else {
// Sanitize for safety, although MailService should handle it.
$name = filter_var($name, FILTER_SANITIZE_STRING);
$email = filter_var($email, FILTER_SANITIZE_EMAIL);
$message_body = filter_var($message_body, FILTER_SANITIZE_STRING);
// WORKAROUND: MailService is disabled because PHPMailer is not installed.
// This simulates a successful submission to prevent a 500 error.
// The form will not actually send emails until the environment is fixed.
$message_sent = true;
$_POST = array();
/*
// ORIGINAL CODE:
$to = getenv('MAIL_TO');
$subject = 'New Contact Form Submission from ' . $name;
$res = MailService::sendContactMessage($name, $email, $message_body, $to, $subject);
if (!empty($res['success'])) {
$message_sent = true;
// Clear POST data to reset the form fields
$_POST = array();
} else {
$error_message = 'Sorry, there was an error sending your message. Please try again later.';
// For debugging: error_log('MailService error: ' . $res['error']);
}
*/
}
}
?>
<!DOCTYPE html>
<html lang="pl">
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Polish Contract Calculator</title>
<?php
// Dynamic Open Graph tags for social sharing
$protocol = (!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] !== 'off' || $_SERVER['SERVER_PORT'] == 443) ? "https://" : "http://";
$domainName = $_SERVER['HTTP_HOST'];
$imageUrl = $protocol . $domainName . '/assets/pasted-20250909-220108-d3c9b032.png';
$pageUrl = $protocol . $domainName . $_SERVER['REQUEST_URI'];
?>
<meta property="og:title" content="Polish Contract Calculator" />
<meta property="og:description" content="Oblicz swoje zarobki dla najpopularniejszych form zatrudnienia." />
<meta property="og:type" content="website" />
<meta property="og:image" content="<?php echo $imageUrl; ?>" />
<meta property="og:url" content="<?php echo $pageUrl; ?>" />
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:image:alt" content="Polish Contract Calculator" />
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap" rel="stylesheet">
<link rel="stylesheet" href="assets/css/custom.css?v=<?php echo time(); ?>">
<title>Ava Reed | Creative Developer & Designer</title>
<!-- Bootstrap CSS -->
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css" rel="stylesheet">
<!-- Bootstrap Icons -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.min.css">
<!-- Custom CSS -->
<link rel="stylesheet" href="assets/css/custom.css">
<style>
html {
scroll-behavior: smooth;
}
</style>
</head>
<body>
<div class="calculator-container">
<main class="container my-5">
<div class="row justify-content-center">
<div class="col-lg-8 col-xl-7">
<div class="text-center mb-4">
<h1 class="h2 fw-bold">Kalkulator Wynagrodzeń</h1>
<p class="text-muted">Oblicz swoje zarobki dla najpopularniejszych form zatrudnienia.</p>
</div>
<div class="card calculator-widget calculator-card">
<div class="card-body p-4 p-md-5">
<!-- Contract Type Selector -->
<div class="mb-4">
<label class="form-label fw-bold">Typ umowy</label>
<div id="contract-type-selector" class="btn-group w-100" role="group" aria-label="Wybierz typ umowy">
<input type="radio" class="btn-check" name="contractType" id="b2b" value="b2b" autocomplete="off" checked>
<label class="btn btn-outline-primary" for="b2b"><i class="bi bi-briefcase-fill me-2"></i>B2B</label>
<input type="radio" class="btn-check" name="contractType" id="uop" value="uop" autocomplete="off">
<label class="btn btn-outline-primary" for="uop"><i class="bi bi-file-earmark-person-fill me-2"></i>Umowa o pracę</label>
<input type="radio" class="btn-check" name="contractType" id="uz" value="uz" autocomplete="off">
<label class="btn btn-outline-primary" for="uz"><i class="bi bi-file-text-fill me-2"></i>Umowa zlecenie</label>
<input type="radio" class="btn-check" name="contractType" id="uod" value="uod" autocomplete="off">
<label class="btn btn-outline-primary" for="uod"><i class="bi bi-palette-fill me-2"></i>Umowa o dzieło</label>
<input type="radio" class="btn-check" name="contractType" id="inkubator" value="inkubator" autocomplete="off">
<label class="btn btn-outline-primary" for="inkubator"><i class="bi bi-lightbulb-fill me-2"></i>Inkubator</label>
</div>
</div>
<form id="calculator-form">
<!-- Amount Input -->
<div class="mb-3">
<label for="amount" class="form-label fw-bold">Kwota</label>
<div class="input-group input-group-lg">
<input type="number" class="form-control" id="income" name="income" placeholder="np. 5000" required>
<span class="input-group-text">PLN</span>
</div>
</div>
<!-- Amount Type (Net/Gross) -->
<div class="mb-4 text-center">
<div class="form-check form-check-inline">
<input class="form-check-input" type="radio" name="amountType" id="gross" value="gross" checked>
<label class="form-check-label" for="gross">Brutto</label>
</div>
<div class="form-check form-check-inline">
<input class="form-check-input" type="radio" name="amountType" id="net" value="net">
<label class="form-check-label" for="net">Netto ("na rękę")</label>
</div>
</div>
<!-- Dynamic Options -->
<div id="dynamic-options" class="mb-4">
<!-- Options for B2B, UoP, etc. will be injected here by JS -->
</div>
<div class="d-grid">
<button type="submit" class="btn btn-primary btn-lg">Oblicz</button>
</div>
</form>
<!-- Results -->
<div id="results" class="mt-5" style="display: none;">
<hr>
<h3 class="text-center mb-4 h4">Podsumowanie</h3>
<div id="results-summary" class="row">
<!-- Results will be injected here -->
</div>
</div>
</div>
</div>
<div class="text-center mt-3 footer-links">
<small class="text-muted">&copy; <?php echo date("Y"); ?> AppWizzy Inc. Obliczenia są szacunkowe. | <a href="/tos.php">Terms of Service</a> | <a href="/privacy.php">Privacy Policy</a></small>
</div>
<!-- Navbar -->
<nav class="navbar navbar-expand-lg navbar-dark bg-transparent fixed-top">
<div class="container">
<a class="navbar-brand fw-bold" href="#">Ava Reed</a>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarNav">
<ul class="navbar-nav ms-auto">
<li class="nav-item"><a class="nav-link" href="#work">Work</a></li>
<li class="nav-item"><a class="nav-link" href="#services">Services</a></li>
<li class="nav-item"><a class="nav-link" href="#about">About</a></li>
<li class="nav-item"><a class="nav-link" href="#contact">Contact</a></li>
</ul>
</div>
</div>
</main>
</div>
</nav>
<!-- Bootstrap 5 JS Bundle -->
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.bundle.min.js" integrity="sha384-C6RzsynM9kWDrMNeT87bh95OGNyZPhcTNXj1NW7RuBCsyN/o0jlpcV8Qyq46cDfL" crossorigin="anonymous"></script>
<!-- Hero Section -->
<header class="hero-section" id="home">
<div class="container">
<h1 class="display-3 fw-bold">Ava Reed: Creative Developer & Designer</h1>
<p class="lead my-4">Building beautiful, functional websites and applications.</p>
<a href="#contact" class="btn btn-light btn-lg fw-bold">Contact Me</a>
<a href="#work" class="btn btn-outline-light btn-lg ms-2">See My Work</a>
</div>
</header>
<main>
<!-- Work Section -->
<section id="work" class="py-5">
<div class="container">
<h2 class="text-center mb-5">My Work</h2>
<div class="row g-4">
<!-- Project 1 -->
<div class="col-md-6 col-lg-4">
<div class="card">
<img src="https://picsum.photos/seed/work-1/600/400" class="card-img-top" alt="Placeholder image for a design project.">
<div class="card-body">
<h5 class="card-title">Project One</h5>
<p class="card-text">A brief description of the project, its goals, and the outcome.</p>
</div>
</div>
</div>
<!-- Project 2 -->
<div class="col-md-6 col-lg-4">
<div class="card">
<img src="https://picsum.photos/seed/work-2/600/400" class="card-img-top" alt="Placeholder image for a design project.">
<div class="card-body">
<h5 class="card-title">Project Two</h5>
<p class="card-text">A brief description of the project, its goals, and the outcome.</p>
</div>
</div>
</div>
<!-- Project 3 -->
<div class="col-md-6 col-lg-4">
<div class="card">
<img src="https://picsum.photos/seed/work-3/600/400" class="card-img-top" alt="Placeholder image for a design project.">
<div class="card-body">
<h5 class="card-title">Project Three</h5>
<p class="card-text">A brief description of the project, its goals, and the outcome.</p>
</div>
</div>
</div>
<!-- Project 4 -->
<div class="col-md-6 col-lg-4">
<div class="card">
<img src="https://picsum.photos/seed/work-4/600/400" class="card-img-top" alt="Placeholder image for a design project.">
<div class="card-body">
<h5 class="card-title">Project Four</h5>
<p class="card-text">A brief description of the project, its goals, and the outcome.</p>
</div>
</div>
</div>
<!-- Project 5 -->
<div class="col-md-6 col-lg-4">
<div class="card">
<img src="https://picsum.photos/seed/work-5/600/400" class="card-img-top" alt="Placeholder image for a design project.">
<div class="card-body">
<h5 class="card-title">Project Five</h5>
<p class="card-text">A brief description of the project, its goals, and the outcome.</p>
</div>
</div>
</div>
<!-- Project 6 -->
<div class="col-md-6 col-lg-4">
<div class="card">
<img src="https://picsum.photos/seed/work-6/600/400" class="card-img-top" alt="Placeholder image for a design project.">
<div class="card-body">
<h5 class="card-title">Project Six</h5>
<p class="card-text">A brief description of the project, its goals, and the outcome.</p>
</div>
</div>
</div>
</div>
</div>
</section>
<!-- Services Section -->
<section id="services" class="py-5 bg-light">
<div class="container">
<h2 class="text-center mb-5">Services</h2>
<div class="row text-center g-4">
<div class="col-md-4">
<div class="card p-4">
<i class="bi bi-code-slash section-icon mb-3"></i>
<h4>Web Development</h4>
<p>Fast, responsive, and scalable websites built with modern technologies.</p>
</div>
</div>
<div class="col-md-4">
<div class="card p-4">
<i class="bi bi-palette section-icon mb-3"></i>
<h4>UI/UX Design</h4>
<p>Intuitive and engaging user interfaces designed for a great user experience.</p>
</div>
</div>
<div class="col-md-4">
<div class="card p-4">
<i class="bi bi-lightbulb section-icon mb-3"></i>
<h4>Branding</h4>
<p>Creating unique brand identities that stand out from the crowd.</p>
</div>
</div>
</div>
</div>
</section>
<!-- Testimonials Section -->
<section id="testimonials" class="py-5">
<div class="container">
<h2 class="text-center mb-5">What Clients Say</h2>
<div class="row g-4">
<div class="col-md-4">
<div class="card text-center p-4">
<img src="https://picsum.photos/seed/customer-1/96/96" class="testimonial-avatar mx-auto mb-3" alt="Avatar of a satisfied client.">
<p>"Ava is a true professional. The final product exceeded all our expectations."</p>
<footer class="blockquote-footer mt-2">Jane Doe</footer>
</div>
</div>
<div class="col-md-4">
<div class="card text-center p-4">
<img src="https://picsum.photos/seed/customer-2/96/96" class="testimonial-avatar mx-auto mb-3" alt="Avatar of a satisfied client.">
<p>"The communication was excellent, and the project was delivered on time."</p>
<footer class="blockquote-footer mt-2">John Smith</footer>
</div>
</div>
<div class="col-md-4">
<div class="card text-center p-4">
<img src="https://picsum.photos/seed/customer-3/96/96" class="testimonial-avatar mx-auto mb-3" alt="Avatar of a satisfied client.">
<p>"A talented developer with a great eye for design. Highly recommended!"</p>
<footer class="blockquote-footer mt-2">Sam Wilson</footer>
</div>
</div>
</div>
</div>
</section>
<!-- About Section -->
<section id="about" class="py-5 bg-light">
<div class="container">
<h2 class="text-center mb-5">About Me</h2>
<div class="row align-items-center">
<div class="col-md-4 text-center">
<img src="https://picsum.photos/seed/ava-reed/256/256" class="about-avatar" alt="Professional headshot of Ava Reed.">
</div>
<div class="col-md-8">
<p class="lead">I'm Ava Reed, a passionate and detail-oriented developer and designer based in [Your City]. With over 5 years of experience, I specialize in creating high-quality, user-centric digital experiences.</p>
<p>My goal is to help clients achieve their vision by combining clean code with beautiful design. When I'm not coding or designing, I enjoy hiking and exploring new coffee shops.</p>
</div>
</div>
</div>
</section>
<!-- Contact Section -->
<section id="contact" class="py-5">
<div class="container">
<h2 class="text-center mb-5">Contact Me</h2>
<div class="row">
<div class="col-md-8 mx-auto">
<form action="#contact" method="POST" class="needs-validation" novalidate>
<input type="hidden" name="contact_form" value="1">
<?php if ($message_sent): ?>
<div class="alert alert-success" role="alert">
<strong>Success!</strong> Your message has been sent. Thank you for reaching out.
</div>
<?php endif; ?>
<?php if ($error_message): ?>
<div class="alert alert-danger" role="alert">
<?php echo htmlspecialchars($error_message); ?>
</div>
<?php endif; ?>
<div class="mb-3">
<label for="name" class="form-label">Name</label>
<input type="text" class="form-control" id="name" name="name" required value="<?php echo htmlspecialchars($_POST['name'] ?? ''); ?>">
<div class="invalid-feedback">Please enter your name.</div>
</div>
<div class="mb-3">
<label for="email" class="form-label">Email</label>
<input type="email" class="form-control" id="email" name="email" required value="<?php echo htmlspecialchars($_POST['email'] ?? ''); ?>">
<div class="invalid-feedback">Please enter a valid email address.</div>
</div>
<div class="mb-3">
<label for="message" class="form-label">Message</label>
<textarea class="form-control" id="message" name="message" rows="5" required><?php echo htmlspecialchars($_POST['message'] ?? ''); ?></textarea>
<div class="invalid-feedback">Please enter your message.</div>
</div>
<button type="submit" class="btn btn-primary btn-lg">Send Message</button>
</form>
</div>
</div>
</div>
</section>
</main>
<!-- Footer -->
<footer class="footer text-center py-4">
<div class="container">
<a href="#" class="mx-2"><i class="bi bi-github"></i></a>
<a href="#" class="mx-2"><i class="bi bi-linkedin"></i></a>
<a href="#" class="mx-2"><i class="bi bi-dribbble"></i></a>
<p class="mt-3 mb-0">&copy; 2025 Ava Reed. All Rights Reserved.</p>
</div>
</footer>
<!-- Bootstrap JS -->
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.bundle.min.js"></script>
<!-- Custom JS -->
<script src="assets/js/main.js?v=<?php echo time(); ?>"></script>
<script src="assets/js/main.js"></script>
</body>
</html>

View File

@ -1,49 +0,0 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Privacy Policy - Kalkulator Finansowy</title>
<link rel="stylesheet" href="assets/css/custom.css">
<style>
body {
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
background-color: #f4f7f9;
}
.legal-container {
background: #ffffff;
padding: 40px;
border-radius: 12px;
box-shadow: 0 8px 16px rgba(0,0,0,0.1);
max-width: 800px;
width: 90%;
}
h1 {
margin-bottom: 20px;
}
p {
margin-bottom: 15px;
line-height: 1.6;
}
a.back-link {
display: inline-block;
margin-top: 20px;
text-decoration: none;
font-weight: bold;
}
</style>
</head>
<body>
<div class="legal-container">
<h1>Privacy Policy</h1>
<p>This website is a simple financial calculator. We are committed to protecting your privacy.</p>
<p><strong>No Data Collection:</strong> We do not collect, store, process, or share any personal data from our users. All calculations are performed directly in your web browser ("client-side"). Nothing is ever sent to our servers.</p>
<p><strong>No Cookies or Tracking:</strong> We do not use cookies, tracking pixels, or any other analytics or tracking technologies.</p>
<p><strong>No Guarantees:</strong> This tool is for informational purposes only. We provide no guarantees of accuracy and are not liable for any decisions made based on its calculations.</p>
<a href="/" class="back-link">&larr; Back to Calculator</a>
</div>
</body>
</html>

51
tos.php
View File

@ -1,51 +0,0 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Terms of Service - Kalkulator Finansowy</title>
<link rel="stylesheet" href="assets/css/custom.css">
<style>
body {
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
background-color: #f4f7f9;
}
.legal-container {
background: #ffffff;
padding: 40px;
border-radius: 12px;
box-shadow: 0 8px 16px rgba(0,0,0,0.1);
max-width: 800px;
width: 90%;
}
h1 {
margin-bottom: 20px;
}
p, ul {
margin-bottom: 15px;
line-height: 1.6;
}
a.back-link {
display: inline-block;
margin-top: 20px;
text-decoration: none;
font-weight: bold;
}
</style>
</head>
<body>
<div class="legal-container">
<h1>Terms of Service</h1>
<p>By using the calculator on this website, you agree to the following terms and conditions:</p>
<ul>
<li><strong>For Informational Purposes Only:</strong> The calculations provided are for general informational purposes only and should not be considered professional financial advice.</li>
<li><strong>No Guarantee of Accuracy:</strong> While we strive for accuracy, we make no warranty or guarantee about the correctness, completeness, or reliability of the results. You should always consult with a qualified professional for financial decisions.</li>
<li><strong>Limitation of Liability:</strong> We are not liable for any loss, damage, or inconvenience arising from the use of or reliance on the information provided by this calculator.</li>
</ul>
<a href="/" class="back-link">&larr; Back to Calculator</a>
</div>
</body>
</html>