Toggle navigation
☰
Home
HTML
CSS
Scripting
Database
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Primary Call-to-Action Button</title> <style> /* Component: Primary Call-to-Action Button Description: A high-contrast, conversion-focused button. */ :root { --cta-primary-bg: #007bff; --cta-primary-text: #ffffff; --cta-primary-bg-hover: #0056b3; --cta-primary-focus-outline: #007bff; } .cta-container-1 { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; display: flex; justify-content: center; align-items: center; padding: 2rem; background-color: #f8f9fa; /* Example background */ } .primary-cta-btn-1 { display: inline-block; font-size: 1.1rem; /* Responsive font size */ font-weight: 700; color: var(--cta-primary-text); background-color: var(--cta-primary-bg); border: none; border-radius: 8px; padding: 1rem 2rem; cursor: pointer; text-decoration: none; line-height: 1.5; transition: background-color 0.2s ease-in-out, transform 0.1s ease-in-out; box-shadow: 0 4px 15px rgba(0, 123, 255, 0.2); } .primary-cta-btn-1:hover { background-color: var(--cta-primary-bg-hover); transform: translateY(-2px); } .primary-cta-btn-1:active { transform: translateY(0); } .primary-cta-btn-1:focus-visible { outline: 3px solid var(--cta-primary-focus-outline); outline-offset: 3px; } /* For smaller screens */ @media (max-width: 600px) { .primary-cta-btn-1 { font-size: 1rem; padding: 0.8rem 1.6rem; width: 100%; /* Make button full-width on mobile for better tap targets */ text-align: center; } } </style> </head> <body> <div class="cta-container-1"> <button type="button" class="primary-cta-btn-1">Launch Your Masterpiece</button> </div> </body> </html>