Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to write comments in this section #17

Open
Siem-P opened this issue Feb 23, 2023 · 0 comments
Open

Unable to write comments in this section #17

Siem-P opened this issue Feb 23, 2023 · 0 comments

Comments

@Siem-P
Copy link
Owner

Siem-P commented Feb 23, 2023

<article class="card">
<div class="image-container">
<div class="colour-circle"></div>
<%
const avatarSrc = member?.avatar // If there is a value for avatar, use it. Otherwise stay empty.
if (avatarSrc && avatarSrc !== 'null') {
%>
<img class="card-image" src="<%- member.avatar %>" alt="Avatar van <%= member.name %>">
<% } else { %>
<img class="card-image" src="/assets/sussybaka.png" alt="Een verdacht poppetje in een schacht">
<% } %>
</div>
<div class="info-area">
<h3><%= member.name + " " + (member.prefix ?? '') + " " + member.surname %></h3>
<div class="tags">
<a class="tag" href="<%= member.website %>" target="_blank">Website</a>
<% if(!member.colour?.hex) {%>
<% } else { %>
<a class="tag" href="#">
<p class="colour-circle" style="--card-circle-colour:<%= member.colour?.hex%>"></p>
</a>
<% } %>
</div>
</div>
</article>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Todo
Development

No branches or pull requests

1 participant