diff --git a/assets/css/custom.css b/assets/css/custom.css new file mode 100644 index 0000000..34e8951 --- /dev/null +++ b/assets/css/custom.css @@ -0,0 +1,107 @@ +/* custom.css */ +:root { + --primary-color: #007BFF; + --secondary-color: #6C757D; + --light-bg: #FFFFFF; + --light-surface: #F8F9FA; + --light-text: #212529; + --dark-bg: #0a192f; + --dark-surface: #172a45; + --dark-text: #E0E0E0; + --accent-gradient: linear-gradient(45deg, #007BFF, #00C6FF); + --border-radius-sm: 0.25rem; + --border-radius-md: 0.5rem; + --border-radius-lg: 1rem; +} + +body { + font-family: 'Roboto', sans-serif; + background-color: var(--light-bg); + color: var(--light-text); + transition: background-color 0.3s ease, color 0.3s ease; +} + +body.dark-mode { + background-color: var(--dark-bg); + color: var(--dark-text); +} + +h1, h2, h3, h4, h5, h6 { + font-family: 'Poppins', sans-serif; + font-weight: 600; +} + +.navbar { + transition: background-color 0.3s ease; +} + +body.dark-mode .navbar { + background-color: var(--dark-surface) !important; +} + +.hero { + padding: 6rem 0; + background: var(--accent-gradient); + color: white; +} + +.btn-primary { + background: var(--accent-gradient); + border: none; + padding: 0.75rem 1.5rem; + border-radius: var(--border-radius-lg); + font-weight: 600; + transition: transform 0.2s ease, box-shadow 0.2s ease; +} + +.btn-primary:hover { + transform: translateY(-2px); + box-shadow: 0 4px 15px rgba(0, 123, 255, 0.4); +} + +.section { + padding: 4rem 0; +} + +.floating-card { + background-color: var(--light-surface); + border: none; + border-radius: var(--border-radius-lg); + box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05); + transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease; + opacity: 0; + transform: translateY(30px); +} + +.floating-card.is-visible { + opacity: 1; + transform: translateY(0); +} + +.floating-card:hover { + transform: translateY(-10px); + box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1); +} + +body.dark-mode .floating-card { + background-color: var(--dark-surface); + box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2); +} + +body.dark-mode .floating-card:hover { + box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3); +} + +.theme-toggle { + cursor: pointer; + font-size: 1.25rem; +} + +footer { + background-color: var(--light-surface); + transition: background-color 0.3s ease; +} + +body.dark-mode footer { + background-color: var(--dark-surface); +} diff --git a/assets/js/main.js b/assets/js/main.js new file mode 100644 index 0000000..9dc0b33 --- /dev/null +++ b/assets/js/main.js @@ -0,0 +1,51 @@ +// main.js +document.addEventListener('DOMContentLoaded', () => { + const themeToggle = document.getElementById('theme-toggle'); + const currentTheme = localStorage.getItem('theme'); + + if (currentTheme === 'dark') { + document.body.classList.add('dark-mode'); + themeToggle.innerHTML = ''; + } else { + themeToggle.innerHTML = ''; + } + + themeToggle.addEventListener('click', () => { + document.body.classList.toggle('dark-mode'); + let theme = 'light'; + if (document.body.classList.contains('dark-mode')) { + theme = 'dark'; + themeToggle.innerHTML = ''; + } else { + themeToggle.innerHTML = ''; + } + localStorage.setItem('theme', theme); + }); + + const animatedElements = document.querySelectorAll('.floating-card'); + const observer = new IntersectionObserver((entries) => { + entries.forEach(entry => { + if (entry.isIntersecting) { + entry.target.classList.add('is-visible'); + observer.unobserve(entry.target); + } + }); + }, { threshold: 0.1 }); + + animatedElements.forEach(el => { + observer.observe(el); + }); +}); + +function openChatWidget() { + // This function attempts to open the chat widget. + // The AnyChat script might create a global object to control the widget. + if (typeof AnyChat !== 'undefined' && AnyChat.open) { + AnyChat.open(); + } else { + console.log('Chat widget function not found. The widget might open automatically or requires a different function call.'); + // As a fallback, we can try to find the launcher button and click it. + const chatLauncher = document.getElementById('anychat-launcher'); // This ID is a guess + if(chatLauncher) chatLauncher.click(); + } +} diff --git a/index.php b/index.php index 7205f3d..39651a1 100644 --- a/index.php +++ b/index.php @@ -1,150 +1,119 @@ - - + - - - New Style - - - - - - - - - - - - - - - - - - - + + + Housing Assistance Fast + + + + + + + + + + + + + + + + + + -
-
-

Analyzing your requirements and generating your website…

-
- Loading… -
-

AI is collecting your requirements and applying the first changes.

-

This page will update automatically as the plan is implemented.

-

Runtime: PHP — UTC

-
-
- + + + + + +
+
+

Find a Safe Place to Call Home

+

Immediate housing assistance for individuals and families in Florida.

+ +
+
+ + +
+
+

How We Can Help

+
+
+
+
+

Emergency Shelter

+

Connect with shelters for immediate, temporary housing.

+ +
+
+
+
+
+
+

Housing Resources

+

Access information on affordable housing and support programs.

+ +
+
+
+
+
+
+

Talk to Someone

+

Our team is available 24/7 to help you find the right solution.

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

Find Resources Near You

+

We'll soon have a map to help you find shelters and services in your area.

+
+

Interactive Map Coming Soon!

+

This area will display a map with filterable resources based on your location.

+
+ +
+
+ + + + + + + + + + + + - + \ No newline at end of file