Skip to content

Commit

Permalink
Merge pull request #190 from shivamm-verma/chanakya-niti-shivamm-verma
Browse files Browse the repository at this point in the history
Fast Load Chanakya image & make Home page and About page appealing in UI
  • Loading branch information
Avdhesh-Varshney authored Jul 7, 2024
2 parents f2c5f3b + de806d2 commit 8e2f066
Show file tree
Hide file tree
Showing 15 changed files with 66 additions and 42 deletions.
6 changes: 3 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file added public/Chanakya_artistic_depiction.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes.
2 changes: 1 addition & 1 deletion src/components/shared/Footer.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const Footer = () => {
return (
<footer className="footer">
<div className="mx-auto px-4 py-2">
<p>&copy; 2024 Chanakya Niti. All rights reserved.</p>
<center><p>&copy; 2024 Chanakya Niti. All rights reserved.</p></center>
</div>
</footer>
);
Expand Down
13 changes: 9 additions & 4 deletions src/css/About.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,19 @@
padding: 20px;
max-width: 800px;
margin: 0 auto;
background-color: #f9f9f9;
background-color: rgba(245, 245, 220, 0.685);
border-radius: 8px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.dark .about-container{
background-color: black;
border: 2px solid white ;
color: white ;
background-color: rgba(245, 245, 220, 0.086);
border: 2px solid rgba(255, 255, 255, 0.269) ;
color: white ;
}
.dark .about-container:hover{
background-color: rgba(245, 245, 220, 0.046);
transition: 0.35s ease-out;

}
.about-container h1 {
text-align: center;
Expand Down
15 changes: 8 additions & 7 deletions src/css/Card.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,17 @@
width: 300px;
border-radius: 12px;
overflow: hidden;
box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
box-shadow: 0 8px 32px 0 rgba(255, 255, 255, 0.128);
backdrop-filter: blur(2px);
-webkit-backdrop-filter: blur(2px);
background: rgba(10, 10, 10, 0.55);
background: rgba(54, 54, 54, 0.741);
border: 1px solid rgba(85, 85, 85, 0.18);
transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.glass-card:hover {
transform: translateY(-5px);
box-shadow: 0 15px 30px rgba(31, 38, 135, 0.5);
box-shadow: 0 20px 30px rgba(0, 0, 0, 0.451);
transition: 0.1s;
}

hr.solid {
Expand All @@ -35,7 +35,8 @@ hr.solid {
}

.glass-card:hover .glass-card-image {
transform: scale(1.1);
transform: scale(1.05);
transition: 0.2s;
}

.glass-card-title {
Expand Down Expand Up @@ -72,7 +73,7 @@ hr.solid {
}

.glass-card-button:hover {
background: none;
background-color: rgba(255, 255, 255, 0.747);
color: rgba(135, 67, 67, 0.9);
border: 1px solid rgb(135,67,67);
transform: translateX(10px);
}
6 changes: 3 additions & 3 deletions src/css/Contributor.css
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,18 @@
background: rgba(255, 255, 255, 0.15);
backdrop-filter: blur(10px);
border: 1px solid rgba(255, 255, 255, 0.2);
box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
box-shadow: 0 8px 32px 0 rgba(52, 91, 57, 0.328) ;
transition: all 0.3s ease;
}
.dark .card{
background-color: black;
box-shadow: 0px 0px 5px white;
box-shadow: 0px 0px 5px rgba(255, 255, 255, 0.454);
color: white ;

}
.card:hover {
transform: translateY(-5px);
box-shadow: 0 15px 30px rgba(31, 38, 135, 0.5);
box-shadow: 0 15px 30px rgba(92, 92, 92, 0.674);
}

.card-img-top {
Expand Down
47 changes: 30 additions & 17 deletions src/css/Home.css
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@
align-items: center;
justify-content: center;
width: 100%;
background-color: rgba(255, 255, 255, 0.035);
border-radius: 15px;
/* flex sm:flex-row flex-col item-center justify-center w-full p-4 */
}
.img-container {
Expand Down Expand Up @@ -114,8 +116,8 @@
gap: 20px;
padding: 20px;
border-radius: 20px;
border: 1px black solid;
background-color: #eef1ff;
border: 2px rgba(0, 0, 0, 0.302) solid;
background-color: rgba(52, 91, 57, 0.328) ;
}

.feat-card-2{
Expand All @@ -127,17 +129,22 @@
gap: 20px;
padding: 20px;
border-radius: 20px;
border: 1px black solid;
background-color: #eef1ff;
border: 2px rgba(0, 0, 0, 0.302) solid;
background-color: rgba(52, 91, 57, 0.328);
}

.feat-card:hover {
transform: translateY(-10px);
box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
box-shadow: 0 8px 26px rgba(0, 0, 0, 0.2);
transition: 0.2s;
}

.feat-card:hover img {
transform: scale(1.05);
transition: 0.5s;
}
.feat-card:not(:hover) img {
transform: scale(1);
transition: 0.5s;
}

.feat-card:hover .card-line {
Expand Down Expand Up @@ -185,7 +192,6 @@
}

.feat-card:hover, .feat-card-2:hover {
transform: translateY(-10px);
box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

Expand Down Expand Up @@ -277,8 +283,8 @@
gap: 20px;
padding: 20px;
border-radius: 20px;
border: 1px black solid;
background-color: #eef1ff;
/* border: 1px black solid;
background-color: #eef1ff; */
}

.feat-card-2{
Expand All @@ -290,8 +296,8 @@
gap: 20px;
padding: 20px;
border-radius: 20px;
border: 1px black solid;
background-color: #eef1ff;
/* border: 1px black solid;
background-color: #eef1ff; */
}
}

Expand Down Expand Up @@ -321,19 +327,26 @@
}
}
.dark .feat-3{
background-color: black;
background-color: transparent;
color: white;
}
.dark .feat-card-2{
background-color: black;
box-shadow: 0px 0px 10px white;
border: solid white 2px;
background-color: #353535 ;
}
.dark .feat-card-2:hover{
box-shadow: 0px 0px 40px rgba(255, 255, 255, 0.152);
transition: 0.15s;
}
.dark .feat-card{
background-color: black ;
box-shadow: 0px 0px 10px white;
background-color: #353535 ;
/* box-shadow: 0px 0px 10px white; */
color: white;
}
.dark .feat-card:hover{
box-shadow: 0px 0px 50px rgba(255, 255, 255, 0.200);
transition: 0.15s;

}
.mode{
display: flex;
justify-content: center;
Expand Down
6 changes: 5 additions & 1 deletion src/index.css
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
*{
cursor: url('/src/assets/CURSOR1.png'),auto;
}
body{
background-color: rgba(228, 193, 129, 0.272);
}
.dark {
background-color: black;
background-color: #121212;
color: white;
transition: 0.25s;
}
3 changes: 2 additions & 1 deletion src/pages/About.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ const About = () => {
<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" />
{/* <img src="https://upload.wikimedia.org/wikipedia/commons/c/cd/Chanakya_artistic_depiction.jpg" alt="Chanakya" className="about-image" /> */}
<img src="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>
Expand Down
2 changes: 1 addition & 1 deletion src/pages/resources/Audio.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const Audio = () => {
return (
<div>
<Card
imgSrc="/src/assets/image.webp"
imgSrc="/image.webp"
title="Chanakya Niti"
description="Hello World"
path="/resources/audio/chanakya"
Expand Down
2 changes: 1 addition & 1 deletion src/pages/resources/Book.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const Book = () => {
return (
<div>
<Card
imgSrc="/src/assets/image.webp"
imgSrc="/image.webp"
title="Chanakya Niti"
description="Hello World"
path="/resources/book/chanakya"
Expand Down
2 changes: 1 addition & 1 deletion src/pages/resources/News.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const News = () => {
return (
<div>
<Card
imgSrc="/src/assets/image.webp"
imgSrc="/image.webp"
title="Chanakya Niti"
description="Hello World"
path="/resources/news/chanakya"
Expand Down
2 changes: 1 addition & 1 deletion src/pages/resources/Quiz.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import Card from '../../components/shared/Card';
const Quiz = () => {
return (
<Card
imgSrc="/src/assets/image.webp"
imgSrc="/image.webp"
title="Chanakya Niti"
description="Hello World"
path="/resources/quiz/chanakya"
Expand Down
2 changes: 1 addition & 1 deletion src/pages/resources/Video.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const Video = () => {
return (
<div>
<Card
imgSrc="/src/assets/image.webp"
imgSrc="/image.webp"
title="Chanakya Niti"
description="Hello World"
path="/resources/video/chanakya"
Expand Down

0 comments on commit 8e2f066

Please sign in to comment.