-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
## What? This PR adds header design. https://github.com/storyblok/space-tool-plugins/assets/499898/00ed62d4-37e8-4f89-8b15-92c228a209e9 I added a functionality to attach right action buttons, which is hidden at the moment.
- Loading branch information
1 parent
4420f14
commit 096acc3
Showing
6 changed files
with
183 additions
and
44 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,12 @@ | ||
@tailwind base; | ||
@tailwind components; | ||
@tailwind utilities; | ||
|
||
html, | ||
body { | ||
@apply !bg-white; | ||
} | ||
|
||
* { | ||
@apply font-sans; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<script setup lang="ts"> | ||
const props = defineProps<{ | ||
title: string; | ||
}>(); | ||
</script> | ||
|
||
<template> | ||
<div class="flex items-center gap-4"> | ||
<div class="w-10 h-10 p-2 bg-gray-100 rounded-lg"> | ||
<slot name="icon"></slot> | ||
</div> | ||
<h1 class="text-2xl font-bold grow text-base-content"> | ||
{{ props.title }} | ||
</h1> | ||
<div> | ||
<slot name="right-action-bar"></slot> | ||
</div> | ||
</div> | ||
<div class="mt-2 ml-14"> | ||
<div class="text-sm font-light text-gray-500"> | ||
<slot name="description"></slot> | ||
</div> | ||
</div> | ||
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters