-
Notifications
You must be signed in to change notification settings - Fork 68
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'Avdhesh-Varshney:main' into main
- Loading branch information
Showing
11 changed files
with
252 additions
and
15 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
/* src/pages/About.css */ | ||
.about-container { | ||
padding: 20px; | ||
max-width: 800px; | ||
margin: 0 auto; | ||
background-color: #f9f9f9; | ||
border-radius: 8px; | ||
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); | ||
} | ||
|
||
.about-container h1 { | ||
text-align: center; | ||
color: #874343; | ||
font-family: 'Arial', sans-serif; | ||
} | ||
|
||
.about-content { | ||
display: flex; | ||
flex-direction: column; | ||
align-items: center; | ||
} | ||
|
||
.about-image { | ||
max-width: 100%; | ||
height: auto; | ||
border-radius: 8px; | ||
margin-bottom: 20px; | ||
} | ||
|
||
.about-text { | ||
text-align: justify; | ||
color: #090909; | ||
font-family: 'Georgia', serif; | ||
font-size: x-large; | ||
} | ||
|
||
.about-text p { | ||
margin-bottom: 15px; | ||
line-height: 1.6; | ||
} | ||
|
||
.about-text ul { | ||
list-style-type: disc; | ||
padding-left: 20px; | ||
} | ||
|
||
.about-text ul li { | ||
margin-bottom: 10px; | ||
color: #780d0d; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
*{ | ||
cursor: url('/src/assets/CURSOR1.png'),auto; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,27 @@ | ||
import React from 'react' | ||
// src/pages/About.jsx | ||
import React from 'react'; | ||
import '../css/About.css'; | ||
|
||
const About = () => { | ||
return ( | ||
<div>About</div> | ||
) | ||
} | ||
<div className="about-container"> | ||
<h1> Aacharya Chanakya</h1> | ||
<div className="about-content"> | ||
<img src="https://upload.wikimedia.org/wikipedia/commons/c/cd/Chanakya_artistic_depiction.jpg" alt="Chanakya" className="about-image" /> | ||
<div className="about-text"> | ||
<p>Chanakya, also known as Kautilya or Vishnugupta, was an ancient Indian teacher, philosopher, economist, jurist, and royal advisor. He is traditionally identified as the author of the ancient Indian political treatise, the Arthashastra.</p> | ||
<p>Born in 350 BCE in India, Chanakya played a crucial role in the establishment of the Maurya Empire. He was the chief advisor to both Emperor Chandragupta and his son, Bindusara.</p> | ||
<p>Chanakya's work is considered pioneering in the fields of political science and economics. His strategies and principles are still studied and revered in modern times.</p> | ||
<p>His notable works include:</p> | ||
<ul> | ||
<li><b>Arthashastra:</b> A treatise on statecraft, economic policy, and military strategy.</li> | ||
<li><b>Chanakya Niti:</b> A collection of aphorisms offering guidance on various aspects of life.</li> | ||
</ul> | ||
<p>Chanakya's wisdom and teachings continue to influence and inspire leaders and scholars around the world.</p> | ||
</div> | ||
</div> | ||
</div> | ||
); | ||
}; | ||
|
||
export default About; |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import React from 'react' | ||
import { Link } from 'react-router-dom'; | ||
|
||
function ContributorCard(props) { | ||
const { name, img } = props; | ||
return ( | ||
<> | ||
|
||
|
||
<div className="card mx-2 my-2" style={{width:"18rem"}}> | ||
<img src={img} className="card-img-top" alt="..."/> | ||
<div className="card-body "> | ||
<h5 className="card-title">{name}</h5> | ||
<Link to="/contributor/details" className="btn btn-primary">Get Details</Link> | ||
</div> | ||
</div> | ||
</> | ||
) | ||
} | ||
|
||
export default ContributorCard |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import React from 'react' | ||
|
||
function ContributorDetail() { | ||
return ( | ||
<div className=''> | ||
Contributor Detail Page | ||
</div> | ||
) | ||
} | ||
|
||
export default ContributorDetail |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
import React from 'react' | ||
import { useEffect, useState } from 'react' | ||
import axios from 'axios' | ||
import ContributorCard from './ContributorCard' | ||
|
||
const Contributors = () => { | ||
|
||
const [data, setdata] = useState([]) | ||
useEffect(() => { | ||
getContributor(); | ||
}, []) | ||
|
||
|
||
const getContributor = async () => { | ||
await axios.get('https://api.github.com/repos/Avdhesh-Varshney/chanakya-niti/contributors') | ||
.then(function (response) { | ||
setdata(response.data); | ||
// console.log(response.data); | ||
}) | ||
.catch(function (error) { | ||
console.log(error); | ||
}) | ||
} | ||
|
||
return ( | ||
<> | ||
<div className='d-flex flex-column contribution' style={{ overflowX: "hidden" }}> | ||
<div className="fs-3" style={{fontWeight:"500"}}> | ||
Our Contributors | ||
</div> | ||
<div className='d-flex flex-wrap justify-content-evenly'> | ||
|
||
{ | ||
data.map((element) => { | ||
return <div key={data.indexOf(element)}> | ||
<ContributorCard name={element.login} img={element.avatar_url} /> | ||
</div> | ||
}) | ||
} | ||
</div> | ||
|
||
</div> | ||
</> | ||
) | ||
} | ||
|
||
export default Contributors; | ||
|