Skip to content

Commit b5f3f9f

Browse files
committed
email
1 parent 9790bd2 commit b5f3f9f

2 files changed

Lines changed: 73 additions & 8 deletions

File tree

assets/gallery.css

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,3 +98,59 @@ a:focus {
9898
grid-template-columns: repeat(2, 1fr);
9999
}
100100
}
101+
102+
.email-status {
103+
display: flex;
104+
flex-wrap: wrap;
105+
gap: 2rem;
106+
align-items: flex-start;
107+
font-family: system-ui, sans-serif;
108+
}
109+
110+
.status-group {
111+
min-width: 200px;
112+
}
113+
114+
.status-badge {
115+
display: inline-block;
116+
font-weight: 600;
117+
margin-bottom: 0.5rem;
118+
padding: 0.2rem 0.8rem;
119+
border-radius: 20px;
120+
font-size: 0.85rem;
121+
text-transform: uppercase;
122+
letter-spacing: 0.5px;
123+
}
124+
125+
.status-badge.active {
126+
background: #e6f7e6;
127+
color: #0a6e0a;
128+
}
129+
130+
.status-badge.inactive {
131+
background: #f1f1f1;
132+
color: #6b6b6b;
133+
}
134+
135+
.email-list {
136+
margin: 0;
137+
padding-left: 0;
138+
list-style: none;
139+
}
140+
141+
.email-list li {
142+
padding: 0.25rem 0;
143+
border-bottom: 1px dashed #ddd;
144+
}
145+
146+
.email-list li:last-child {
147+
border-bottom: none;
148+
}
149+
150+
.footnote {
151+
width: 100%;
152+
margin-top: 1rem;
153+
font-size: 0.9rem;
154+
color: #555;
155+
font-style: italic;
156+
}

assets/script.js

Lines changed: 17 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -75,16 +75,25 @@ document.addEventListener('DOMContentLoaded', function() {
7575

7676
// --- Helper: Create email blockquote ---
7777
function createEmailBlockquote({ active, inactive }) {
78-
const blockquote = document.createElement('p');
78+
const blockquote = document.createElement('div');
7979
blockquote.id = 'email-blockquote';
80-
blockquote.classList.add('hidden-view'); // use CSS class instead of inline style
80+
blockquote.classList.add('hidden-view');
8181

82-
blockquote.innerHTML = `
83-
<blockquote><p>Feel free to reach out via the active addresses.</p></blockquote>
84-
<p><span class="paper-item"><strong>Active emails:</strong> ${active.join(', ')}</p>
85-
<p><span class="paper-item"><strong>Inactive emails:</strong> ${inactive.join(', ')}</p>
86-
<p><span class="paper-item"><small>Feel free to reach out via the active addresses.</small></p>
87-
`;
82+
blockquote.innerHTML = `<div class="email-status">
83+
<div class="status-group">
84+
<span class="status-badge active">Active</span>
85+
<ul class="email-list">
86+
${active.map(email => `<li>${email}</li>`).join('')}
87+
</ul>
88+
</div>
89+
<div class="status-group">
90+
<span class="status-badge inactive">Inactive</span>
91+
<ul class="email-list">
92+
${inactive.map(email => `<li>${email}</li>`).join('')}
93+
</ul>
94+
</div>
95+
<p class="footnote">Feel free to reach out via the active addresses.</p>
96+
</div>`;
8897
return blockquote;
8998
}
9099

0 commit comments

Comments
 (0)