diff --git a/src/Pages/Licensing.jsx b/src/Pages/Licensing.jsx index 91b2593..24ac4f3 100644 --- a/src/Pages/Licensing.jsx +++ b/src/Pages/Licensing.jsx @@ -1,7 +1,6 @@ -import {React,useEffect} from 'react'; +import React, { useEffect, useState } from 'react'; import styled from 'styled-components'; - const Container = styled.div` max-width: 800px; margin: 0 auto; @@ -31,15 +30,21 @@ const Subtitle = styled.h2` `; const Licensing = () => { - useEffect(() => { - window.scrollTo(0, 0); - }, []); + const [currentYear, setCurrentYear] = useState(''); + + useEffect(() => { + window.scrollTo(0, 0); + + const year = new Date().getFullYear(); + setCurrentYear(year); + }, []); + return ( Licensing Welcome to StartConnect Hub! This website is licensed under the MIT License. This page outlines the terms of the license and provides details on how you can use, modify, and distribute our software. MIT License - Copyright (c) 2024 StartConnect-Hub + Copyright (c) {currentYear} StartConnect-Hub Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal @@ -63,7 +68,6 @@ const Licensing = () => { Contact Information

If you have any questions or concerns about this licensing agreement, please contact us at Email: startconnecthub@gmail.com

-
); }; diff --git a/src/Pages/PrivacyPolicy.jsx b/src/Pages/PrivacyPolicy.jsx index 85ffaac..2742d7d 100644 --- a/src/Pages/PrivacyPolicy.jsx +++ b/src/Pages/PrivacyPolicy.jsx @@ -1,15 +1,25 @@ -import {React,useEffect} from 'react'; +import React, { useEffect, useState } from 'react'; import styled from 'styled-components'; + const PrivacyPolicy = () => { + const [lastUpdatedDate, setLastUpdatedDate] = useState(''); + useEffect(() => { window.scrollTo(0, 0); + + const currentDate = new Date(); + const options = { year: 'numeric', month: 'long', day: 'numeric' }; + const formattedDate = new Intl.DateTimeFormat('en-US', options).format(currentDate); + + setLastUpdatedDate(formattedDate); }, []); + return (

Privacy Policy

-

Last updated: May 19, 2024

+

Last updated: {lastUpdatedDate}

Welcome to StartConnect Hub! We are committed to protecting your personal information and your right to privacy. If you have any questions or concerns about our policy or our practices regarding your personal information, please contact us at startconnecthub@gmail.com.

@@ -66,16 +76,16 @@ const PolicyWrapper = styled.div` h1 { font-size: 2.5rem; + margin-bottom: 20px; margin-top: 80px; } -h2 { + h2 { text-align: center; font-weight: 600; display: flex; justify-content: left; margin-bottom: 15px; - padding: 0; } p { diff --git a/src/Pages/TermsAndConditions.jsx b/src/Pages/TermsAndConditions.jsx index fc93f0d..4c6489c 100644 --- a/src/Pages/TermsAndConditions.jsx +++ b/src/Pages/TermsAndConditions.jsx @@ -1,9 +1,17 @@ -import React, { useEffect } from 'react'; +import React, { useEffect, useState } from 'react'; import styled from 'styled-components'; const TermsAndConditions = () => { + const [lastUpdatedDate, setLastUpdatedDate] = useState(''); + useEffect(() => { window.scrollTo(0, 0); + + const currentDate = new Date(); + const options = { year: 'numeric', month: 'long', day: 'numeric' }; + const formattedDate = new Intl.DateTimeFormat('en-US', options).format(currentDate); + + setLastUpdatedDate(formattedDate); }, []); return ( @@ -11,7 +19,7 @@ const TermsAndConditions = () => {

Terms and Conditions

-

Last updated: May 22, 2024

+

Last updated: {lastUpdatedDate}

Welcome to StartConnect Hub! By using our platform, you agree to comply with and be bound by the following terms and conditions. Please review these terms carefully. If you do not agree to these terms, you should not use our platform.

@@ -55,6 +63,7 @@ const TermsWrapper = styled.div` h1 { font-size: 2.5rem; + margin-bottom: 20px; margin-top: 80px; } @@ -72,4 +81,3 @@ const TermsWrapper = styled.div` `; export default TermsAndConditions; -