Skip to content

Commit d1dbfca

Browse files
authored
Merge pull request #49 from nunowar/new-landing-page
New landing page
2 parents 99e45a6 + bceaa1a commit d1dbfca

File tree

15 files changed

+1216
-2089
lines changed

15 files changed

+1216
-2089
lines changed

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

247 KB
Loading

resources/www/index.html

Lines changed: 440 additions & 222 deletions
Large diffs are not rendered by default.

resources/www/main.css

Lines changed: 56 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,60 @@
1-
@tailwind base;
2-
@tailwind components;
3-
@tailwind utilities;
4-
5-
[hidden] { display: none !important; }
1+
@import url('https://fonts.googleapis.com/css2?family=Exo:wght@600&display=swap');
2+
@import 'tailwindcss';
3+
@plugin 'tailwindcss-motion';
64

75
@layer base {
8-
body {
9-
background: url('/assets/bg-head.webp');
10-
background-position: center top;
11-
@apply sm:bg-center bg-no-repeat bg-cover;
12-
}
13-
14-
main {
15-
background: url('/assets/pattern.svg');
16-
background-repeat: repeat;
17-
background-position: 10px 10px;
18-
background-size: 30px 30px;
19-
}
20-
21-
@screen md {
22-
main {
23-
background: url('/assets/pattern.svg'), url('/assets/bg-foot.webp');
24-
background-repeat: repeat, no-repeat;
25-
background-position: 10px 10px, center bottom;
26-
background-size: 40px 40px, contain;
6+
html{height:100%;-webkit-tap-highlight-color:transparent}
7+
body{min-height:100%}
8+
[x-cloak]{display:none}
9+
@font-face{font-family:"Exo", sans-serif;font-optical-sizing: auto;font-weight: 700;font-style: normal;}
10+
}
11+
12+
@theme {
13+
--font-title: 'Exo', sans-serif;
14+
}
15+
16+
button {
17+
@apply cursor-pointer;
18+
}
19+
20+
.bg-pest {
21+
background-image: url('/assets/bg-pest-4.jpg');
22+
}
23+
24+
.beam-background {
25+
animation: animate-beams 100s linear infinite;
26+
background-image: linear-gradient(120deg, rgba(34,102,200,0.5), rgba(255,255,255,0.1));
27+
background-image: repeating-linear-gradient(120deg, #1f2937 0%, #1f2937 8%, rgba(131, 141, 155, 0.1) 4%, transparent 1%, rgba(2, 72, 172, 0.6) 5%, #1f2937 12%), repeating-linear-gradient(-60deg, #d1d5db 0%, #d1d5db 80%, rgba(209, 213, 219, 0.7) 2%, #9ca3af 3%, #9ca3af 4.5%, rgba(209, 213, 219, 0.5) 5%);
28+
background-size: 300%, 200%;
29+
background-position: 50% 80%, 5% 50%;
30+
}
31+
32+
@keyframes animate-beams {
33+
0% {
34+
background-position: 0% 0%, 100% 100%;
35+
}
36+
100% {
37+
background-position: 150% 100%, -100% -50%;
2738
}
28-
}
2939
}
40+
41+
@keyframes marquee{
42+
0%{transform:translate3d(0,0,0)}
43+
100%{transform:translate3d(-50%,0,0)}
44+
}
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: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +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+
});
11+
412
window.Alpine = Alpine
513
Alpine.start()

0 commit comments

Comments
 (0)