initial commit
This commit is contained in:
815
layouts/_default/baseof.html
Normal file
815
layouts/_default/baseof.html
Normal file
@@ -0,0 +1,815 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>{{ if .Title }}{{ .Title }} - {{ end }}{{ .Site.Title }}</title>
|
||||
<meta name="description" content="{{ .Description | default .Site.Params.description }}">
|
||||
|
||||
<style>
|
||||
@import url('/fonts/space-grotesk-local.css');
|
||||
|
||||
* {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
:root {
|
||||
--e2c-yellow: #F4D03F;
|
||||
--e2c-dark-yellow: #E8C547;
|
||||
--text-primary: #2C3E50;
|
||||
--text-secondary: #7F8C8D;
|
||||
--background: #FEFEFE;
|
||||
--card-background: #FFFFFF;
|
||||
--border: #E5E8E8;
|
||||
--shadow: rgba(0, 0, 0, 0.08);
|
||||
}
|
||||
|
||||
body {
|
||||
font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
|
||||
line-height: 1.6;
|
||||
color: var(--text-primary);
|
||||
background: var(--background);
|
||||
font-weight: 400;
|
||||
}
|
||||
|
||||
.container {
|
||||
max-width: 1200px;
|
||||
margin: 0 auto;
|
||||
padding: 0 24px;
|
||||
}
|
||||
|
||||
.site-header {
|
||||
background-image: url('/img/notion_bg-1.png');
|
||||
background-size: cover;
|
||||
background-position: center top;
|
||||
background-repeat: no-repeat;
|
||||
border-bottom: 1px solid var(--border);
|
||||
padding: 16px 0;
|
||||
position: sticky;
|
||||
top: 0;
|
||||
z-index: 100;
|
||||
min-height: 80px;
|
||||
}
|
||||
|
||||
nav {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.logo {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
text-decoration: none;
|
||||
color: var(--text-primary);
|
||||
font-weight: 600;
|
||||
font-size: 1.2rem;
|
||||
background: rgba(255, 255, 255, 0.9);
|
||||
padding: 8px 16px;
|
||||
border-radius: 24px;
|
||||
backdrop-filter: blur(8px);
|
||||
border: 1px solid rgba(255, 255, 255, 0.3);
|
||||
}
|
||||
|
||||
.logo img {
|
||||
height: 36px;
|
||||
margin-right: 10px;
|
||||
}
|
||||
|
||||
.nav-links {
|
||||
display: flex;
|
||||
list-style: none;
|
||||
gap: 16px;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.nav-links a {
|
||||
text-decoration: none;
|
||||
color: var(--text-primary);
|
||||
font-weight: 500;
|
||||
font-size: 14px;
|
||||
padding: 8px 16px;
|
||||
border-radius: 20px;
|
||||
transition: all 0.2s ease;
|
||||
background: rgba(255, 255, 255, 0.9);
|
||||
backdrop-filter: blur(8px);
|
||||
border: 1px solid rgba(255, 255, 255, 0.3);
|
||||
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
|
||||
}
|
||||
|
||||
.nav-links a:hover {
|
||||
background: var(--e2c-yellow);
|
||||
border-color: var(--e2c-yellow);
|
||||
transform: translateY(-2px);
|
||||
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
|
||||
}
|
||||
|
||||
main {
|
||||
padding: 48px 0;
|
||||
min-height: calc(100vh - 200px);
|
||||
}
|
||||
|
||||
footer {
|
||||
background: var(--card-background);
|
||||
border-top: 1px solid var(--border);
|
||||
padding: 48px 0 32px 0;
|
||||
color: var(--text-secondary);
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
.footer-content {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 1fr;
|
||||
gap: 48px;
|
||||
align-items: start;
|
||||
}
|
||||
|
||||
.footer-section h3 {
|
||||
color: var(--text-primary);
|
||||
font-size: 1.25rem;
|
||||
margin-bottom: 16px;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.footer-section p {
|
||||
margin-bottom: 16px;
|
||||
line-height: 1.6;
|
||||
}
|
||||
|
||||
.newsletter-signup {
|
||||
margin-top: 24px;
|
||||
}
|
||||
|
||||
.custom-newsletter-form .form-group {
|
||||
display: flex;
|
||||
gap: 8px;
|
||||
margin-bottom: 12px;
|
||||
}
|
||||
|
||||
.email-input {
|
||||
flex: 1;
|
||||
font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
|
||||
font-weight: 400;
|
||||
font-size: 14px;
|
||||
padding: 10px 16px;
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 24px;
|
||||
background: rgba(255, 255, 255, 0.9);
|
||||
color: var(--text-primary);
|
||||
transition: all 0.2s ease;
|
||||
}
|
||||
|
||||
.email-input:focus {
|
||||
outline: none;
|
||||
border-color: var(--e2c-yellow);
|
||||
box-shadow: 0 0 0 2px rgba(244, 208, 63, 0.2);
|
||||
}
|
||||
|
||||
.email-input::placeholder {
|
||||
color: var(--text-secondary);
|
||||
}
|
||||
|
||||
.subscribe-btn {
|
||||
font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
|
||||
font-weight: 500;
|
||||
font-size: 14px;
|
||||
padding: 10px 20px;
|
||||
background: var(--e2c-yellow);
|
||||
color: var(--text-primary);
|
||||
border: 2px solid var(--e2c-yellow);
|
||||
border-radius: 24px;
|
||||
cursor: pointer;
|
||||
transition: all 0.2s ease;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.subscribe-btn:hover {
|
||||
background: var(--e2c-dark-yellow);
|
||||
border-color: var(--e2c-dark-yellow);
|
||||
transform: translateY(-1px);
|
||||
}
|
||||
|
||||
.form-note {
|
||||
font-size: 12px;
|
||||
color: var(--text-secondary);
|
||||
margin: 0;
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
.footer-links {
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
.footer-links p {
|
||||
margin-bottom: 8px;
|
||||
}
|
||||
|
||||
h1, h2, h3, h4, h5, h6 {
|
||||
margin-bottom: 16px;
|
||||
color: var(--text-primary);
|
||||
font-weight: 600;
|
||||
line-height: 1.3;
|
||||
}
|
||||
|
||||
h1 {
|
||||
font-size: 2.5rem;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
h2 {
|
||||
font-size: 2rem;
|
||||
}
|
||||
|
||||
h3 {
|
||||
font-size: 1.5rem;
|
||||
}
|
||||
|
||||
p {
|
||||
margin-bottom: 16px;
|
||||
color: var(--text-secondary);
|
||||
line-height: 1.7;
|
||||
}
|
||||
|
||||
a {
|
||||
color: var(--text-primary);
|
||||
text-decoration: underline;
|
||||
text-decoration-color: var(--e2c-yellow);
|
||||
text-underline-offset: 3px;
|
||||
transition: all 0.2s ease;
|
||||
}
|
||||
|
||||
a:hover {
|
||||
color: var(--text-primary);
|
||||
text-decoration-color: var(--e2c-dark-yellow);
|
||||
}
|
||||
|
||||
.btn {
|
||||
display: inline-block;
|
||||
padding: 12px 24px;
|
||||
background: var(--e2c-yellow);
|
||||
color: var(--text-primary);
|
||||
text-decoration: none;
|
||||
border-radius: 24px;
|
||||
margin: 8px 0;
|
||||
font-weight: 500;
|
||||
font-size: 15px;
|
||||
transition: all 0.2s ease;
|
||||
border: 2px solid var(--e2c-yellow);
|
||||
}
|
||||
|
||||
.btn:hover {
|
||||
background: var(--e2c-dark-yellow);
|
||||
border-color: var(--e2c-dark-yellow);
|
||||
color: var(--text-primary);
|
||||
transform: translateY(-1px);
|
||||
}
|
||||
|
||||
.card {
|
||||
background: var(--card-background);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 16px;
|
||||
padding: 24px;
|
||||
margin-bottom: 24px;
|
||||
box-shadow: 0 4px 12px var(--shadow);
|
||||
transition: all 0.2s ease;
|
||||
}
|
||||
|
||||
.card:hover {
|
||||
transform: translateY(-2px);
|
||||
box-shadow: 0 8px 24px var(--shadow);
|
||||
}
|
||||
|
||||
.grid {
|
||||
display: grid;
|
||||
gap: 24px;
|
||||
grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
|
||||
}
|
||||
|
||||
.hero {
|
||||
text-align: center;
|
||||
padding: 64px 0;
|
||||
background: linear-gradient(135deg, var(--background) 0%, #F8F9FA 100%);
|
||||
border-radius: 24px;
|
||||
margin-bottom: 48px;
|
||||
}
|
||||
|
||||
.hero h1 {
|
||||
font-size: 3.5rem;
|
||||
margin-bottom: 24px;
|
||||
background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-secondary) 100%);
|
||||
-webkit-background-clip: text;
|
||||
-webkit-text-fill-color: transparent;
|
||||
background-clip: text;
|
||||
}
|
||||
|
||||
.hero p {
|
||||
font-size: 1.25rem;
|
||||
max-width: 600px;
|
||||
margin: 0 auto 32px;
|
||||
}
|
||||
|
||||
.hero-section {
|
||||
background: var(--e2c-yellow);
|
||||
padding: 4rem 2rem;
|
||||
margin: 0 0 3rem 0;
|
||||
border-radius: 24px;
|
||||
}
|
||||
|
||||
.hero-content {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 3rem;
|
||||
max-width: 1200px;
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
.hero-image {
|
||||
width: 300px;
|
||||
height: auto;
|
||||
border-radius: 16px;
|
||||
}
|
||||
|
||||
.hero-text h1 {
|
||||
font-size: 3rem;
|
||||
margin: 0 0 1rem 0;
|
||||
color: var(--text-primary);
|
||||
}
|
||||
|
||||
.hero-text p {
|
||||
font-size: 1.25rem;
|
||||
margin: 0;
|
||||
color: var(--text-primary);
|
||||
}
|
||||
|
||||
.intro-section {
|
||||
margin: 3rem 0;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.intro-section h2 {
|
||||
color: var(--e2c-yellow);
|
||||
margin-bottom: 1rem;
|
||||
}
|
||||
|
||||
.intro-section ul {
|
||||
list-style: none;
|
||||
padding: 0;
|
||||
margin: 2rem 0;
|
||||
display: grid;
|
||||
gap: 12px;
|
||||
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
|
||||
max-width: 800px;
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
}
|
||||
|
||||
.intro-section ul li {
|
||||
background: var(--e2c-yellow);
|
||||
color: var(--text-primary);
|
||||
padding: 16px 20px;
|
||||
border-radius: 12px;
|
||||
font-weight: 500;
|
||||
text-align: center;
|
||||
line-height: 1.4;
|
||||
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
|
||||
transition: all 0.2s ease;
|
||||
}
|
||||
|
||||
.intro-section ul li:hover {
|
||||
transform: translateY(-2px);
|
||||
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
|
||||
}
|
||||
|
||||
.cards-grid {
|
||||
display: grid;
|
||||
gap: 24px;
|
||||
grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
|
||||
margin: 3rem 0;
|
||||
}
|
||||
|
||||
.card .button {
|
||||
display: inline-block;
|
||||
padding: 12px 24px;
|
||||
background: var(--e2c-yellow);
|
||||
color: var(--text-primary);
|
||||
text-decoration: none;
|
||||
border-radius: 24px;
|
||||
margin-top: 16px;
|
||||
font-weight: 500;
|
||||
font-size: 15px;
|
||||
transition: all 0.2s ease;
|
||||
border: 2px solid var(--e2c-yellow);
|
||||
}
|
||||
|
||||
.card .button:hover {
|
||||
background: var(--e2c-dark-yellow);
|
||||
border-color: var(--e2c-dark-yellow);
|
||||
transform: translateY(-1px);
|
||||
}
|
||||
|
||||
.partnership-section {
|
||||
text-align: center;
|
||||
margin: 4rem 0;
|
||||
padding: 2rem;
|
||||
background: #F8F9FA;
|
||||
border-radius: 16px;
|
||||
}
|
||||
|
||||
.partnership-image {
|
||||
width: 200px;
|
||||
height: auto;
|
||||
border-radius: 16px;
|
||||
margin-bottom: 1rem;
|
||||
}
|
||||
|
||||
.main-sections {
|
||||
margin: 4rem 0;
|
||||
}
|
||||
|
||||
.main-sections h2 {
|
||||
text-align: center;
|
||||
color: var(--text-primary);
|
||||
margin-bottom: 2rem;
|
||||
font-size: 2.5rem;
|
||||
}
|
||||
|
||||
.primary-cards {
|
||||
display: grid;
|
||||
gap: 32px;
|
||||
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
|
||||
margin-bottom: 2rem;
|
||||
}
|
||||
|
||||
.primary-card {
|
||||
background: var(--card-background);
|
||||
border: 2px solid var(--e2c-yellow);
|
||||
border-radius: 20px;
|
||||
padding: 32px;
|
||||
text-align: center;
|
||||
box-shadow: 0 8px 24px var(--shadow);
|
||||
transition: all 0.3s ease;
|
||||
}
|
||||
|
||||
.primary-card:hover {
|
||||
transform: translateY(-4px);
|
||||
box-shadow: 0 16px 40px var(--shadow);
|
||||
border-color: var(--e2c-dark-yellow);
|
||||
}
|
||||
|
||||
.primary-card h3 {
|
||||
font-size: 1.5rem;
|
||||
color: var(--text-primary);
|
||||
margin-bottom: 1rem;
|
||||
}
|
||||
|
||||
.primary-card p {
|
||||
color: var(--text-secondary);
|
||||
margin-bottom: 1.5rem;
|
||||
}
|
||||
|
||||
.secondary-actions {
|
||||
margin: 3rem 0;
|
||||
padding: 2rem;
|
||||
background: #F8F9FA;
|
||||
border-radius: 16px;
|
||||
}
|
||||
|
||||
.secondary-actions h3 {
|
||||
text-align: center;
|
||||
color: var(--text-primary);
|
||||
margin-bottom: 1.5rem;
|
||||
font-size: 1.5rem;
|
||||
}
|
||||
|
||||
.secondary-cards {
|
||||
display: grid;
|
||||
gap: 24px;
|
||||
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
|
||||
}
|
||||
|
||||
.secondary-card {
|
||||
background: var(--card-background);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 12px;
|
||||
padding: 24px;
|
||||
text-align: center;
|
||||
transition: all 0.2s ease;
|
||||
}
|
||||
|
||||
.secondary-card:hover {
|
||||
transform: translateY(-2px);
|
||||
box-shadow: 0 4px 12px var(--shadow);
|
||||
}
|
||||
|
||||
.secondary-card h4 {
|
||||
font-size: 1.1rem;
|
||||
color: var(--text-primary);
|
||||
margin-bottom: 0.5rem;
|
||||
}
|
||||
|
||||
.secondary-card p {
|
||||
color: var(--text-secondary);
|
||||
margin-bottom: 1rem;
|
||||
font-size: 0.9rem;
|
||||
}
|
||||
|
||||
.secondary-button {
|
||||
display: inline-block;
|
||||
padding: 8px 16px;
|
||||
background: transparent;
|
||||
color: var(--text-primary);
|
||||
text-decoration: none;
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 16px;
|
||||
font-weight: 500;
|
||||
font-size: 14px;
|
||||
transition: all 0.2s ease;
|
||||
}
|
||||
|
||||
.secondary-button:hover {
|
||||
background: var(--e2c-yellow);
|
||||
border-color: var(--e2c-yellow);
|
||||
transform: translateY(-1px);
|
||||
}
|
||||
|
||||
/* Hide auto-generated cards on homepage only */
|
||||
.home .grid {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
/* Case study logo styling */
|
||||
.case-logo {
|
||||
width: 64px;
|
||||
height: 64px;
|
||||
object-fit: contain;
|
||||
border-radius: 8px;
|
||||
margin-bottom: 16px;
|
||||
background: rgba(255, 255, 255, 0.9);
|
||||
padding: 8px;
|
||||
border: 1px solid var(--border);
|
||||
}
|
||||
|
||||
/* Case study detail page logo */
|
||||
.case-detail-logo {
|
||||
width: 120px;
|
||||
height: 120px;
|
||||
object-fit: contain;
|
||||
border-radius: 16px;
|
||||
margin-bottom: 24px;
|
||||
background: rgba(255, 255, 255, 0.9);
|
||||
padding: 16px;
|
||||
border: 1px solid var(--border);
|
||||
box-shadow: 0 4px 12px var(--shadow);
|
||||
}
|
||||
|
||||
@media (max-width: 768px) {
|
||||
.nav-links {
|
||||
gap: 6px;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
.nav-links a {
|
||||
padding: 6px 10px;
|
||||
font-size: 12px;
|
||||
border-radius: 16px;
|
||||
}
|
||||
|
||||
.logo {
|
||||
font-size: 0.9rem;
|
||||
padding: 5px 10px;
|
||||
}
|
||||
|
||||
.logo img {
|
||||
height: 24px;
|
||||
margin-right: 5px;
|
||||
}
|
||||
|
||||
.site-header {
|
||||
padding: 8px 0;
|
||||
min-height: 48px;
|
||||
}
|
||||
|
||||
.hero h1 {
|
||||
font-size: 2.5rem;
|
||||
}
|
||||
|
||||
.hero p {
|
||||
font-size: 1.1rem;
|
||||
}
|
||||
|
||||
.container {
|
||||
padding: 0 16px;
|
||||
}
|
||||
|
||||
.hero-content {
|
||||
flex-direction: column;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.hero-image {
|
||||
width: 200px;
|
||||
}
|
||||
|
||||
.hero-text h1 {
|
||||
font-size: 2rem;
|
||||
}
|
||||
|
||||
.hero-section {
|
||||
margin: 0 0.5rem 2rem 0.5rem;
|
||||
padding: 2rem 1rem;
|
||||
}
|
||||
|
||||
.primary-cards {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
|
||||
.footer-content {
|
||||
grid-template-columns: 1fr;
|
||||
gap: 32px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.footer-links {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.custom-newsletter-form .form-group {
|
||||
flex-direction: column;
|
||||
gap: 12px;
|
||||
}
|
||||
|
||||
.subscribe-btn {
|
||||
align-self: center;
|
||||
min-width: 120px;
|
||||
}
|
||||
}
|
||||
|
||||
@media (min-width: 769px) and (max-width: 1024px) {
|
||||
.primary-cards {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
}
|
||||
|
||||
/* Contact Form Styling */
|
||||
.contact-form-container {
|
||||
max-width: 500px;
|
||||
margin: 2rem auto;
|
||||
padding: 2rem;
|
||||
background: var(--card-background);
|
||||
border-radius: 16px;
|
||||
box-shadow: 0 4px 12px var(--shadow);
|
||||
border: 1px solid var(--border);
|
||||
}
|
||||
|
||||
.e2c-contact-form .form-group {
|
||||
margin-bottom: 1.5rem;
|
||||
}
|
||||
|
||||
.e2c-contact-form label {
|
||||
display: block;
|
||||
margin-bottom: 0.5rem;
|
||||
font-weight: 500;
|
||||
color: var(--text-primary);
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
.e2c-contact-form input[type="text"],
|
||||
.e2c-contact-form input[type="email"],
|
||||
.e2c-contact-form input[type="url"],
|
||||
.e2c-contact-form select,
|
||||
.e2c-contact-form textarea {
|
||||
width: 100%;
|
||||
padding: 12px 16px;
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 8px;
|
||||
font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
|
||||
font-size: 14px;
|
||||
background: var(--background);
|
||||
color: var(--text-primary);
|
||||
transition: all 0.2s ease;
|
||||
}
|
||||
|
||||
.e2c-contact-form input:focus,
|
||||
.e2c-contact-form select:focus,
|
||||
.e2c-contact-form textarea:focus {
|
||||
outline: none;
|
||||
border-color: var(--e2c-yellow);
|
||||
box-shadow: 0 0 0 2px rgba(244, 208, 63, 0.2);
|
||||
}
|
||||
|
||||
.e2c-contact-form textarea {
|
||||
resize: vertical;
|
||||
min-height: 100px;
|
||||
}
|
||||
|
||||
.checkbox-group {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 0.5rem;
|
||||
}
|
||||
|
||||
.checkbox-label {
|
||||
display: flex !important;
|
||||
align-items: center;
|
||||
gap: 0.5rem;
|
||||
font-weight: 400 !important;
|
||||
margin-bottom: 0 !important;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.e2c-contact-form input[type="checkbox"],
|
||||
.e2c-contact-form input[type="radio"] {
|
||||
width: auto;
|
||||
margin: 0;
|
||||
accent-color: var(--e2c-yellow);
|
||||
}
|
||||
|
||||
.submit-btn {
|
||||
width: 100%;
|
||||
padding: 14px 24px;
|
||||
background: var(--e2c-yellow);
|
||||
color: var(--text-primary);
|
||||
border: 2px solid var(--e2c-yellow);
|
||||
border-radius: 24px;
|
||||
font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
|
||||
font-weight: 600;
|
||||
font-size: 16px;
|
||||
cursor: pointer;
|
||||
transition: all 0.2s ease;
|
||||
}
|
||||
|
||||
.submit-btn:hover {
|
||||
background: var(--e2c-dark-yellow);
|
||||
border-color: var(--e2c-dark-yellow);
|
||||
transform: translateY(-1px);
|
||||
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
|
||||
}
|
||||
|
||||
@media (max-width: 768px) {
|
||||
.contact-form-container {
|
||||
margin: 1rem;
|
||||
padding: 1.5rem;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<header class="site-header">
|
||||
<div class="container">
|
||||
<nav>
|
||||
<a href="/" class="logo">
|
||||
<img src="/img/yellow_e2c.png" alt="Exit to Community" />
|
||||
</a>
|
||||
<ul class="nav-links">
|
||||
<li><a href="/case-studies/">Case Studies</a></li>
|
||||
<li><a href="/legal-snippets/">Legal Snippets</a></li>
|
||||
<li><a href="/resources/">Resources</a></li>
|
||||
<li><a href="/contact/">Contact</a></li>
|
||||
</ul>
|
||||
</nav>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<main>
|
||||
<div class="container">
|
||||
{{ block "main" . }}{{ end }}
|
||||
</div>
|
||||
</main>
|
||||
|
||||
<footer>
|
||||
<div class="container">
|
||||
<div class="footer-content">
|
||||
<div class="footer-section">
|
||||
<h3>Get occasional updates</h3>
|
||||
<div class="newsletter-signup">
|
||||
<!-- Action Network Email Subscription Form -->
|
||||
<div id="e2c-newsletter-form">
|
||||
<form class="custom-newsletter-form" action="#" method="post">
|
||||
<div class="form-group">
|
||||
<input type="email" name="email" placeholder="Enter your email" required class="email-input">
|
||||
<button type="submit" class="subscribe-btn">Subscribe</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<!-- Replace the above form with actual Action Network embed code -->
|
||||
<!--
|
||||
<link href='https://actionnetwork.org/css/style-embed-v3.css' rel='stylesheet' type='text/css' />
|
||||
<script src='https://actionnetwork.org/widgets/v3/form/YOUR_FORM_ID?format=js&source=widget&clear_id=true'></script>
|
||||
<div id='can-form-area-YOUR_FORM_ID' style='width: 100%'></div>
|
||||
-->
|
||||
</div>
|
||||
</div>
|
||||
<div class="footer-section">
|
||||
<div class="footer-links">
|
||||
<p>© {{ now.Year }} <a href="/contact">E2C Collective</a><br />
|
||||
In collaboration with <a href="https://www.colorado.edu/lab/medlab/exit-to-community">MEDLab at CU Boulder</a><br />
|
||||
This work is licensed under a Creative Commons Attribution 4.0 License</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
</body>
|
||||
</html>
|
233
layouts/_default/list.html
Normal file
233
layouts/_default/list.html
Normal file
@@ -0,0 +1,233 @@
|
||||
{{ define "main" }}
|
||||
<h1>{{ .Title }}</h1>
|
||||
{{ if .Description }}
|
||||
<p class="lead">{{ .Description }}</p>
|
||||
{{ end }}
|
||||
|
||||
{{ .Content }}
|
||||
|
||||
{{ if .Pages }}
|
||||
<div class="filter-controls">
|
||||
<div class="filter-row">
|
||||
<input type="text" id="searchInput" placeholder="Search titles and descriptions..." class="search-input">
|
||||
<select id="tagFilter" class="tag-filter">
|
||||
<option value="">All tags</option>
|
||||
</select>
|
||||
<select id="sortBy" class="sort-select">
|
||||
<option value="title">Sort by Title</option>
|
||||
<option value="date">Sort by Date</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="grid" id="cardGrid">
|
||||
{{ range .Pages }}
|
||||
<div class="card"
|
||||
data-title="{{ .Title }}"
|
||||
data-description="{{ if .Description }}{{ .Description }}{{ else if .Summary }}{{ .Summary | plainify | replaceRE "^### \\*\\*Summary\\*\\*\\s*" "" | truncate 200 }}{{ else }}{{ .Content | plainify | replaceRE "^### \\*\\*Summary\\*\\*\\s*" "" | truncate 200 }}{{ end }}"
|
||||
data-tags="{{ if .Params.tags }}{{ delimit .Params.tags "," }}{{ end }}"
|
||||
data-date="{{ .Date.Format "2006-01-02" }}">
|
||||
{{ if .Params.image }}
|
||||
<img src="{{ .Params.image }}" alt="{{ .Title }} logo" class="case-logo" />
|
||||
{{ end }}
|
||||
<h3><a href="{{ .RelPermalink }}">{{ .Title }}</a></h3>
|
||||
{{ if .Description }}
|
||||
<p>{{ .Description }}</p>
|
||||
{{ else if .Summary }}
|
||||
<p>{{ .Summary | plainify | replaceRE "^### \\*\\*Summary\\*\\*\\s*" "" | truncate 200 }}</p>
|
||||
{{ else }}
|
||||
<p>{{ .Content | plainify | replaceRE "^### \\*\\*Summary\\*\\*\\s*" "" | truncate 200 }}</p>
|
||||
{{ end }}
|
||||
{{ if .Params.tags }}
|
||||
<div class="tags">
|
||||
{{ range .Params.tags }}
|
||||
<span class="tag">{{ . }}</span>
|
||||
{{ end }}
|
||||
</div>
|
||||
{{ end }}
|
||||
<a href="{{ .RelPermalink }}" class="btn">Read More</a>
|
||||
</div>
|
||||
{{ end }}
|
||||
</div>
|
||||
{{ end }}
|
||||
|
||||
<style>
|
||||
.lead {
|
||||
font-size: 1.125rem;
|
||||
color: #666;
|
||||
margin-bottom: 2rem;
|
||||
}
|
||||
|
||||
.filter-controls {
|
||||
margin-bottom: 48px;
|
||||
padding: 24px;
|
||||
background: var(--card-background);
|
||||
border-radius: 16px;
|
||||
border: 1px solid var(--border);
|
||||
box-shadow: 0 4px 12px var(--shadow);
|
||||
}
|
||||
|
||||
.filter-row {
|
||||
display: flex;
|
||||
gap: 16px;
|
||||
flex-wrap: wrap;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.search-input, .tag-filter, .sort-select {
|
||||
font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
|
||||
font-weight: 500;
|
||||
font-size: 14px;
|
||||
padding: 10px 16px;
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 24px;
|
||||
background: rgba(255, 255, 255, 0.9);
|
||||
backdrop-filter: blur(8px);
|
||||
transition: all 0.2s ease;
|
||||
color: var(--text-primary);
|
||||
}
|
||||
|
||||
.search-input {
|
||||
flex: 1;
|
||||
min-width: 280px;
|
||||
}
|
||||
|
||||
.search-input:focus, .tag-filter:focus, .sort-select:focus {
|
||||
outline: none;
|
||||
border-color: var(--e2c-yellow);
|
||||
background: var(--e2c-yellow);
|
||||
transform: translateY(-1px);
|
||||
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
|
||||
}
|
||||
|
||||
.search-input::placeholder {
|
||||
color: var(--text-secondary);
|
||||
font-weight: 400;
|
||||
}
|
||||
|
||||
.tag-filter, .sort-select {
|
||||
min-width: 160px;
|
||||
}
|
||||
|
||||
.tags {
|
||||
margin-top: 0.5rem;
|
||||
}
|
||||
|
||||
.tag {
|
||||
display: inline-block;
|
||||
background: #e9ecef;
|
||||
color: #495057;
|
||||
padding: 0.25rem 0.5rem;
|
||||
margin: 0.25rem 0.25rem 0 0;
|
||||
border-radius: 0.25rem;
|
||||
font-size: 0.875rem;
|
||||
}
|
||||
|
||||
.card {
|
||||
transition: opacity 0.3s ease, transform 0.3s ease;
|
||||
}
|
||||
|
||||
.card.hidden {
|
||||
display: none;
|
||||
}
|
||||
|
||||
@media (max-width: 768px) {
|
||||
.filter-controls {
|
||||
margin-bottom: 32px;
|
||||
padding: 16px;
|
||||
}
|
||||
|
||||
.filter-row {
|
||||
flex-direction: column;
|
||||
align-items: stretch;
|
||||
gap: 12px;
|
||||
}
|
||||
|
||||
.search-input, .tag-filter, .sort-select {
|
||||
width: 100%;
|
||||
min-width: unset;
|
||||
padding: 8px 14px;
|
||||
font-size: 12px;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
||||
<script>
|
||||
document.addEventListener('DOMContentLoaded', function() {
|
||||
const searchInput = document.getElementById('searchInput');
|
||||
const tagFilter = document.getElementById('tagFilter');
|
||||
const sortBy = document.getElementById('sortBy');
|
||||
const cardGrid = document.getElementById('cardGrid');
|
||||
const cards = Array.from(cardGrid.querySelectorAll('.card'));
|
||||
|
||||
// Collect all unique tags
|
||||
const allTags = new Set();
|
||||
cards.forEach(card => {
|
||||
const tags = card.dataset.tags;
|
||||
if (tags) {
|
||||
tags.split(',').forEach(tag => allTags.add(tag.trim()));
|
||||
}
|
||||
});
|
||||
|
||||
// Populate tag filter dropdown
|
||||
Array.from(allTags).sort().forEach(tag => {
|
||||
const option = document.createElement('option');
|
||||
option.value = tag;
|
||||
option.textContent = tag;
|
||||
tagFilter.appendChild(option);
|
||||
});
|
||||
|
||||
function filterAndSort() {
|
||||
const searchTerm = searchInput.value.toLowerCase();
|
||||
const selectedTag = tagFilter.value;
|
||||
const sortCriteria = sortBy.value;
|
||||
|
||||
// Filter cards
|
||||
const filteredCards = cards.filter(card => {
|
||||
const title = card.dataset.title.toLowerCase();
|
||||
const description = card.dataset.description.toLowerCase();
|
||||
const tags = card.dataset.tags;
|
||||
|
||||
// Text search
|
||||
const matchesSearch = !searchTerm ||
|
||||
title.includes(searchTerm) ||
|
||||
description.includes(searchTerm);
|
||||
|
||||
// Tag filter
|
||||
const matchesTag = !selectedTag ||
|
||||
(tags && tags.split(',').map(t => t.trim()).includes(selectedTag));
|
||||
|
||||
return matchesSearch && matchesTag;
|
||||
});
|
||||
|
||||
// Sort filtered cards
|
||||
filteredCards.sort((a, b) => {
|
||||
if (sortCriteria === 'title') {
|
||||
return a.dataset.title.localeCompare(b.dataset.title);
|
||||
} else if (sortCriteria === 'date') {
|
||||
const dateA = new Date(a.dataset.date || '1970-01-01');
|
||||
const dateB = new Date(b.dataset.date || '1970-01-01');
|
||||
return dateB - dateA; // Most recent first
|
||||
}
|
||||
return 0;
|
||||
});
|
||||
|
||||
// Hide all cards first
|
||||
cards.forEach(card => card.classList.add('hidden'));
|
||||
|
||||
// Show and reorder filtered cards
|
||||
filteredCards.forEach((card, index) => {
|
||||
card.classList.remove('hidden');
|
||||
card.style.order = index;
|
||||
});
|
||||
}
|
||||
|
||||
// Event listeners
|
||||
searchInput.addEventListener('input', filterAndSort);
|
||||
tagFilter.addEventListener('change', filterAndSort);
|
||||
sortBy.addEventListener('change', filterAndSort);
|
||||
|
||||
// Initial sort by title
|
||||
filterAndSort();
|
||||
});
|
||||
</script>
|
||||
{{ end }}
|
93
layouts/_default/single.html
Normal file
93
layouts/_default/single.html
Normal file
@@ -0,0 +1,93 @@
|
||||
{{ define "main" }}
|
||||
<article>
|
||||
<header class="article-header">
|
||||
{{ if .Params.image }}
|
||||
<img src="{{ .Params.image }}" alt="{{ .Title }} logo" class="case-detail-logo" />
|
||||
{{ end }}
|
||||
<h1>{{ .Title }}</h1>
|
||||
{{ if .Description }}
|
||||
<p class="lead">{{ .Description }}</p>
|
||||
{{ end }}
|
||||
{{ if .Params.url }}
|
||||
<p><strong>URL:</strong> <a href="{{ .Params.url }}" target="_blank">{{ .Params.url }}</a></p>
|
||||
{{ end }}
|
||||
{{ if .Date }}
|
||||
<p><small>Last updated: {{ .Date.Format "January 2, 2006" }}</small></p>
|
||||
{{ end }}
|
||||
{{ if .Params.tags }}
|
||||
<div class="tags">
|
||||
{{ range .Params.tags }}
|
||||
<span class="tag">{{ . }}</span>
|
||||
{{ end }}
|
||||
</div>
|
||||
{{ end }}
|
||||
</header>
|
||||
|
||||
<div class="article-content">
|
||||
{{ .Content }}
|
||||
</div>
|
||||
|
||||
{{ if .Params.external_url }}
|
||||
<p><a href="{{ .Params.external_url }}" target="_blank" class="btn">Visit External Site</a></p>
|
||||
{{ end }}
|
||||
</article>
|
||||
|
||||
|
||||
<style>
|
||||
.lead {
|
||||
font-size: 1.125rem;
|
||||
color: #666;
|
||||
margin-bottom: 1rem;
|
||||
}
|
||||
|
||||
.article-header {
|
||||
margin-bottom: 2rem;
|
||||
padding-bottom: 1rem;
|
||||
border-bottom: 1px solid #e9ecef;
|
||||
}
|
||||
|
||||
.article-content {
|
||||
margin-bottom: 2rem;
|
||||
}
|
||||
|
||||
.article-content h2,
|
||||
.article-content h3,
|
||||
.article-content h4 {
|
||||
margin-top: 2rem;
|
||||
margin-bottom: 1rem;
|
||||
}
|
||||
|
||||
.article-nav {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
margin-top: 2rem;
|
||||
padding-top: 1rem;
|
||||
border-top: 1px solid #e9ecef;
|
||||
}
|
||||
|
||||
.article-nav a {
|
||||
text-decoration: none;
|
||||
color: #007bff;
|
||||
padding: 0.5rem 0;
|
||||
}
|
||||
|
||||
.article-nav a:hover {
|
||||
color: #0056b3;
|
||||
}
|
||||
|
||||
|
||||
.tags {
|
||||
margin: 0.5rem 0;
|
||||
}
|
||||
|
||||
.tag {
|
||||
display: inline-block;
|
||||
background: #e9ecef;
|
||||
color: #495057;
|
||||
padding: 0.25rem 0.5rem;
|
||||
margin: 0.25rem 0.25rem 0 0;
|
||||
border-radius: 0.25rem;
|
||||
font-size: 0.875rem;
|
||||
}
|
||||
</style>
|
||||
{{ end }}
|
3
layouts/index.html
Normal file
3
layouts/index.html
Normal file
@@ -0,0 +1,3 @@
|
||||
{{ define "main" }}
|
||||
{{ .Content }}
|
||||
{{ end }}
|
89
layouts/shortcodes/contact-form.html
Normal file
89
layouts/shortcodes/contact-form.html
Normal file
@@ -0,0 +1,89 @@
|
||||
<div class="contact-form-container">
|
||||
<form class="e2c-contact-form" action="#" method="post">
|
||||
<div class="form-group">
|
||||
<label for="country">Country *</label>
|
||||
<select id="country" name="country" required>
|
||||
<option value="">Select your country</option>
|
||||
<option value="US">United States</option>
|
||||
<option value="CA">Canada</option>
|
||||
<option value="GB">United Kingdom</option>
|
||||
<option value="AU">Australia</option>
|
||||
<option value="DE">Germany</option>
|
||||
<option value="FR">France</option>
|
||||
<option value="IT">Italy</option>
|
||||
<option value="ES">Spain</option>
|
||||
<option value="NL">Netherlands</option>
|
||||
<option value="SE">Sweden</option>
|
||||
<option value="NO">Norway</option>
|
||||
<option value="DK">Denmark</option>
|
||||
<option value="JP">Japan</option>
|
||||
<option value="KR">South Korea</option>
|
||||
<option value="CN">China</option>
|
||||
<option value="IN">India</option>
|
||||
<option value="BR">Brazil</option>
|
||||
<option value="MX">Mexico</option>
|
||||
<option value="AR">Argentina</option>
|
||||
<option value="CL">Chile</option>
|
||||
<option value="ZA">South Africa</option>
|
||||
<option value="NZ">New Zealand</option>
|
||||
<option value="other">Other</option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="email">Email *</label>
|
||||
<input type="email" id="email" name="email" required>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="name">Name</label>
|
||||
<input type="text" id="name" name="name">
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="organization">Organization</label>
|
||||
<input type="text" id="organization" name="organization">
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="organization_url">Organization URL</label>
|
||||
<input type="url" id="organization_url" name="organization_url" placeholder="https://">
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label>Interests in E2C</label>
|
||||
<div class="checkbox-group">
|
||||
<label class="checkbox-label">
|
||||
<input type="checkbox" name="interests" value="get_support">
|
||||
Get support with my E2C
|
||||
</label>
|
||||
<label class="checkbox-label">
|
||||
<input type="checkbox" name="interests" value="share_experience">
|
||||
Share my E2C experience
|
||||
</label>
|
||||
<label class="checkbox-label">
|
||||
<input type="checkbox" name="interests" value="offer_support">
|
||||
Offer support to others
|
||||
</label>
|
||||
<label class="checkbox-label">
|
||||
<input type="checkbox" name="interests" value="other">
|
||||
Other
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="additional_info">Anything else you'd like to add?</label>
|
||||
<textarea id="additional_info" name="additional_info" rows="4"></textarea>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label class="checkbox-label">
|
||||
<input type="checkbox" name="email_updates" value="yes">
|
||||
Opt in to email updates from E2C Collective
|
||||
</label>
|
||||
</div>
|
||||
|
||||
<button type="submit" class="submit-btn">Submit</button>
|
||||
</form>
|
||||
</div>
|
Reference in New Issue
Block a user