diff --git a/admin.php b/admin.php new file mode 100644 index 0000000..911bc21 --- /dev/null +++ b/admin.php @@ -0,0 +1,104 @@ + + + + + + + Admin Login + + + +
+
+
+

Admin Login

+ +
+ +
+
+ + +
+ +
+
+
+
+ + +query("SELECT * FROM contact_messages ORDER BY created_at DESC"); + $messages = $stmt->fetchAll(); +} catch (PDOException $e) { + die("DB ERROR: " . $e->getMessage()); +} +?> + + + + + + Admin - Contact Messages + + + +
+

Contact Form Submissions

+ + + + + + + + + + + + + + + + + + + + + + + + + + + +
IDNameEmailMessageSubmitted At
No messages yet.
+
+ + diff --git a/assets/css/custom.css b/assets/css/custom.css new file mode 100644 index 0000000..e08830b --- /dev/null +++ b/assets/css/custom.css @@ -0,0 +1,38 @@ +body { + padding-top: 56px; +} + +.hero-section { + background: url('https://picsum.photos/1600/900') no-repeat center center; + background-size: cover; + height: 100vh; + position: relative; +} + +.hero-section::before { + content: ''; + position: absolute; + top: 0; + left: 0; + right: 0; + bottom: 0; + background: rgba(0, 0, 0, 0.6); +} + +.hero-section .container { + position: relative; + z-index: 2; +} + +.card { + border: 1px solid rgba(255, 255, 255, 0.125); +} + +.navbar-scrolled { + background-color: #212529 !important; + transition: background-color 0.3s ease-in-out; +} + +section { + scroll-margin-top: 56px; +} diff --git a/assets/js/main.js b/assets/js/main.js new file mode 100644 index 0000000..e68682f --- /dev/null +++ b/assets/js/main.js @@ -0,0 +1,33 @@ +// Custom JS for interactions + +document.addEventListener('DOMContentLoaded', function () { + // Smooth scrolling for internal links + document.querySelectorAll('a[href^="#"]').forEach(anchor => { + anchor.addEventListener('click', function (e) { + e.preventDefault(); + document.querySelector(this.getAttribute('href')).scrollIntoView({ + behavior: 'smooth' + }); + }); + }); + + // Navbar style change 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'); + } + }); + + // Form validation + const form = document.querySelector('.needs-validation'); + form.addEventListener('submit', event => { + if (!form.checkValidity()) { + event.preventDefault(); + event.stopPropagation(); + } + form.classList.add('was-validated'); + }, false); +}); \ No newline at end of file diff --git a/assets/pasted-20250908-175824-e3e0b4b5.png b/assets/pasted-20250908-175824-e3e0b4b5.png new file mode 100644 index 0000000..bd5fae8 Binary files /dev/null and b/assets/pasted-20250908-175824-e3e0b4b5.png differ diff --git a/assets/pasted-20250908-175831-d581827c.png b/assets/pasted-20250908-175831-d581827c.png new file mode 100644 index 0000000..bd5fae8 Binary files /dev/null and b/assets/pasted-20250908-175831-d581827c.png differ diff --git a/assets/pasted-20250908-175900-723f6444.png b/assets/pasted-20250908-175900-723f6444.png new file mode 100644 index 0000000..bd5fae8 Binary files /dev/null and b/assets/pasted-20250908-175900-723f6444.png differ diff --git a/assets/pasted-20250908-180047-785facbb.png b/assets/pasted-20250908-180047-785facbb.png new file mode 100644 index 0000000..bd5fae8 Binary files /dev/null and b/assets/pasted-20250908-180047-785facbb.png differ diff --git a/db/migrations/001_create_contact_messages_table.php b/db/migrations/001_create_contact_messages_table.php new file mode 100644 index 0000000..0e1f75a --- /dev/null +++ b/db/migrations/001_create_contact_messages_table.php @@ -0,0 +1,18 @@ +exec($sql); + echo "Table 'contact_messages' created successfully." . PHP_EOL; +} catch (PDOException $e) { + die("DB ERROR: " . $e->getMessage()); +} diff --git a/index.php b/index.php index e13ae95..a168822 100644 --- a/index.php +++ b/index.php @@ -1,131 +1,200 @@ - - + - - - New Style - - - - + + + Filip the Founder + + + - -
-
-

Analyzing your requirements and generating your website…

-
- Loading… -
-

Flatlogic AI is collecting your requirements and applying the first changes.

-

This page will update automatically as the plan is implemented.

-

Runtime: PHP — UTC

-
-
- + + + + + + +
+
+

Filip the Founder

+

Building innovative web applications for a brighter future.

+ Contact Me +
+
+ + +
+
+

My Work

+
+ +
+
+ Project 1 +
+
Project One
+

A brief description of the first project, highlighting the technologies used and the problem solved.

+
+
+
+ +
+
+ Project 2 +
+
Project Two
+

A brief description of the second project, highlighting the technologies used and the problem solved.

+
+
+
+ +
+
+ Project 3 +
+
Project Three
+

A brief description of the third project, highlighting the technologies used and the problem solved.

+
+
+
+
+
+
+ + +
+
+

About Me

+
+
+ Filip +
+
+

I'm Filip, a passionate founder and developer with a knack for creating elegant and effective web solutions. With over a decade of experience in the industry, I specialize in turning complex problems into simple, beautiful, and intuitive designs.

+

My goal is to build applications that not only function flawlessly but also provide a delightful user experience. I'm always excited to take on new challenges and collaborate with clients to bring their visions to life.

+
+
+
+
+ + +
+
+

Testimonials

+
+
+
+
+ Testimonial 1 +

"Filip is a true professional. The quality of his work and his dedication to our project was outstanding."

+
Jane Doe, CEO of Innovate Inc.
+
+
+
+
+
+
+ Testimonial 2 +

"Working with Filip was a breeze. He understood our vision perfectly and delivered beyond our expectations."

+
John Smith, Founder of Tech Solutions
+
+
+
+
+
+
+ Testimonial 3 +

"The final product was polished, and the user feedback has been overwhelmingly positive. Highly recommended!"

+ +
+
+
+
+
+
+ + +
+
+

Contact Me

+
+
+ + + + + + + +
+
+ + +
+ Please enter your name. +
+
+
+ + +
+ Please enter a valid email address. +
+
+
+ + +
+ Please enter your message. +
+
+ +
+
+
+
+
+ + + + + + - + \ No newline at end of file diff --git a/submit_contact.php b/submit_contact.php new file mode 100644 index 0000000..88d2c77 --- /dev/null +++ b/submit_contact.php @@ -0,0 +1,29 @@ +prepare($sql); + $stmt->execute([$name, $email, $message]); + + // Redirect with success status + header('Location: index.php?status=success#contact'); + exit; + } catch (PDOException $e) { + // Handle DB error + header('Location: index.php?status=dberror'); + exit; + } +}