Skip to content

Commit

Permalink
Frontend & Backend: Server Index and Privacy page
Browse files Browse the repository at this point in the history
Update the server index to include axios for the server pinging.
Add company details to the privacy page.

No breaking changes.
  • Loading branch information
JancoEngelbrecht committed Sep 22, 2024
1 parent c363b3f commit 473276d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
4 changes: 3 additions & 1 deletion backend/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ const cors = require('cors');
const bodyParser = require('body-parser');
const mongoose = require('mongoose');
require('dotenv/config');
const axios = require('axios');


const app = express();

Expand Down Expand Up @@ -48,7 +50,7 @@ const server = app.listen(port, () => {

// Function to ping the server
function pingServer() {
// Use the same URL as the CORS origin (your deployed Azure app URL)

const serverUrl = 'https://proud-desert-0a59d0b03.5.azurestaticapps.net';

// Ping the server every 25 minutes (1500000 milliseconds)
Expand Down
12 changes: 4 additions & 8 deletions frontend/src/pages/global/privacy/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ const Privacy = () => {
<div className="container mx-auto px-4 py-8">
<div>
<h1 className="text-3xl font-bold mb-4">Privacy Policy</h1>
<p className="text-sm mb-8">Last Updated: [Date]</p>
<p>Welcome to [Your Website]. We are committed to protecting your personal information and your right to privacy. If you have any questions or concerns about this privacy policy or our practices with regards to your personal information, please contact us at [Your Contact Information]. When you visit our website and use our services, you trust us with your personal information. We take your privacy very seriously. In this privacy policy, we describe our privacy practices. We seek to explain to you in the clearest way possible what information we collect, how we use it, and what rights you have in relation to it. We hope you take some time to read through it carefully, as it is important. If there are any terms in this privacy policy that you do not agree with, please discontinue use of our Sites and our services.</p>
<p className="text-sm mb-8">Last Updated: 19 September 2024</p>
<p>Welcome to Laguna Butchery. We are committed to protecting your personal information and your right to privacy. If you have any questions or concerns about this privacy policy or our practices with regards to your personal information, please contact us at [Your Contact Information]. When you visit our website and use our services, you trust us with your personal information. We take your privacy very seriously. In this privacy policy, we describe our privacy practices. We seek to explain to you in the clearest way possible what information we collect, how we use it, and what rights you have in relation to it. We hope you take some time to read through it carefully, as it is important. If there are any terms in this privacy policy that you do not agree with, please discontinue use of our Sites and our services.</p>
</div>

<div className="grid grid-cols-1 md:grid-cols-2 gap-8">
Expand Down Expand Up @@ -44,7 +44,7 @@ const Privacy = () => {
<li>Objection: You have the right to object to the processing of your personal information in certain circumstances.</li>
<li>Withdraw Consent: You have the right to withdraw your consent at any time, without affecting the lawfulness of processing based on consent before its withdrawal.</li>
</ul>
<p>To exercise any of these rights, please contact us at [Your Contact Information].</p>
<p>To exercise any of these rights, please contact us.</p>

<h2 className="text-2xl font-bold mt-8 mb-4">6. Cookies and Tracking Technologies</h2>
<p>We use cookies and similar tracking technologies to track the activity on our website and hold certain information. Cookies are files with a small amount of data which may include an anonymous unique identifier. You can instruct your browser to refuse all cookies or to indicate when a cookie is being sent. However, if you do not accept cookies, you may not be able to use some portions of our website.</p>
Expand All @@ -53,11 +53,7 @@ const Privacy = () => {
<p>We may update this privacy policy from time to time in order to reflect changes to our practices or for other operational, legal, or regulatory reasons. We will notify you of any changes by posting the new privacy policy on this page. We encourage you to review this privacy policy periodically to stay informed about how we are protecting your information.</p>

<h2 className="text-2xl font-bold mt-8 mb-4">8. Contact Us</h2>
<p>If you have any questions about this privacy policy or our privacy practices, please contact us at:</p>
<p>[Your Company Name]<br />
[Your Address]<br />
[Your Email Address]<br />
[Your Phone Number]</p>
<p>If you have any questions about this privacy policy or our privacy practices, please contact us</p>
</div>
</div>
</div>
Expand Down

0 comments on commit 473276d

Please sign in to comment.