Skip to content

Commit

Permalink
Update styles
Browse files Browse the repository at this point in the history
  • Loading branch information
nastita committed Aug 18, 2024
1 parent 2bc3f1c commit 520ffc0
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 22 deletions.
Binary file added public/assets/images/background.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
31 changes: 9 additions & 22 deletions src/views/TheGrid.vue
Original file line number Diff line number Diff line change
Expand Up @@ -113,27 +113,17 @@ onMounted(() => {
</script>

<style scoped>
/* .vgl-layout {
background-color: #eee;
} */
:deep(.vgl-item:not(.vgl-item--placeholder)) {
background-color: #ccc;
border-radius: 12px;
/* box-shadow: 0 0 10px rgba(0, 0, 0, 0.2); */
}
:deep(.vgl-item--resizing) {
opacity: 90%;
}
:deep(.vgl-item--static) {
background-color: #cce;
.grid-item {
background: rgba(red, green, blue, alpha);
border-radius: 10px;
border: 1px solid #e4e2e2a3;
backdrop-filter: blur(4px);
box-shadow: 0 0 10px #0003;
}
</style>

<template>
<main>
<main class="bg-hero bg-cover bg-fixed">
<div class="mt-2 mx-auto max-w-content">
<GridLayout
v-model:layout="layout"
Expand All @@ -146,10 +136,7 @@ onMounted(() => {
>
<template #item="{ item }">
<div
:class="
'flex flex-col h-full rounded-xl shadow-2xl bg-white' +
(needsPadding(item.type) ? ' p-2' : '')
"
:class="'flex flex-col h-full grid-item ' + (needsPadding(item.type) ? ' p-2' : '')"
>
<TitleWidget
v-if="item.type === WidgetType.TITLE"
Expand All @@ -169,7 +156,7 @@ onMounted(() => {
:src="item.properties.src"
:title="item.properties.title"
:allow="item.properties.allow"
class="rounded-xl overflow-hidden"
class="rounded-[10px] overflow-hidden"
width="100%"
height="100%"
frameborder="0"
Expand Down
4 changes: 4 additions & 0 deletions tailwind.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ export default {
content: ['./index.html', './src/**/*.{vue,js,ts,jsx,tsx}'],
theme: {
extend: {
// Temporary bg
backgroundImage: {
hero: "url('/public/assets/images/background.jpg')"
},
maxWidth: {
content: '880px'
},
Expand Down

0 comments on commit 520ffc0

Please sign in to comment.