Skip to content

Commit

Permalink
Add Tailwind beams background
Browse files Browse the repository at this point in the history
  • Loading branch information
stevebauman committed Jun 4, 2024
1 parent d90a8a9 commit c049e21
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 1 deletion.
Binary file added assets/img/tailwind-beams.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion components/Window.vue
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@
:readonly="preview"
@blur="editingTitle = false"
@keyup.enter="$refs.titleInput.blur()"
:style="{ width: `${title.length / 1.75}em` }"
:style="{ width: `${title.length / 1.5}em` }"
:class="{ 'cursor-pointer pointer-events-none': preview }"
class="p-0 text-sm font-medium text-center bg-transparent border-0 shadow-none focus:ring-0"
/>
Expand Down
19 changes: 19 additions & 0 deletions data/backgrounds.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import PestBlack from '../assets/img/pest-black.png';
import PestWhite from '../assets/img/pest-white.png';
import TailwindBeams from '../assets/img/tailwind-beams.png';

export default [
{
Expand Down Expand Up @@ -47,6 +48,24 @@ export default [
id: 'lavender',
class: 'bg-gradient-to-bl from-blue-400 to-purple-500',
},
{
id: 'tailwind-light',
style: {
backgroundSize: 'cover',
backgroundColor: '#ffffff',
backgroundPosition: 'center',
backgroundImage: `url(${TailwindBeams})`,
},
},
{
id: 'tailwind-dark',
style: {
backgroundSize: 'cover',
backgroundColor: '#0f172a',
backgroundPosition: 'center',
backgroundImage: `url(${TailwindBeams})`,
},
},
{
id: 'pest-black',
style: {
Expand Down

0 comments on commit c049e21

Please sign in to comment.