Skip to content

Commit

Permalink
Merge pull request #327 from MastanSayyad/main
Browse files Browse the repository at this point in the history
Added Licensing Page Reflecting MIT License to Website Footer
  • Loading branch information
Akshatchaube01 authored Jun 23, 2024
2 parents 1db26df + 250aeac commit e490422
Show file tree
Hide file tree
Showing 4 changed files with 90 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/components/Footer.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,11 @@ const Footer = () => {
Privacy Policy
</a>
</li>
<li style={footerStyle}>
<a style={footerStyle} href="/licensing" target="_blank" rel="noopener noreferrer">
Licensing
</a>
</li>
<li style={footerStyle}>
<a style={footerStyle} href="/terms-and-conditions" target="_blank" rel="noopener noreferrer">
Terms & Conditions
Expand Down
33 changes: 33 additions & 0 deletions src/components/licensing.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
.licensing {
padding: 20px;
max-width: 900px;
margin: 0 auto;
font-family: Arial, sans-serif;
line-height: 1.6;
}

.licensing h1 {
border-bottom: 1px solid var(--text-color);
padding-bottom: 10px;
margin-bottom: 10px;
justify-content: left;
font-size: 42px;
color: #fff var(--text-color);
}

.licensing p {
margin-bottom: 15px;
}

.licensing h2 {
font-size: 1.5em;
margin: auto;

}


.licensing pre {
background-color: auto;
border-radius: 5px;
overflow-x: auto;
}
50 changes: 50 additions & 0 deletions src/components/licensing.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
import React from 'react'
import './licensing.css'
import Footer from './Footer';


const Licensing = () => {

return (
<>
<div className="licensing">
<h1>Licensing</h1>
<p>Welcome to Timewarp. The project 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.</p>

<h2>MIT License</h2>
<p>The MIT License is a permissive free software license originating at the Massachusetts Institute of Technology (MIT). Below is the full text of the MIT License:</p>
<pre>
{`
Copyright (c) 2024 Akshat Chaube
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.`}
</pre>

<h2>Usage</h2>
<p>You are free to use our software in your own projects, whether they are commercial or non-commercial. You can modify the code to suit your needs, distribute it to others, and even sell products based on our software, as long as you include the original copyright notice and this permission notice in any substantial portions of the software.</p>
<h2>Contributions</h2>
<p>We welcome contributions from the community! If you have improvements or fixes, feel free to submit a pull request on our GitHub repository. By contributing, you agree that your contributions will be licensed under the MIT License as well.</p>
<h2>Contact Us</h2>
<p>If you have any questions about this License, please contact us at: Email: <a href="mailto:[email protected]">[email protected]</a></p>
</div>
<Footer />
</>
);
};

export default Licensing;
2 changes: 2 additions & 0 deletions src/main.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import Models from "./components/Models";
import Custom404 from "./components/Custom404";
import "./main.css";
import Privacy from "./components/Privacy";
import Licensing from "./components/licensing.jsx";
import Terms from "./components/Terms";
import ChatbotComponent from "./components/Chatbot"; // Import Chatbot
import Preloader from "./components/Preloader";
Expand Down Expand Up @@ -49,6 +50,7 @@ ReactDOM.createRoot(document.getElementById("root")).render(
<Route exact path='/ContactUs' element={<ContactUs />} />
<Route exact path='/Models' element={<Models />} />
<Route exact path='/privacy-policy' element={<Privacy />} />
<Route exact path='/licensing' element={<Licensing />} />
<Route exact path='/terms-and-conditions' element={<Terms />} />
<Route path='*' element={<Custom404 />} />
</Routes>
Expand Down

0 comments on commit e490422

Please sign in to comment.