diff --git a/public/css/index.css b/public/css/index.css index 11b05ee..1bcd28d 100644 --- a/public/css/index.css +++ b/public/css/index.css @@ -45,7 +45,10 @@ body { .avatar-status-wrapper { display: flex; align-items: center; - gap: 1.5rem; + gap: 2rem; + + width: fit-content; + max-width: 700px; } .avatar-wrapper { @@ -116,6 +119,48 @@ body { flex-direction: column; } +.user-info-inner { + display: flex; + flex-direction: row; + align-items: center; + text-align: center; + gap: .5rem; +} + +.user-info-inner h1 { + font-size: 2rem; + margin: 0; +} + +.clan-badge { + width: 50px; + height: 20px; + border-radius: 8px; + background-color: var(--card-bg); + + display: flex; + flex-direction: row; + align-items: center; + justify-content: center; + gap: 0.3rem; + padding: 0.2rem 0.3rem; +} + +.clan-badge img { + width: 20px; + height: 20px; + margin: 0; + padding: 0; +} + +.clan-badge span { + font-size: 1rem; + color: var(--text-color); + margin: 0; + + font-weight: 600; +} + h1 { font-size: 2.5rem; margin: 0; diff --git a/src/views/index.ejs b/src/views/index.ejs index 5e922c7..0736af4 100644 --- a/src/views/index.ejs +++ b/src/views/index.ejs @@ -48,7 +48,15 @@ <% } %>
-

<%= username %>

+
+

<%= username %>

+ <% if (user.clan) { %> +
+ Clan Badge + <%= user.clan.tag %> +
+ <% } %> +
<% if (activities.length && activities[0].type === 4) { const emoji = activities[0].emoji; const isCustom = emoji?.id;