Skip to content
This repository has been archived by the owner on Dec 2, 2024. It is now read-only.

feat: update new content placeholder #503

Merged
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Update new content placeholder
dzbo committed Oct 18, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
commit e2eb01a4e0fd007afdd90653143936fe2b8ff6ca
5 changes: 3 additions & 2 deletions domains/grid/components/GridWidget.vue
Original file line number Diff line number Diff line change
@@ -140,9 +140,10 @@ onMounted(() => {

<template>
<div
class="group relative flex h-full flex-col rounded-12 border border-neutral-90 bg-neutral-100"
class="group relative flex h-full flex-col rounded-12"
:class="{
'shadow-neutral-drop-shadow-1xl': !isAddContentWidget,
'border border-neutral-90 bg-neutral-100 shadow-neutral-drop-shadow-1xl':
!isAddContentWidget,
'select-none': isAllowToEdit,
'z-50': isOpen,
}"
8 changes: 5 additions & 3 deletions domains/grid/components/GridWidgetAddContent.vue
Original file line number Diff line number Diff line change
@@ -16,10 +16,12 @@

<template>
<div
class="flex h-full cursor-pointer flex-col items-center justify-center overflow-hidden rounded-12 p-4 opacity-60 transition hover:opacity-100 hover:shadow-neutral-drop-shadow"
class="bg-dashed-border flex h-full cursor-pointer flex-col items-center justify-center overflow-hidden rounded-12 p-4 opacity-50 transition hover:opacity-100 hover:shadow-neutral-drop-shadow"

Check warning on line 19 in domains/grid/components/GridWidgetAddContent.vue

GitHub Actions / test

Invalid Tailwind CSS classnames order
@click="handleAddContent"
>
<lukso-icon name="plus" size="large" />
<p class="mt-2">{{ formatMessage('grid_widget_add_widget_text') }}</p>
<lukso-icon name="plus" size="large" color="neutral-20"></lukso-icon>
<p class="mt-2">
{{ formatMessage('grid_widget_add_widget_text') }}
</p>
</div>
</template>
3 changes: 3 additions & 0 deletions tailwind.config.js
Original file line number Diff line number Diff line change
@@ -32,6 +32,9 @@ module.exports = {
'100%': { opacity: '0.2' },
},
},
backgroundImage: {
'dashed-border': `url("data:image/svg+xml,%3csvg width='100%25' height='100%25' xmlns='http://www.w3.org/2000/svg'%3e%3crect width='100%25' height='100%25' fill='none' stroke='%239CB6C9FF' stroke-width='4' stroke-dasharray='6%2c 14' stroke-dashoffset='0' stroke-linecap='square'/%3e%3c/svg%3e")`,
},
},
},
plugins: [wordBreakPlugin],