Skip to content

Commit

Permalink
refactor(ui): minor tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
sfxcode committed Aug 4, 2024
1 parent 7f09b5a commit dc1351b
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 36 deletions.
2 changes: 1 addition & 1 deletion app/assets/sass/main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ html {
}

.card {
padding: 1.5rem;
padding: 1rem;
color: var(--p-text-color);
margin-bottom: 1rem;
border-radius: $borderRadius;
Expand Down
2 changes: 1 addition & 1 deletion app/layouts/default.vue
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const isOnMobile = useState<boolean>('isOnMobile')
<AppSidebar />
<div id="workspace" :class="[{ collapsed }, { mobile: isOnMobile }]">
<AppTopbar />
<div class="m-4">
<div class="m-1 mt-4">
<slot />
</div>
</div>
Expand Down
66 changes: 32 additions & 34 deletions app/pages/prime/messages.vue
Original file line number Diff line number Diff line change
Expand Up @@ -12,44 +12,42 @@ function doSomeDeleteAction(idToDelete: number) {

<template>
<div class="card">
<div class="card">
<h2>PrimeVue Toast Demo</h2>
<h2>PrimeVue Toast Demo</h2>

<div class="flex flex-row gap-4">
<div>
<Button label="Success" class="p-button-success" @click="showSuccessMessage('Success Message', 'Message Content')" />
</div>
<div>
<Button label="Info" class="p-button-info" @click="showInfoMessage('Info Message', 'Message Content')" />
</div>
<div>
<Button label="Warn" class="p-button-warning" @click="showWarnMessage('Warn Message', 'Message Content')" />
</div>
<div>
<Button label="Error" class="p-button-danger" @click="showErrorMessage('Error Message', 'Message Content')" />
</div>
<Toast />
<div class="flex flex-row gap-4">
<div>
<Button label="Success" class="p-button-success" @click="showSuccessMessage('Success Message', 'Message Content')" />
</div>
<h2>Confirmation</h2>
<div class="flex flex-row gap-4">
<Button label="Trigger action with confirmation" class="p-button-info" @click="confirmAction(doSomeAction)" />
<Button label="Trigger delete action with confirmation" class="p-button-danger" @click="confirmDelete(1, doSomeDeleteAction)" />
<div>
<Button label="Info" class="p-button-info" @click="showInfoMessage('Info Message', 'Message Content')" />
</div>
<h2>Messages</h2>
<div class="flex flex-row gap-4">
<Message severity="success">
Success Message Content
</Message>
<Message severity="info">
Info Message Content
</Message>
<Message severity="warn">
Warning Message Content
</Message>
<Message severity="error">
Error Message Content
</Message>
<div>
<Button label="Warn" class="p-button-warning" @click="showWarnMessage('Warn Message', 'Message Content')" />
</div>
<div>
<Button label="Error" class="p-button-danger" @click="showErrorMessage('Error Message', 'Message Content')" />
</div>
<Toast />
</div>
<h2>Confirmation</h2>
<div class="flex flex-row gap-4">
<Button label="Trigger action with confirmation" class="p-button-info" @click="confirmAction(doSomeAction)" />
<Button label="Trigger delete action with confirmation" class="p-button-danger" @click="confirmDelete(1, doSomeDeleteAction)" />
</div>
<h2>Messages</h2>
<div class="flex flex-row gap-4 flex-wrap">
<Message severity="success">
Success Message Content
</Message>
<Message severity="info">
Info Message Content
</Message>
<Message severity="warn">
Warning Message Content
</Message>
<Message severity="error">
Error Message Content
</Message>
</div>
</div>
</template>
Expand Down

0 comments on commit dc1351b

Please sign in to comment.