Skip to content

Commit

Permalink
fix: ui updates
Browse files Browse the repository at this point in the history
  • Loading branch information
CS76 committed Oct 18, 2023
1 parent b9fea90 commit f148589
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 45 deletions.
28 changes: 6 additions & 22 deletions resources/js/Pages/Project/Index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@
class="flex-grow cursor-pointer"
>
<div class="flex justify-between items-baseline">
<div class="font-bold text-lg text-gray-600">
<div class="font-bold text-xl text-gray-600">
<div class="flex items-center">
<span
class="cursor-pointer flex max-w-2xl break-words block"
Expand Down Expand Up @@ -263,26 +263,11 @@
>
<p>
<span
class="mt-1 inline-flex items-center rounded-full bg-gray-50 px-2 py-1 text-xs font-medium text-gray-600 ring-1 ring-inset ring-gray-500/10"
v-for="tag in project.tags"
:key="tag.id"
class="mr-2"
>
<span
class="inline-flex items-center px-2.5 py-0.5 rounded-md text-xs font-medium bg-indigo-100 text-indigo-800"
>
<svg
class="-ml-0.5 mr-1.5 h-2 w-2 text-indigo-400"
fill="currentColor"
viewBox="0 0 8 8"
>
<circle
cx="4"
cy="4"
r="3"
/>
</svg>
{{ tag.name["en"] }}
</span>
{{ tag.name["en"] }}
</span>
</p>
</dd>
Expand All @@ -292,13 +277,12 @@
>
{{ project.description }}
</div>
<div class="text-xs text-gray-400 pr-5">
<div class="text-xs mt-1 text-gray-400 pr-5">
<span class="font-bold text-gray-600"
>Last updated on</span
>Updated on</span
>
{{ formatDate(project.updated_at) }}
</div>
<div class="text-xs text-gray-400 pr-5">
&middot;
<span class="font-bold text-gray-600"
>Created on</span
>
Expand Down
31 changes: 8 additions & 23 deletions resources/js/Pages/Project/Show.vue
Original file line number Diff line number Diff line change
Expand Up @@ -77,16 +77,6 @@
<span>Edit</span>
</button>
</div>

<span
v-if="project.identifier"
class="text-gray-400 pt-2"
>
<img
:src="'/badge/doi/' + project.identifier"
/>
</span>

<div class="inline-flex items-center mt-3">
<access-dialogue
:available-roles="availableRoles"
Expand Down Expand Up @@ -312,6 +302,12 @@
</div>
</div>
<div class="flex flex-nowrap justify-between pb-3">
<div
v-if="project.identifier"
class="text-gray-400 mt-2"
>
<img :src="'/badge/doi/' + project.identifier" />
</div>
<div
class="mt-2 flex items-center text-xs text-gray-400"
>
Expand Down Expand Up @@ -411,22 +407,11 @@
<dd class="mt-1 text-md text-gray-900 space-y-5">
<p>
<span
class="mt-1 inline-flex items-center rounded-full bg-gray-50 px-2 py-1 text-xs font-medium text-gray-600 ring-1 ring-inset ring-gray-500/10"
v-for="tag in project.tags"
:key="tag.id"
class="mr-2"
>
<span
class="inline-flex items-center px-2.5 py-0.5 rounded-md text-sm font-medium bg-indigo-100 text-indigo-800"
>
<svg
class="-ml-0.5 mr-1.5 h-2 w-2 text-indigo-400"
fill="currentColor"
viewBox="0 0 8 8"
>
<circle cx="4" cy="4" r="3" />
</svg>
{{ tag.name["en"] }}
</span>
{{ tag.name["en"] }}
</span>
</p>
</dd>
Expand Down

0 comments on commit f148589

Please sign in to comment.