UNPKG

website-common-page

Version:

Common website pages components, such as terms of service, privacy policy, and contact us.

206 lines (199 loc) 16.6 kB
'use strict'; var React = require('react'); var TermsOfService = function (_a) { var companyName = _a.companyName, websiteUrl = _a.websiteUrl, _b = _a.lastUpdated, lastUpdated = _b === void 0 ? new Date().toISOString().split("T")[0] : _b, _c = _a.className, className = _c === void 0 ? "" : _c, customContent = _a.customContent; return (React.createElement("div", { className: "terms-of-service ".concat(className) }, React.createElement("h1", null, "Terms of Service"), React.createElement("p", null, "Last Updated: ", lastUpdated), customContent ? (customContent) : (React.createElement(React.Fragment, null, React.createElement("h2", null, "1. Acceptance of Terms"), React.createElement("p", null, "Welcome to the website of ", companyName, " (", websiteUrl, "). By accessing and using this website, you agree to be bound by these Terms of Service. If you do not agree to these terms, please do not use this website."), React.createElement("h2", null, "2. Use Limitations"), React.createElement("p", null, "You agree not to use this website for any illegal purpose or any purpose prohibited by these terms. You must not use this website in any manner that could damage, disable, overburden, or impair the website or interfere with any other party's use of the website."), React.createElement("h2", null, "3. Intellectual Property"), React.createElement("p", null, "This website and its original content, features, and functionality are owned by ", companyName, " and are protected by international copyright, trademark, patent, trade secret, and other intellectual property or proprietary rights laws."), React.createElement("h2", null, "4. Disclaimer"), React.createElement("p", null, "This website is provided \"as is,\" without any warranties, either express or implied. ", companyName, " does not warrant that the website will be uninterrupted or error-free, nor does it warrant that defects will be corrected or that the website or the server that makes it available are free of viruses or other harmful components."), React.createElement("h2", null, "5. Limitation of Liability"), React.createElement("p", null, "In no event shall ", companyName, " be liable for any damages (including, without limitation, damages for loss of data, profit, or business interruption) arising out of the use or inability to use this website."), React.createElement("h2", null, "6. Changes to Terms"), React.createElement("p", null, companyName, " reserves the right to modify these Terms of Service at any time. We will notify you of any changes by posting the updated terms on this website. Your continued use of the website will be deemed acceptance of those changes."), React.createElement("h2", null, "7. Governing Law"), React.createElement("p", null, "These terms shall be governed and construed in accordance with the laws, without regard to its conflict of law provisions."))))); }; var ContactUs = function (_a) { var companyName = _a.companyName, address = _a.address, contactEmail = _a.contactEmail, contactPhone = _a.contactPhone, _b = _a.className, className = _b === void 0 ? "" : _b, customContent = _a.customContent; return (React.createElement("div", { className: "contact-us ".concat(className) }, React.createElement("h1", null, "Contact Us"), customContent ? (customContent) : (React.createElement(React.Fragment, null, React.createElement("p", null, "Thank you for your interest in ", companyName, ". If you have any questions, suggestions, or need assistance, please feel free to contact us. Our team will get back to you as soon as possible."), React.createElement("h2", null, "Contact Information"), React.createElement("ul", null, companyName && (React.createElement("li", null, React.createElement("strong", null, "Company Name:"), " ", companyName)), address && (React.createElement("li", null, React.createElement("strong", null, "Address:"), " ", address)), contactEmail && (React.createElement("li", null, React.createElement("strong", null, "Email:"), " ", React.createElement("a", { href: "mailto:".concat(contactEmail) }, contactEmail))), contactPhone && (React.createElement("li", null, React.createElement("strong", null, "Phone:"), " ", React.createElement("a", { href: "tel:".concat(contactPhone) }, contactPhone)))), React.createElement("h2", null, "Business Hours"), React.createElement("p", null, "Monday to Friday: 9:00 AM - 6:00 PM", React.createElement("br", null), "Saturday & Sunday: Closed"), React.createElement("h2", null, "Feedback"), React.createElement("p", null, "We value your feedback as it helps us continuously improve our products and services. If you have any comments or suggestions, please let us know through the contact information above."))))); }; var CookiePolicy = function (_a) { var companyName = _a.companyName, websiteUrl = _a.websiteUrl, _b = _a.lastUpdated, lastUpdated = _b === void 0 ? new Date().toISOString().split("T")[0] : _b, _c = _a.className, className = _c === void 0 ? "" : _c, customContent = _a.customContent; return (React.createElement("div", { className: "cookie-policy ".concat(className) }, React.createElement("h1", null, "Cookie Policy"), React.createElement("p", null, "Last Updated: ", lastUpdated), customContent ? (customContent) : (React.createElement(React.Fragment, null, React.createElement("h2", null, "What Are Cookies?"), React.createElement("p", null, "Cookies are small text files that are placed on your device when you visit a website. They help the website recognize your device and are widely used to make websites work more efficiently and provide information about how users interact with the website."), React.createElement("h2", null, "How We Use Cookies"), React.createElement("p", null, companyName, " uses cookies on ", websiteUrl, " to improve your browsing experience, analyze website traffic, and understand where our audience is coming from and what they are interested in."), React.createElement("h2", null, "Types of Cookies We Use"), React.createElement("ul", null, React.createElement("li", null, React.createElement("strong", null, "Essential Cookies:"), " These cookies are necessary for the website to function properly and cannot be switched off in our systems. They are usually only set in response to actions made by you which amount to a request for services, such as setting your privacy preferences, logging in, or filling in forms."), React.createElement("li", null, React.createElement("strong", null, "Performance Cookies:"), " These cookies allow us to count visits and traffic sources so we can measure and improve the performance of our site. They help us to know which pages are the most and least popular and see how visitors move around the site."), React.createElement("li", null, React.createElement("strong", null, "Functional Cookies:"), " These cookies enable the website to provide enhanced functionality and personalization. They may be set by us or by third-party providers whose services we have added to our pages."), React.createElement("li", null, React.createElement("strong", null, "Targeting Cookies:"), " These cookies may be set through our site by our advertising partners. They may be used by those companies to build a profile of your interests and show you relevant advertisements on other sites.")), React.createElement("h2", null, "Managing Cookies"), React.createElement("p", null, "Most web browsers allow you to control cookies through their settings. You can set your browser to refuse these cookies or to alert you when cookies are being sent. However, if you use your browser settings to block all cookies (including essential cookies), you may not be able to access all or parts of our site."), React.createElement("h2", null, "Changes to This Policy"), React.createElement("p", null, "We may update our Cookie Policy from time to time. Any changes will be posted on this page. We recommend that you check this policy regularly to stay informed about how we use cookies."))))); }; var PrivacyPolicy = function (_a) { var companyName = _a.companyName, websiteUrl = _a.websiteUrl, contactEmail = _a.contactEmail, _b = _a.lastUpdated, lastUpdated = _b === void 0 ? new Date().toISOString().split("T")[0] : _b, _c = _a.className, className = _c === void 0 ? "" : _c, customContent = _a.customContent; return (React.createElement("div", { className: "privacy-policy ".concat(className) }, React.createElement("h1", null, "Privacy Policy"), React.createElement("p", null, "Last Updated: ", lastUpdated), customContent ? (customContent) : (React.createElement(React.Fragment, null, React.createElement("p", null, "This Privacy Policy describes how ", companyName, " collects, uses, and discloses information that you provide when using our website", " ", websiteUrl, "."), React.createElement("h2", null, "Information We Collect"), React.createElement("h3", null, "Personal Information"), React.createElement("p", null, "When you visit our website, register an account, subscribe to our newsletter, fill out a form, or interact with us, we may collect the following types of personal information:"), React.createElement("ul", null, React.createElement("li", null, "Name"), React.createElement("li", null, "Email address"), React.createElement("li", null, "Phone number"), React.createElement("li", null, "Mailing address"), React.createElement("li", null, "Payment information")), React.createElement("h3", null, "Automatically Collected Information"), React.createElement("p", null, "When you visit our website, we may automatically collect certain information, including:"), React.createElement("ul", null, React.createElement("li", null, "IP address"), React.createElement("li", null, "Browser type"), React.createElement("li", null, "Access times"), React.createElement("li", null, "Pages visited"), React.createElement("li", null, "Referring websites"), React.createElement("li", null, "Operating system")), React.createElement("h2", null, "How We Use Your Information"), React.createElement("p", null, "We may use the information we collect for the following purposes:"), React.createElement("ul", null, React.createElement("li", null, "To provide, maintain, and improve our services"), React.createElement("li", null, "To process transactions and send related information"), React.createElement("li", null, "To send administrative information, such as updates about our services"), React.createElement("li", null, "To send marketing and promotional communications (which you can opt out of at any time)"), React.createElement("li", null, "To respond to your comments, questions, and requests"), React.createElement("li", null, "To monitor and analyze trends, usage, and activities"), React.createElement("li", null, "To detect, prevent, and address technical issues")), React.createElement("h2", null, "Information Sharing and Disclosure"), React.createElement("p", null, "We do not sell or rent your personal information to third parties for marketing purposes. We may share your information in the following situations:"), React.createElement("ul", null, React.createElement("li", null, "With service providers and consultants who help us operate our business"), React.createElement("li", null, "To comply with applicable laws, regulations, or legal processes"), React.createElement("li", null, "To protect the rights, property, or safety of ", companyName, " or others"), React.createElement("li", null, "In connection with a corporate transaction (such as a merger, acquisition, or sale of assets)")), React.createElement("h2", null, "Data Security"), React.createElement("p", null, "We take reasonable measures to protect your personal information from unauthorized access, use, or disclosure. However, no method of Internet transmission or electronic storage is 100% secure, and we cannot guarantee absolute security."), React.createElement("h2", null, "Your Rights"), React.createElement("p", null, "Depending on applicable laws in your region, you may have the right to:"), React.createElement("ul", null, React.createElement("li", null, "Access personal information we hold about you"), React.createElement("li", null, "Request correction of inaccurate data"), React.createElement("li", null, "Request deletion of your personal information"), React.createElement("li", null, "Object to our processing of your data"), React.createElement("li", null, "Request restriction of processing your data"), React.createElement("li", null, "Data portability")), React.createElement("p", null, "If you wish to exercise these rights, please contact us at", " ", contactEmail || "our contact information", " "), React.createElement("h2", null, "Cookies and Tracking Technologies"), React.createElement("p", null, "We use cookies and similar tracking technologies to track activity on our website and store certain information. For more information about how we use these technologies, please refer to our Cookie Policy."), React.createElement("h2", null, "Third-Party Links"), React.createElement("p", null, "Our website may contain links to third-party websites. We are not responsible for the privacy practices or content of these websites."), React.createElement("h2", null, "Children's Privacy"), React.createElement("p", null, "Our services are not directed to children under 13, and we do not knowingly collect personal information from children under 13."), React.createElement("h2", null, "Policy Changes"), React.createElement("p", null, "We may update our Privacy Policy from time to time. We will notify you of any changes by posting the new Privacy Policy on this page. We recommend that you review this Privacy Policy periodically for any changes."), React.createElement("h2", null, "Contact Us"), React.createElement("p", null, "If you have any questions about this Privacy Policy, please contact us at ", contactEmail || "our contact information", "."))))); }; exports.ContactUs = ContactUs; exports.CookiePolicy = CookiePolicy; exports.PrivacyPolicy = PrivacyPolicy; exports.TermsOfService = TermsOfService; //# sourceMappingURL=index.js.map