Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ca7997f37e | ||
|
|
14c4e1cd90 |
225
assets/css/custom.css
Normal file
225
assets/css/custom.css
Normal file
@ -0,0 +1,225 @@
|
||||
:root {
|
||||
--sidebar-bg: #1a1a1a;
|
||||
--main-bg: #f0f2f5;
|
||||
--text-light: #e0e0e0;
|
||||
--text-dark: #333;
|
||||
--primary-color: #007bff;
|
||||
--card-bg: #ffffff;
|
||||
--shadow: 0 4px 8px rgba(0,0,0,0.1);
|
||||
}
|
||||
|
||||
body {
|
||||
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
|
||||
margin: 0;
|
||||
display: flex;
|
||||
background-color: var(--main-bg);
|
||||
color: var(--text-dark);
|
||||
}
|
||||
|
||||
.sidebar {
|
||||
width: 280px;
|
||||
background-color: var(--sidebar-bg);
|
||||
color: var(--text-light);
|
||||
position: fixed;
|
||||
height: 100%;
|
||||
padding: 30px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.profile-pic {
|
||||
width: 120px;
|
||||
height: 120px;
|
||||
border-radius: 50%;
|
||||
border: 3px solid var(--primary-color);
|
||||
}
|
||||
|
||||
.sidebar h3 {
|
||||
color: #fff;
|
||||
margin-top: 15px;
|
||||
margin-bottom: 5px;
|
||||
}
|
||||
|
||||
.sidebar .nav-link {
|
||||
color: var(--text-light);
|
||||
margin: 10px 0;
|
||||
font-size: 1.1rem;
|
||||
transition: color 0.3s;
|
||||
}
|
||||
|
||||
.sidebar .nav-link i {
|
||||
margin-right: 15px;
|
||||
width: 20px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.sidebar .nav-link:hover,
|
||||
.sidebar .nav-link.active {
|
||||
color: var(--primary-color);
|
||||
}
|
||||
|
||||
.social-icons {
|
||||
margin-top: auto;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.social-icons a {
|
||||
color: var(--text-light);
|
||||
margin: 0 10px;
|
||||
font-size: 1.2rem;
|
||||
transition: color 0.3s;
|
||||
}
|
||||
|
||||
.social-icons a:hover {
|
||||
color: var(--primary-color);
|
||||
}
|
||||
|
||||
.main-content {
|
||||
margin-left: 280px;
|
||||
padding: 40px;
|
||||
width: calc(100% - 280px);
|
||||
}
|
||||
|
||||
.content-section {
|
||||
padding: 60px 0;
|
||||
border-bottom: 1px solid #ddd;
|
||||
}
|
||||
|
||||
.hero-section {
|
||||
text-align: center;
|
||||
padding: 100px 0;
|
||||
}
|
||||
|
||||
.hero-section h1 {
|
||||
font-size: 3rem;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.hero-section p {
|
||||
font-size: 1.2rem;
|
||||
color: #666;
|
||||
}
|
||||
|
||||
h2 {
|
||||
font-weight: 700;
|
||||
margin-bottom: 40px;
|
||||
text-align: center;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
h2::after {
|
||||
content: '';
|
||||
position: absolute;
|
||||
bottom: -10px;
|
||||
left: 50%;
|
||||
transform: translateX(-50%);
|
||||
width: 60px;
|
||||
height: 3px;
|
||||
background-color: var(--primary-color);
|
||||
}
|
||||
|
||||
.card {
|
||||
border: none;
|
||||
border-radius: 10px;
|
||||
box-shadow: var(--shadow);
|
||||
transition: transform 0.3s, box-shadow 0.3s;
|
||||
background-color: var(--card-bg);
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.card:hover {
|
||||
transform: translateY(-10px);
|
||||
box-shadow: 0 8px 16px rgba(0,0,0,0.2);
|
||||
}
|
||||
|
||||
.card .card-body {
|
||||
padding: 30px;
|
||||
}
|
||||
|
||||
.card i {
|
||||
color: var(--primary-color);
|
||||
}
|
||||
|
||||
.project-card img {
|
||||
border-top-left-radius: 10px;
|
||||
border-top-right-radius: 10px;
|
||||
}
|
||||
|
||||
.form-control {
|
||||
border-radius: 5px;
|
||||
padding: 12px;
|
||||
}
|
||||
|
||||
.btn-primary {
|
||||
background-color: var(--primary-color);
|
||||
border-color: var(--primary-color);
|
||||
border-radius: 50px;
|
||||
padding: 12px 30px;
|
||||
font-weight: 600;
|
||||
transition: background-color 0.3s;
|
||||
}
|
||||
|
||||
.btn-primary:hover {
|
||||
background-color: #0056b3;
|
||||
border-color: #0056b3;
|
||||
}
|
||||
|
||||
footer {
|
||||
padding: 20px 0;
|
||||
color: #777;
|
||||
}
|
||||
|
||||
/* Responsive */
|
||||
@media (max-width: 992px) {
|
||||
.sidebar {
|
||||
width: 100%;
|
||||
height: auto;
|
||||
position: relative;
|
||||
flex-direction: row;
|
||||
justify-content: space-between;
|
||||
padding: 15px;
|
||||
}
|
||||
|
||||
.sidebar .profile-pic {
|
||||
width: 60px;
|
||||
height: 60px;
|
||||
}
|
||||
|
||||
.sidebar h3, .sidebar .text-muted {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.sidebar .nav {
|
||||
flex-direction: row;
|
||||
}
|
||||
|
||||
.sidebar .nav-link {
|
||||
margin: 0 5px;
|
||||
font-size: 1rem;
|
||||
}
|
||||
|
||||
.sidebar .nav-link i {
|
||||
margin-right: 5px;
|
||||
}
|
||||
|
||||
.social-icons {
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
.main-content {
|
||||
margin-left: 0;
|
||||
width: 100%;
|
||||
padding: 20px;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 768px) {
|
||||
.sidebar {
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
}
|
||||
.sidebar .nav {
|
||||
margin-top: 15px;
|
||||
}
|
||||
}
|
||||
32
assets/js/main.js
Normal file
32
assets/js/main.js
Normal file
@ -0,0 +1,32 @@
|
||||
|
||||
document.addEventListener('DOMContentLoaded', function () {
|
||||
// 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'
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
// Navbar shrink on scroll
|
||||
const navbar = document.querySelector('.navbar');
|
||||
window.addEventListener('scroll', () => {
|
||||
if (window.scrollY > 50) {
|
||||
navbar.classList.add('navbar-scrolled');
|
||||
} else {
|
||||
navbar.classList.remove('navbar-scrolled');
|
||||
}
|
||||
});
|
||||
|
||||
// Contact form validation
|
||||
const form = document.querySelector('#contactForm');
|
||||
form.addEventListener('submit', function (event) {
|
||||
if (!form.checkValidity()) {
|
||||
event.preventDefault();
|
||||
event.stopPropagation();
|
||||
}
|
||||
form.classList.add('was-validated');
|
||||
}, false);
|
||||
});
|
||||
BIN
assets/pasted-20250908-193018-a1583c4b.png
Normal file
BIN
assets/pasted-20250908-193018-a1583c4b.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.2 MiB |
BIN
assets/pasted-20250908-193703-22598405.png
Normal file
BIN
assets/pasted-20250908-193703-22598405.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1018 KiB |
BIN
assets/pasted-20250908-194640-01832f45.png
Normal file
BIN
assets/pasted-20250908-194640-01832f45.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 428 KiB |
BIN
assets/pasted-20250908-194818-569bcc8f.png
Normal file
BIN
assets/pasted-20250908-194818-569bcc8f.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 428 KiB |
BIN
assets/pasted-20250908-194856-031f132d.png
Normal file
BIN
assets/pasted-20250908-194856-031f132d.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 428 KiB |
242
index.php
242
index.php
@ -1,131 +1,125 @@
|
||||
<?php
|
||||
declare(strict_types=1);
|
||||
@ini_set('display_errors', '1');
|
||||
@error_reporting(E_ALL);
|
||||
@date_default_timezone_set('UTC');
|
||||
|
||||
$phpVersion = PHP_VERSION;
|
||||
$now = date('Y-m-d H:i:s');
|
||||
?>
|
||||
<!doctype html>
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>New Style</title>
|
||||
<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=Inter:wght@400;700&display=swap" rel="stylesheet">
|
||||
<style>
|
||||
:root {
|
||||
--bg-color-start: #6a11cb;
|
||||
--bg-color-end: #2575fc;
|
||||
--text-color: #ffffff;
|
||||
--card-bg-color: rgba(255, 255, 255, 0.01);
|
||||
--card-border-color: rgba(255, 255, 255, 0.1);
|
||||
}
|
||||
body {
|
||||
margin: 0;
|
||||
font-family: 'Inter', sans-serif;
|
||||
background: linear-gradient(45deg, var(--bg-color-start), var(--bg-color-end));
|
||||
color: var(--text-color);
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
min-height: 100vh;
|
||||
text-align: center;
|
||||
overflow: hidden;
|
||||
position: relative;
|
||||
}
|
||||
body::before {
|
||||
content: '';
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><path d="M-10 10L110 10M10 -10L10 110" stroke-width="1" stroke="rgba(255,255,255,0.05)"/></svg>');
|
||||
animation: bg-pan 20s linear infinite;
|
||||
z-index: -1;
|
||||
}
|
||||
@keyframes bg-pan {
|
||||
0% { background-position: 0% 0%; }
|
||||
100% { background-position: 100% 100%; }
|
||||
}
|
||||
main {
|
||||
padding: 2rem;
|
||||
}
|
||||
.card {
|
||||
background: var(--card-bg-color);
|
||||
border: 1px solid var(--card-border-color);
|
||||
border-radius: 16px;
|
||||
padding: 2rem;
|
||||
backdrop-filter: blur(20px);
|
||||
-webkit-backdrop-filter: blur(20px);
|
||||
box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
|
||||
}
|
||||
.loader {
|
||||
margin: 1.25rem auto 1.25rem;
|
||||
width: 48px;
|
||||
height: 48px;
|
||||
border: 3px solid rgba(255, 255, 255, 0.25);
|
||||
border-top-color: #fff;
|
||||
border-radius: 50%;
|
||||
animation: spin 1s linear infinite;
|
||||
}
|
||||
@keyframes spin {
|
||||
from { transform: rotate(0deg); }
|
||||
to { transform: rotate(360deg); }
|
||||
}
|
||||
.hint {
|
||||
opacity: 0.9;
|
||||
}
|
||||
.sr-only {
|
||||
position: absolute;
|
||||
width: 1px; height: 1px;
|
||||
padding: 0; margin: -1px;
|
||||
overflow: hidden;
|
||||
clip: rect(0, 0, 0, 0);
|
||||
white-space: nowrap; border: 0;
|
||||
}
|
||||
h1 {
|
||||
font-size: 3rem;
|
||||
font-weight: 700;
|
||||
margin: 0 0 1rem;
|
||||
letter-spacing: -1px;
|
||||
}
|
||||
p {
|
||||
margin: 0.5rem 0;
|
||||
font-size: 1.1rem;
|
||||
}
|
||||
code {
|
||||
background: rgba(0,0,0,0.2);
|
||||
padding: 2px 6px;
|
||||
border-radius: 4px;
|
||||
font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
|
||||
}
|
||||
footer {
|
||||
position: absolute;
|
||||
bottom: 1rem;
|
||||
font-size: 0.8rem;
|
||||
opacity: 0.7;
|
||||
}
|
||||
</style>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>John Doe - Portfolio</title>
|
||||
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css" rel="stylesheet">
|
||||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
|
||||
<link rel="stylesheet" href="assets/css/custom.css?v=2">
|
||||
</head>
|
||||
<body>
|
||||
<main>
|
||||
<div class="card">
|
||||
<h1>Analyzing your requirements and generating your website…</h1>
|
||||
<div class="loader" role="status" aria-live="polite" aria-label="Applying initial changes">
|
||||
<span class="sr-only">Loading…</span>
|
||||
</div>
|
||||
<p class="hint">Flatlogic AI is collecting your requirements and applying the first changes.</p>
|
||||
<p class="hint">This page will update automatically as the plan is implemented.</p>
|
||||
<p>Runtime: PHP <code><?= htmlspecialchars($phpVersion) ?></code> — UTC <code><?= htmlspecialchars($now) ?></code></p>
|
||||
|
||||
<div class="sidebar">
|
||||
<div class="text-center mb-5">
|
||||
<img src="https://i.imgur.com/your-profile-pic.jpg" alt="John Doe" class="profile-pic">
|
||||
<h3 class="mt-3">John Doe</h3>
|
||||
<p class="text-muted">Web Developer</p>
|
||||
</div>
|
||||
<nav class="nav flex-column">
|
||||
<a class="nav-link active" href="#home"><i class="fas fa-home"></i> Home</a>
|
||||
<a class="nav-link" href="#about"><i class="fas fa-user"></i> About</a>
|
||||
<a class="nav-link" href="#services"><i class="fas fa-concierge-bell"></i> Services</a>
|
||||
<a class="nav-link" href="#work"><i class="fas fa-briefcase"></i> My Work</a>
|
||||
<a class="nav-link" href="#contact"><i class="fas fa-envelope"></i> Contact</a>
|
||||
</nav>
|
||||
<div class="social-icons mt-5">
|
||||
<a href="#"><i class="fab fa-twitter"></i></a>
|
||||
<a href="#"><i class="fab fa-linkedin-in"></i></a>
|
||||
<a href="#"><i class="fab fa-github"></i></a>
|
||||
</div>
|
||||
</div>
|
||||
</main>
|
||||
<footer>
|
||||
Page updated: <?= htmlspecialchars($now) ?> (UTC)
|
||||
</footer>
|
||||
|
||||
<div class="main-content">
|
||||
<section id="home" class="hero-section text-center">
|
||||
<h1>Welcome to My Portfolio</h1>
|
||||
<p>I create modern and responsive web applications.</p>
|
||||
<a href="#contact" class="btn btn-primary">Get in Touch</a>
|
||||
</section>
|
||||
|
||||
<section id="about" class="content-section">
|
||||
<h2>About Me</h2>
|
||||
<p>Hello! I'm John Doe, a passionate web developer with a knack for creating elegant and efficient solutions. I have a strong background in front-end and back-end technologies, and I love bringing ideas to life in the browser.</p>
|
||||
</section>
|
||||
|
||||
<section id="services" class="content-section">
|
||||
<h2>Services</h2>
|
||||
<div class="row">
|
||||
<div class="col-md-4">
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
<i class="fas fa-laptop-code fa-2x"></i>
|
||||
<h5 class="card-title mt-3">Web Development</h5>
|
||||
<p class="card-text">Full-stack development of web applications.</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
<i class="fas fa-mobile-alt fa-2x"></i>
|
||||
<h5 class="card-title mt-3">Responsive Design</h5>
|
||||
<p class="card-text">Websites that work on all devices.</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
<i class="fas fa-palette fa-2x"></i>
|
||||
<h5 class="card-title mt-3">UI/UX Design</h5>
|
||||
<p class="card-text">Intuitive and beautiful user interfaces.</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section id="work" class="content-section">
|
||||
<h2>My Work</h2>
|
||||
<div class="row">
|
||||
<div class="col-md-6 mb-4">
|
||||
<div class="card project-card">
|
||||
<img src="https://i.imgur.com/project-1.jpg" class="card-img-top" alt="Project 1">
|
||||
<div class="card-body">
|
||||
<h5 class="card-title">Project One</h5>
|
||||
<p class="card-text">A description of the first project.</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-6 mb-4">
|
||||
<div class="card project-card">
|
||||
<img src="https://i.imgur.com/project-2.jpg" class="card-img-top" alt="Project 2">
|
||||
<div class="card-body">
|
||||
<h5 class="card-title">Project Two</h5>
|
||||
<p class="card-text">A description of the second project.</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section id="contact" class="content-section">
|
||||
<h2>Contact Me</h2>
|
||||
<form>
|
||||
<div class="mb-3">
|
||||
<input type="text" class="form-control" placeholder="Your Name">
|
||||
</div>
|
||||
<div class="mb-3">
|
||||
<input type="email" class="form-control" placeholder="Your Email">
|
||||
</div>
|
||||
<div class="mb-3">
|
||||
<textarea class="form-control" rows="5" placeholder="Your Message"></textarea>
|
||||
</div>
|
||||
<button type="submit" class="btn btn-primary">Send Message</button>
|
||||
</form>
|
||||
</section>
|
||||
|
||||
<footer class="text-center mt-5">
|
||||
<p>© 2025 John Doe. All Rights Reserved.</p>
|
||||
</footer>
|
||||
</div>
|
||||
|
||||
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.bundle.min.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user