Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ <h1>Corporate Inc.</h1>
<div class="hero-content">
<h2>Welcome to Corporate Inc.</h2>
<p>Building the future with AI-Native Development</p>
<button class="cta-button" onclick="showMessage()">Get Started</button>
<a href="#contact" class="cta-button">Request a consultation</a>
<a href="#contact" class="secondary-link">Learn More</a>
</div>
</section>
Expand Down
15 changes: 0 additions & 15 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,19 +12,6 @@ document.addEventListener('DOMContentLoaded', () => {
initializeGDPRCompliance();
});

/**
* Show welcome message - demonstrates user interaction logging for audit trails
*/
function showMessage() {
// Log user interaction (compliance requirement for audit trails)
logUserInteraction('cta_button_click', {
timestamp: new Date().toISOString(),
action: 'hero_cta_clicked',
user_agent: navigator.userAgent.substring(0, 100) // Truncated for privacy
});

alert('🎉 Welcome! This site is built with APM dependencies for compliance and design standards.');
}

/**
* Handle contact form submission with GDPR compliance
Expand Down Expand Up @@ -332,11 +319,9 @@ function announceToScreenReader(message, priority = 'polite') {

// Export functions for potential testing or external use
window.corporateWebsite = {
showMessage,
handleSubmit,
logUserInteraction
};

// Make functions globally available (for inline event handlers)
window.showMessage = showMessage;
window.handleSubmit = handleSubmit;
4 changes: 3 additions & 1 deletion style.css
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,9 @@ a:hover, a:focus {
border-radius: var(--radius-lg);
cursor: pointer;
transition: transform 0.2s ease, box-shadow 0.2s ease;
min-height: 32px;
min-height: 32px;
text-decoration: none;
display: inline-block;
}

.secondary-link {
Expand Down