Toggle navigation
☰
Home
HTML
CSS
Scripting
Database
<!DOCTYPE html> <title>My Example</title> <!-- ====================================================================== CSS - Place this in your <head> or in an external stylesheet. ====================================================================== --> <style> :root { --cph-padding: 4rem 1.5rem; --cph-bg-color: #ecfeff; /* Fallback BG */ --cph-pattern-bg-color: #ecfeff; /* Main pattern BG */ --cph-pattern-accent1: #67e8f9; --cph-pattern-accent2: #22d3ee; --cph-pattern-accent3: #06b6d4; --cph-text-color: #0e7490; --cph-headline-color: #164e63; --cah-cta-bg: #0e7490; --cah-cta-text-color: #ffffff; --cah-cta-hover-bg: #155e75; --cah-max-width: 800px; } .colorful-pattern-hero { box-sizing: border-box; font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; background-color: var(--cph-bg-color); width: 100%; padding: var(--cph-padding); display: flex; justify-content: center; align-items: center; text-align: center; /* The inline SVG background is applied here */ background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%2322d3ee' fill-opacity='0.4'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"); } .colorful-pattern-hero * { box-sizing: border-box; } .cph-content { max-width: var(--cah-max-width); background-color: rgba(255,255,255,0.7); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); padding: 2.5rem; border-radius: 12px; box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1); border: 1px solid rgba(255,255,255,0.2); } .cph-content .title { color: var(--cph-headline-color); font-size: clamp(2rem, 5vw, 3rem); font-weight: 700; line-height: 1.2; margin: 0 0 1rem; } .cph-content .subtitle { color: var(--cph-text-color); line-height: 1.6; margin: 0 auto 2rem; max-width: 600px; } .cph-content .cta { display: inline-block; background-color: var(--cah-cta-bg); color: var(--cah-cta-text-color); padding: 0.9rem 2rem; border-radius: 8px; font-size: 1rem; font-weight: 600; text-decoration: none; transition: background-color 0.3s ease; } .cph-content .cta:hover { background-color: var(--cah-cta-hover-bg); } </style> <!-- ====================================================================== HTML - Place this in your <body> where you want the component to appear. ====================================================================== --> <section class="colorful-pattern-hero"> <div class="cph-content"> <h1 class="title">Create with Color</h1> <p class="subtitle">A design platform built for vibrant brands. Unleash your creativity with powerful tools and endless possibilities.</p> <a href="#" role="button" class="cta">Start Designing</a> </div> </section>