Skip to content

Commit

Permalink
Merge pull request #151 from aapJoysakoi/about
Browse files Browse the repository at this point in the history
created an about page.
  • Loading branch information
Avdhesh-Varshney authored Jun 25, 2024
2 parents 546adb2 + e6bd943 commit a3e14b1
Show file tree
Hide file tree
Showing 2 changed files with 72 additions and 4 deletions.
50 changes: 50 additions & 0 deletions src/css/About.css
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;
}
26 changes: 22 additions & 4 deletions src/pages/About.jsx
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;

0 comments on commit a3e14b1

Please sign in to comment.