From e327883e2e6667961a6910ebe1f943a5aacc1acc Mon Sep 17 00:00:00 2001 From: hazycora Date: Wed, 2 Aug 2023 21:21:14 -0500 Subject: [PATCH] refactor --- assets/style.css | 16 +++++++++++++--- views/issue.eta | 39 +++++++++++++++++---------------------- views/repo.eta | 20 ++++++++++---------- 3 files changed, 40 insertions(+), 35 deletions(-) diff --git a/assets/style.css b/assets/style.css index 226fe0e..45379ab 100644 --- a/assets/style.css +++ b/assets/style.css @@ -15,7 +15,7 @@ p { color: #ffffff; display: flex; flex-direction: column; - gap: 1rem; + gap: 2rem; justify-content: center; align-items: center; width: 1050px; @@ -35,15 +35,15 @@ p { display: flex; flex-direction: column; justify-content: center; - width: 80%; gap: 10px; + width: 80%; } .graphics { display: flex; justify-content: flex-end; align-items: flex-start; - width: 240px; + width: 20%; } .graphics > img { @@ -52,6 +52,16 @@ p { height: 120px; } +.issue .title { + font-weight: 800; + font-size: 4.5rem; + line-height: 1.2em; + display: flex; + column-gap: 0.25em; + line-height: 1em; + flex-wrap: wrap; +} + .repo .author { display: flex; align-items: center; diff --git a/views/issue.eta b/views/issue.eta index de03504..ca4030b 100644 --- a/views/issue.eta +++ b/views/issue.eta @@ -13,26 +13,21 @@ %>
-
-

@<%= it.issue.repository?.full_name || it.issue.base.repo.full_name %>

-

#<%= it.issue.number %><%~ include('spanwords', {text: title}) - %>

- <% if (it.issue.body) { %> -

<%~ include('spanwords', {text: body})%>

- <% } %> -
-
- -
-
-
-

<%= it.issue.user.full_name %>

opened on <%= new Intl.DateTimeFormat('en-US', { dateStyle: 'long' }).format(new Date(it.issue.created_at)) %>

-
+

@<%= it.issue.repository?.full_name || it.issue.base.repo.full_name %>

#<%= it.issue.number %><%~ include('spanwords', {text: title}) + %>

<% if (it.issue.body) { %>

<%~ include('spanwords', {text: body})%>

<% } + %>
+

<%= it.issue.user.full_name || it.issue.user.login %>

opened on <%= new Intl.DateTimeFormat('en-US', { dateStyle: 'long' }).format(new Date(it.issue.created_at)) %>

\ No newline at end of file diff --git a/views/repo.eta b/views/repo.eta index 355029b..b3d4abb 100644 --- a/views/repo.eta +++ b/views/repo.eta @@ -1,15 +1,15 @@ <% layout('layout') %>
-
-

<%= it.repo.owner.full_name %>@<%= it.repo.owner.login %>

-

<%= it.repo.name %>

- <% if (it.repo.description) { %> -

<%= it.repo.description %>

- <% } %> -
-
- -
+

<%= it.repo.owner.full_name %>@<%= it.repo.owner.login %>

<%= it.repo.name %>

<% if (it.repo.description) { + %>

<%= it.repo.description %>

+ <% } + %>
\ No newline at end of file