Aesthetic adjustments throughout
This commit is contained in:
@@ -11,7 +11,7 @@ Help us share it with people who can benefit from its lessons.
|
||||
<!-- Action Network Form Embed -->
|
||||
<link href='https://actionnetwork.org/css/style-embed-v3.css' rel='stylesheet' type='text/css' />
|
||||
<script src='https://actionnetwork.org/widgets/v3/form/e2c-website-story-form?format=js&source=widget&clear_id=true'></script>
|
||||
<div id='can-form-area-e2c-website-story-form' style='width: 100%; margin-bottom: 24px;'></div>
|
||||
<div id='can-form-area-e2c-website-story-form' style='width: 100%'></div>
|
||||
|
||||
<!-- Fallback form for cases where JS is disabled -->
|
||||
<noscript>
|
||||
|
@@ -17,7 +17,7 @@ Want to plan your community exit strategy? Got experience or legal snippets you'
|
||||
<!-- Action Network Form Embed -->
|
||||
<link href='https://actionnetwork.org/css/style-embed-v3.css' rel='stylesheet' type='text/css' />
|
||||
<script src='https://actionnetwork.org/widgets/v3/form/e2c-website-join-form?format=js&source=widget&clear_id=true'></script>
|
||||
<div id='can-form-area-e2c-website-join-form' style='width: 100%; margin-bottom: 24px;'></div>
|
||||
<div id='can-form-area-e2c-website-join-form' style='width: 100%'></div>
|
||||
|
||||
<!-- Fallback form for cases where JS is disabled -->
|
||||
<noscript>
|
||||
|
@@ -185,18 +185,6 @@
|
||||
display: block;
|
||||
}
|
||||
|
||||
.case-logo-overlay {
|
||||
position: absolute;
|
||||
bottom: 16px;
|
||||
right: 16px;
|
||||
width: 72px;
|
||||
height: 72px;
|
||||
object-fit: contain;
|
||||
background: rgba(255, 255, 255, 0.9);
|
||||
border-radius: 12px;
|
||||
padding: 8px;
|
||||
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
|
||||
}
|
||||
|
||||
.card-banner-link, .card-logo-link {
|
||||
display: block;
|
||||
|
@@ -21,120 +21,27 @@
|
||||
{{ if .Date }}
|
||||
<p><small>Last updated: {{ .Date.Format "January 2, 2006" }}</small></p>
|
||||
{{ end }}
|
||||
{{ if .Params.tags }}
|
||||
<div class="tags">
|
||||
{{ range .Params.tags }}
|
||||
<a href="/{{ $.Section }}/?tag={{ . | urlize }}" class="tag">{{ . }}</a>
|
||||
<div class="tags-and-button">
|
||||
{{ if .Params.tags }}
|
||||
<div class="tags">
|
||||
{{ range .Params.tags }}
|
||||
<a href="/{{ $.Section }}/?tag={{ . | urlize }}" class="tag">{{ . }}</a>
|
||||
{{ end }}
|
||||
</div>
|
||||
{{ end }}
|
||||
{{ if .Params.external_url }}
|
||||
<div class="article-external-button"><a href="{{ .Params.external_url }}" target="_blank" class="btn">Project Website</a></div>
|
||||
{{ else if .Params.url_external }}
|
||||
<div class="article-external-button"><a href="{{ .Params.url_external }}" target="_blank" class="btn">Project Website</a></div>
|
||||
{{ 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 }}
|
||||
{{ if .Params.url_external }}
|
||||
<p><a href="{{ .Params.url_external }}" target="_blank" class="btn">Visit External Site</a></p>
|
||||
{{ end }}
|
||||
</article>
|
||||
|
||||
{{ partial "explore-e2c.html" . }}
|
||||
|
||||
<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;
|
||||
text-decoration: none;
|
||||
transition: all 0.2s ease;
|
||||
}
|
||||
|
||||
.tag:hover {
|
||||
background: var(--e2c-yellow);
|
||||
color: var(--text-primary);
|
||||
transform: translateY(-1px);
|
||||
}
|
||||
|
||||
.article-banner {
|
||||
position: relative;
|
||||
margin-bottom: 2rem;
|
||||
border-radius: 16px;
|
||||
overflow: hidden;
|
||||
aspect-ratio: 16/9;
|
||||
max-height: 300px;
|
||||
}
|
||||
|
||||
.case-detail-banner {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
object-fit: cover;
|
||||
display: block;
|
||||
}
|
||||
|
||||
.case-detail-logo-overlay {
|
||||
position: absolute;
|
||||
bottom: 20px;
|
||||
right: 20px;
|
||||
width: 96px;
|
||||
height: 96px;
|
||||
object-fit: contain;
|
||||
background: rgba(255, 255, 255, 0.95);
|
||||
border-radius: 16px;
|
||||
padding: 12px;
|
||||
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
|
||||
}
|
||||
</style>
|
||||
{{ end }}
|
||||
|
@@ -72,18 +72,6 @@
|
||||
background: #f8f9fa;
|
||||
}
|
||||
|
||||
.featured-case-logo-overlay {
|
||||
position: absolute;
|
||||
bottom: 16px;
|
||||
right: 16px;
|
||||
width: 56px;
|
||||
height: 56px;
|
||||
object-fit: contain;
|
||||
background: rgba(255, 255, 255, 0.9);
|
||||
border-radius: 10px;
|
||||
padding: 6px;
|
||||
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
|
||||
}
|
||||
|
||||
.featured-case-content {
|
||||
padding: 0 1.5rem 1.5rem 1.5rem;
|
||||
|
20
layouts/partials/explore-e2c.html
Normal file
20
layouts/partials/explore-e2c.html
Normal file
@@ -0,0 +1,20 @@
|
||||
<div class="main-sections">
|
||||
<h2>Explore E2C</h2>
|
||||
<div class="primary-cards">
|
||||
<div class="primary-card">
|
||||
<h3>Case Studies</h3>
|
||||
<p>Real examples of companies that have attempted or achieved community ownership transitions</p>
|
||||
<a href="/case-studies/" class="btn">Explore Cases</a>
|
||||
</div>
|
||||
<div class="primary-card">
|
||||
<h3>Legal Snippets</h3>
|
||||
<p>Legal documents and frameworks for implementing community ownership structures</p>
|
||||
<a href="/legal-snippets/" class="btn">View Legal Resources</a>
|
||||
</div>
|
||||
<div class="primary-card">
|
||||
<h3>Resources</h3>
|
||||
<p>Educational materials, primers, and guides for Exit to Community transitions</p>
|
||||
<a href="/resources/" class="btn">Access Resources</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
@@ -32,7 +32,7 @@ document.addEventListener('DOMContentLoaded', function() {
|
||||
<a href="${caseStudy.url}" class="featured-banner-link">
|
||||
<div class="featured-card-banner">
|
||||
<img src="${caseStudy.banner}" alt="${caseStudy.title} banner" class="featured-case-banner" />
|
||||
${hasImage ? `<img src="${caseStudy.image}" alt="${caseStudy.title} logo" class="featured-case-logo-overlay" />` : ''}
|
||||
${hasImage ? `<img src="${caseStudy.image}" alt="${caseStudy.title} logo" class="case-logo-overlay" />` : ''}
|
||||
</div>
|
||||
</a>
|
||||
`;
|
||||
|
@@ -23,6 +23,7 @@ body {
|
||||
color: var(--text-primary);
|
||||
background: var(--background);
|
||||
font-weight: 400;
|
||||
font-size: 20px;
|
||||
}
|
||||
|
||||
.container {
|
||||
@@ -397,6 +398,7 @@ a:hover {
|
||||
.intro-section {
|
||||
margin: 3rem 0;
|
||||
text-align: center;
|
||||
font-size: 1.2rem;
|
||||
}
|
||||
|
||||
.intro-section h2 {
|
||||
@@ -423,20 +425,14 @@ a:hover {
|
||||
}
|
||||
|
||||
.intro-section ul li {
|
||||
background: var(--e2c-yellow);
|
||||
color: var(--text-primary);
|
||||
padding: 16px 20px;
|
||||
border-radius: 12px;
|
||||
font-weight: 500;
|
||||
background: var(--text-primary);
|
||||
color: white;
|
||||
padding: 24px 28px;
|
||||
border-radius: 4px;
|
||||
font-weight: 600;
|
||||
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);
|
||||
font-size: 1.1rem;
|
||||
}
|
||||
|
||||
.cards-grid {
|
||||
@@ -603,9 +599,10 @@ a:hover {
|
||||
object-fit: contain;
|
||||
border-radius: 8px;
|
||||
margin-bottom: 16px;
|
||||
background: rgba(255, 255, 255, 0.9);
|
||||
background: white;
|
||||
padding: 8px;
|
||||
border: 1px solid var(--border);
|
||||
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
|
||||
}
|
||||
|
||||
/* Case study detail page logo */
|
||||
@@ -615,10 +612,153 @@ a:hover {
|
||||
object-fit: contain;
|
||||
border-radius: 16px;
|
||||
margin-bottom: 24px;
|
||||
background: rgba(255, 255, 255, 0.9);
|
||||
background: white;
|
||||
padding: 16px;
|
||||
border: 1px solid var(--border);
|
||||
box-shadow: 0 4px 12px var(--shadow);
|
||||
box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
|
||||
}
|
||||
|
||||
/* Case study logo overlay (used on both homepage and listing pages) */
|
||||
.case-logo-overlay, .featured-case-logo-overlay {
|
||||
position: absolute;
|
||||
bottom: 16px;
|
||||
right: 16px;
|
||||
width: 72px;
|
||||
height: 72px;
|
||||
object-fit: contain;
|
||||
background: white;
|
||||
border-radius: 12px;
|
||||
padding: 8px;
|
||||
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
|
||||
}
|
||||
|
||||
/* Content page styling for better readability */
|
||||
.article-header {
|
||||
margin-bottom: 2rem;
|
||||
padding-bottom: 1rem;
|
||||
border-bottom: 1px solid var(--border);
|
||||
}
|
||||
|
||||
.article-content {
|
||||
margin-bottom: 2rem;
|
||||
}
|
||||
|
||||
/* Improved readability for content pages */
|
||||
@media (min-width: 769px) {
|
||||
.article-content {
|
||||
max-width: 700px;
|
||||
margin: 0 auto 2rem auto;
|
||||
color: var(--text-primary);
|
||||
line-height: 1.8;
|
||||
}
|
||||
|
||||
.article-content p {
|
||||
color: var(--text-primary);
|
||||
margin-bottom: 1.5rem;
|
||||
}
|
||||
}
|
||||
|
||||
/* Bullet point positioning */
|
||||
.article-content ul {
|
||||
list-style-position: outside;
|
||||
margin-left: 0;
|
||||
padding-left: 1.5rem;
|
||||
}
|
||||
|
||||
.article-content ol {
|
||||
list-style-position: outside;
|
||||
margin-left: 0;
|
||||
padding-left: 1.5rem;
|
||||
}
|
||||
|
||||
.article-content h2,
|
||||
.article-content h3,
|
||||
.article-content h4 {
|
||||
margin-top: 2rem;
|
||||
margin-bottom: 1rem;
|
||||
color: var(--text-primary);
|
||||
}
|
||||
|
||||
.article-banner {
|
||||
position: relative;
|
||||
margin-bottom: 2rem;
|
||||
border-radius: 16px;
|
||||
overflow: hidden;
|
||||
aspect-ratio: 16/9;
|
||||
max-height: 300px;
|
||||
}
|
||||
|
||||
.case-detail-banner {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
object-fit: cover;
|
||||
display: block;
|
||||
}
|
||||
|
||||
.case-detail-logo-overlay {
|
||||
position: absolute;
|
||||
bottom: 20px;
|
||||
right: 20px;
|
||||
width: 96px;
|
||||
height: 96px;
|
||||
object-fit: contain;
|
||||
background: white;
|
||||
border-radius: 16px;
|
||||
padding: 12px;
|
||||
box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
|
||||
}
|
||||
|
||||
.lead {
|
||||
font-size: 1.25rem;
|
||||
color: var(--text-secondary);
|
||||
margin-bottom: 1.5rem;
|
||||
line-height: 1.6;
|
||||
}
|
||||
|
||||
/* Tags and button layout for content pages */
|
||||
.tags-and-button {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: flex-start;
|
||||
margin: 0.5rem 0;
|
||||
gap: 1rem;
|
||||
}
|
||||
|
||||
.tags {
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
.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;
|
||||
text-decoration: none;
|
||||
transition: all 0.2s ease;
|
||||
}
|
||||
|
||||
.tag:hover {
|
||||
background: var(--e2c-yellow);
|
||||
color: var(--text-primary);
|
||||
transform: translateY(-1px);
|
||||
}
|
||||
|
||||
.article-external-button {
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
@media (max-width: 768px) {
|
||||
.tags-and-button {
|
||||
flex-direction: column;
|
||||
gap: 0.5rem;
|
||||
}
|
||||
|
||||
.article-external-button {
|
||||
align-self: flex-start;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 768px) {
|
||||
@@ -755,14 +895,17 @@ a:hover {
|
||||
|
||||
.e2c-contact-form .form-group {
|
||||
margin-bottom: 1.5rem;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.e2c-contact-form label {
|
||||
display: block;
|
||||
margin-bottom: 0.5rem;
|
||||
font-weight: 500;
|
||||
margin-bottom: 0.75rem;
|
||||
font-weight: 600;
|
||||
color: var(--text-primary);
|
||||
font-size: 14px;
|
||||
font-size: 16px;
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
.e2c-contact-form input[type="text"],
|
||||
@@ -775,10 +918,12 @@ a:hover {
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 8px;
|
||||
font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
|
||||
font-size: 14px;
|
||||
font-size: 16px;
|
||||
background: var(--background);
|
||||
color: var(--text-primary);
|
||||
transition: all 0.2s ease;
|
||||
position: relative;
|
||||
z-index: 0;
|
||||
}
|
||||
|
||||
.e2c-contact-form input:focus,
|
||||
@@ -859,10 +1004,43 @@ h2 {
|
||||
opacity: 1 !important;
|
||||
}
|
||||
|
||||
/* Hide Action Network form titles */
|
||||
#can-form-area-e2c-website-newsletter-form h2,
|
||||
#can-form-area-e2c-website-join-form h2,
|
||||
#can-form-area-e2c-website-story-form h2,
|
||||
/* Minimal Action Network improvements - accept what we can achieve */
|
||||
[id*="can-form-area"] h2 {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
/* Larger labels and fix Email label positioning with maximum specificity */
|
||||
div[id*="can-form-area"] label,
|
||||
div#can-form-area-e2c-website-join-form label,
|
||||
div#can-form-area-e2c-website-story-form label {
|
||||
font-size: 18px !important;
|
||||
font-weight: 500 !important;
|
||||
display: block !important;
|
||||
margin-bottom: 8px !important;
|
||||
margin-top: 12px !important;
|
||||
position: relative !important;
|
||||
z-index: 999999 !important;
|
||||
background: white !important;
|
||||
padding: 4px 0 !important;
|
||||
color: #2C3E50 !important;
|
||||
line-height: 1.3 !important;
|
||||
}
|
||||
|
||||
/* Force proper spacing for form inputs */
|
||||
div[id*="can-form-area"] input,
|
||||
div[id*="can-form-area"] select,
|
||||
div[id*="can-form-area"] textarea {
|
||||
margin-top: 0 !important;
|
||||
margin-bottom: 16px !important;
|
||||
position: relative !important;
|
||||
z-index: 1 !important;
|
||||
}
|
||||
|
||||
/* Fix checkbox positioning */
|
||||
div[id*="can-form-area"] input[type="checkbox"],
|
||||
div[id*="can-form-area"] input[type="radio"] {
|
||||
width: auto !important;
|
||||
display: inline-block !important;
|
||||
margin-right: 6px !important;
|
||||
vertical-align: top !important;
|
||||
}
|
Reference in New Issue
Block a user