Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modal Form for Vuestic UI Landing page #4265

Closed
zvenigorodskaia opened this issue May 10, 2024 · 1 comment · Fixed by #4275
Closed

Modal Form for Vuestic UI Landing page #4265

zvenigorodskaia opened this issue May 10, 2024 · 1 comment · Fixed by #4275
Assignees

Comments

@zvenigorodskaia
Copy link
Contributor

zvenigorodskaia commented May 10, 2024

Develop a modal form designed to collect emails from users interested in a free Vue.js code audit offered by the Vuestic Core Team. The form should engage users effectively, ensure user consent for data processing, and comply with best practices for user interaction.

Requirements:

  • Include a close button (X icon) at the top right of the modal.

  • Content:
    -- Header: "Get a Free Vue.js Code Audit from Vuestic Core Team".
    -- Text: "Got a Vue.js project and want to make it better? Provide us with some details about your project, and we'll get back to you within 24 hours."
    -- Email input field
    -- CAPTCHA verification
    -- Submit button
    -- Text under the Submit button:
    "Click 'Submit!' to consent to processing your data by Epicmax Georgia LLC for marketing purposes, including sending emails. For details, see our Privacy Policy."

Link for privacy: https://www.iubenda.com/privacy-policy/50799764

Functional Requirements:
The modal should not appear immediately upon page load. Implement a delay mechanism like:

<script src="https://cdnjs.cloudflare.com/ajax/libs/js-cookie/2.2.1/js.cookie.min.js"></script> <script> const delay = 5; // Pop-up delay in seconds const popupId = "pop-up-wrapper"; // Pop-up ID name $(document).ready(function() { if (!Cookies.get('alert')) { setTimeout(function() { document.getElementById(popupId). style.display = "flex"; Cookies.set('alert', true, { expires: 1 }); }, delay * 1000); } }); </script>

Ensure the modal respects user privacy and cookie settings to prevent repeated displays to the same user within a given timeframe.

Example:
image

Image for the right section here:
Got a Vue js project and want to make it better Provide us with some details about your project, and we'll get back to you within 24 hours

@asvae
Copy link
Contributor

asvae commented May 17, 2024

Can we also limit this form to Europe and America?

Same for epicmaxco/vuestic-admin#1037

I think the easiest approach would be to use some geolocation service, but up to you.
Maybe Intl.DateTimeFormat().resolvedOptions().timeZone will be good enough.

We also need to update webflow implementation to do the same. I'll handle this myself, just ping me after you're done with frontend implementation.

Fsss126 added a commit to Fsss126/vuestic-ui that referenced this issue May 19, 2024
Fsss126 added a commit to Fsss126/vuestic-ui that referenced this issue May 19, 2024
Fsss126 added a commit to Fsss126/vuestic-ui that referenced this issue May 20, 2024
Fsss126 added a commit to Fsss126/vuestic-ui that referenced this issue May 20, 2024
asvae pushed a commit that referenced this issue May 20, 2024
* Modal Form for Vuestic UI Landing page (#4265)

* Added textarea (#4265)

* Show modal based on geolocation (#4265)

* Review edits (#4265)
asvae added a commit that referenced this issue May 21, 2024
Fsss126 added a commit that referenced this issue May 21, 2024
* Modal Form for Vuestic UI Landing page (#4265)

* Added textarea (#4265)

* Show modal based on geolocation (#4265)

* Review edits (#4265)

* Disable docs build:analysis

* Updated Node.js and tsx version to fix Railway build
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants