@@ -5,100 +5,106 @@ const lang = getLangFromUrl(Astro.url)
55const t = useTranslations (lang )
66---
77
8- <div class =" styled-div" >
9- <h2 set:html ={ t (' SMALL_BANNER_H2' )} />
10-
11- <ul class =" features-list" >
12- <li >{ t (' SMALL_BANNER_LI_1' )} </li >
13- <li >{ t (' SMALL_BANNER_LI_2' )} </li >
14- <li >{ t (' SMALL_BANNER_LI_3' )} </li >
15- <li >{ t (' SMALL_BANNER_LI_4' )} </li >
16- <li >{ t (' SMALL_BANNER_LI_5' )} </li >
17- <li >{ t (' SMALL_BANNER_LI_6' )} </li >
18- </ul >
19-
20- <a href =`https://www.citedrive.com/${lang }/` class =" cta-button" >{ t (' SMALL_BANNER_BUTTON' )} </a >
21- <a href =`https://youtu.be/bHD94qM0vyg?si=Q6h3XDVqFzHx7kI8` class =" cta-button-demo" >{ t (' SMALL_BANNER_VIDEO' )} </a >
8+ <div id =" modal-overlay" class =" modal-overlay hidden" >
9+ <div class =" modal-content styled-div" >
10+ <button class =" modal-close" onclick =" closeModal ()" >×</button >
11+ <h2 set:html ={ t (' SMALL_BANNER_H2' )} />
12+
13+ <ul class =" features-list" >
14+ <li >{ t (' SMALL_BANNER_LI_1' )} </li >
15+ <li >{ t (' SMALL_BANNER_LI_2' )} </li >
16+ <li set:html ={ t (' SMALL_BANNER_LI_3' )} />
17+ <li set:html ={ t (' SMALL_BANNER_LI_4' )} />
18+ <li >{ t (' SMALL_BANNER_LI_5' )} </li >
19+ <li >{ t (' SMALL_BANNER_LI_6' )} </li >
20+ </ul >
21+
22+ <div class =" button-row" >
23+ <a href ={ ` https://www.citedrive.com/${lang }/ ` } class =" cta-button" >{ t (' SMALL_BANNER_BUTTON' )} </a >
24+ <a href =" https://youtu.be/bHD94qM0vyg?si=Q6h3XDVqFzHx7kI8" class =" cta-button-demo" >{ t (' SMALL_BANNER_VIDEO' )} </a >
25+ </div >
26+ </div >
2227</div >
2328
24- <style >
25- .styled-div {
26- border: 2px solid white;
27- border-radius: 19px;
28- box-shadow: 2px 2px 5px rgb(0 0 0 / 17%);
29- padding: 20px;
30- background-image: linear-gradient(200deg, #560fcf 2.35%, #9d208b 100%);
31- font-family: Arial, sans-serif;
32- color: #fff;
33- /* margin-bottom: 2rem; */
34- }
29+ <script is:inline >
30+ setTimeout(() => {
31+ const modal = document.getElementById('modal-overlay')
32+ if (modal) {
33+ modal.classList.remove('hidden')
34+ }
35+ }, 5000)
3536
36- .styled-div h2 {
37- /*text-align: center;*/
38- color: white;
39- margin-bottom: 20px;
37+ function closeModal() {
38+ document.getElementById('modal-overlay')?.classList.add('hidden')
4039 }
40+ </script >
4141
42- .features-list {
43- list-style-type: none;
44- padding: 0;
45- }
42+ <style is:inline >
43+ .modal-overlay {
44+ position: fixed;
45+ top: 0;
46+ left: 0;
47+ width: 100%;
48+ height: 100%;
4649
47- .features-list li {
48- position: relative;
49- padding-left: 25px;
50- margin-bottom: 10px;
51- list-style: none!important;
50+ display: flex;
51+ justify-content: center;
52+ align-items: center;
53+ z-index: 1000;
5254 }
53-
54- .features-list li:before {
55- content: '✓';
56- position: absolute;
57- left: 0;
58- top: 50%;
59- transform: translateY(-50%);
60- color: #c0fdc0;
55+ .modal-overlay.hidden {
56+ display: none;
6157 }
6258
63- /* Call to action button styles */
64- .cta-button {
65- display: inline-block;
66- padding: 10px 20px;
67- border-radius: 25px;
68- background-color: #ffffff;
69- color: #521449!important;
70- text-decoration: none!important;
71- text-align: center;
72- border: 2px solid #fff;
73- margin-top: 20px;
74- transition: background-color 0.3s ease;
59+ .modal-content {
60+ color: black;
61+ padding: 2rem;
62+ margin: 1rem;
63+ border: 1px solid #000;
64+ border-radius: 1rem;
65+ background: white;
66+ position: relative;
67+ max-width: 700px;
68+ width: 90%;
7569 }
7670
77- .cta-button:hover {
78- background- color: #d5d5d5 ;
71+ .modal-content h2 {
72+ color: black ;
7973 }
8074
81- .cta-button-demo {
82- display: inline-block;
83- padding: 10px 20px;
84- border-radius: 25px;
85- background-color: #9d208b;
86- color: white!important;
87- text-decoration: none!important;
88- text-align: center;
89- border: 2px solid #fff;
90- margin-top: 20px;
91- transition: background-color 0.3s ease;
75+ .modal-close {
76+ position: absolute;
77+ top: 10px;
78+ right: 20px;
79+ font-size: 24px;
80+ background: none;
81+ border: none;
82+ color: black;
83+ cursor: pointer;
9284 }
93-
94- .cta-button-demo:hover {
95- background-color: #824299;
85+ .modal-close:hover {
86+ color: #ccc;
9687 }
9788
89+ .button-row {
90+ display: flex;
91+ gap: 1rem;
92+ flex-wrap: wrap;
93+ margin-top: 2rem;
94+ }
9895
96+ .cta-button,
97+ .cta-button-demo {
98+ display: block;
99+ text-decoration: none;
100+ color: #fff!important;
101+ background-color: black;
102+ font-weight: 600;
103+ border-radius: 32px;
104+ line-height: 1;
105+ padding: 16px;
106+ transition: 0.5s;
107+ width: fit-content;
99108
100-
101- .spanferkel {
102- text-decoration: underline 5px rgb(0, 255, 107);
103109 }
104- </style >
110+ </style >
0 commit comments