Skip to content

Commit bceaa1a

Browse files
committed
wip
1 parent 09d1527 commit bceaa1a

File tree

9 files changed

+397
-248
lines changed

9 files changed

+397
-248
lines changed

public/www/assets/bg-pest-4.jpg

247 KB
Loading

resources/www/index.html

Lines changed: 345 additions & 215 deletions
Large diffs are not rendered by default.

resources/www/main.css

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@import url('https://fonts.googleapis.com/css2?family=Exo:wght@700&display=swap');
1+
@import url('https://fonts.googleapis.com/css2?family=Exo:wght@600&display=swap');
22
@import 'tailwindcss';
33
@plugin 'tailwindcss-motion';
44

@@ -13,6 +13,10 @@
1313
--font-title: 'Exo', sans-serif;
1414
}
1515

16+
button {
17+
@apply cursor-pointer;
18+
}
19+
1620
.bg-pest {
1721
background-image: url('/assets/bg-pest-4.jpg');
1822
}
@@ -38,3 +42,19 @@
3842
0%{transform:translate3d(0,0,0)}
3943
100%{transform:translate3d(-50%,0,0)}
4044
}
45+
46+
[data-tippy-root]{max-width:calc(100vw - 10px)}
47+
.tippy-box[data-animation=fade][data-state=hidden]{opacity:0}
48+
.tippy-box{ @apply bg-blue-950; text-align:center;position:relative;color:#fff;border-radius:8px;font-size:13px;line-height:1.4;white-space:normal;outline:0;transition-property:transform,visibility,opacity}
49+
.tippy-box[data-placement^=top]>.tippy-arrow{bottom:0}
50+
.tippy-box[data-placement^=top]>.tippy-arrow:before{bottom:-6px;left:0;border-width:8px 8px 0;border-top-color:initial;transform-origin:center top}
51+
.tippy-box[data-placement^=bottom]>.tippy-arrow{top:0}
52+
.tippy-box[data-placement^=bottom]>.tippy-arrow:before{top:-6px;left:0;border-width:0 8px 8px;border-bottom-color:initial;transform-origin:center bottom}
53+
.tippy-box[data-placement^=left]>.tippy-arrow{right:0}
54+
.tippy-box[data-placement^=left]>.tippy-arrow:before{border-width:8px 0 8px 8px;border-left-color:initial;right:-6px;transform-origin:center left}
55+
.tippy-box[data-placement^=right]>.tippy-arrow{left:0}
56+
.tippy-box[data-placement^=right]>.tippy-arrow:before{left:-6px;border-width:8px 8px 8px 0;border-right-color:initial;transform-origin:center right}
57+
.tippy-box[data-inertia][data-state=visible]{transition-timing-function:cubic-bezier(.54,1.5,.38,1.11)}
58+
.tippy-arrow{width:16px;height:16px; @apply text-blue-950;}
59+
.tippy-arrow:before{content:"";position:absolute;border-color:transparent;border-style:solid}
60+
.tippy-content{position:relative;padding:5px 9px;z-index:1}

resources/www/main.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
import './main.css'
22

33
import Alpine from 'alpinejs'
4+
import tippy from 'tippy.js'
5+
6+
document.addEventListener('alpine:init', () => {
7+
Alpine.directive('tooltip', (el, { expression }) => {
8+
tippy(el, { content: expression });
9+
});
10+
});
411

512
window.Alpine = Alpine
613
Alpine.start()

resources/www/package-lock.json

Lines changed: 21 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

resources/www/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
"@tailwindcss/postcss": "^4.1.12",
1717
"alpinejs": "^3.14.9",
1818
"postcss": "^8.5.6",
19-
"tailwindcss": "^4.1.12"
19+
"tailwindcss": "^4.1.12",
20+
"tippy.js": "^6.3.7"
2021
}
2122
}
110 KB
Loading
112 KB
Loading
Lines changed: 1 addition & 30 deletions
Loading

0 commit comments

Comments
 (0)