Skip to content

Commit

Permalink
Added Social media icons (#193)
Browse files Browse the repository at this point in the history
* added-icons-navbar

* Update custom.css

* added-social-icons

* Update docusaurus.config.js

* added-updated-icons
  • Loading branch information
shreyyq authored Jun 12, 2024
1 parent 0b42f8b commit ee6e723
Show file tree
Hide file tree
Showing 5 changed files with 156 additions and 16 deletions.
11 changes: 9 additions & 2 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,13 @@ const config = {
"https://github.com/subhadipbhowmik/30-Days-Of-CPP/tree/main/",
},
blog: {
blogDescription: 'Read blog post about C++ programming language',
blogDescription: "Read blog post about C++ programming language",
showReadingTime: true,
editUrl:
"https://github.com/subhadipbhowmik/30-Days-Of-CPP/tree/main/",
},
theme: {
customCss: "./src/css/custom.css",
customCss: require.resolve("./src/css/custom.css"),
},
pages: {
path: "./src/pages",
Expand All @@ -49,6 +49,13 @@ const config = {
],
],

stylesheets: [
{
href: "https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css",
type: "text/css",
},
],

themeConfig:
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
({
Expand Down
63 changes: 63 additions & 0 deletions package-lock.json

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

4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@
"@docusaurus/core": "^3.3.2",
"@docusaurus/preset-classic": "^3.3.2",
"@docusaurus/theme-search-algolia": "^3.3.2",
"@fortawesome/fontawesome-free": "^6.5.2",
"@fortawesome/fontawesome-svg-core": "^6.5.2",
"@fortawesome/free-brands-svg-icons": "^6.5.2",
"@fortawesome/react-fontawesome": "^0.2.2",
"@mdx-js/react": "^3.0.0",
"clsx": "^2.0.0",
"dotenv": "^16.4.5",
Expand Down
88 changes: 76 additions & 12 deletions src/css/custom.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
@import url("~@fortawesome/fontawesome-free/css/all.min.css");

:root {
--ifm-color-primary: #00bfa6;
--ifm-color-primary-dark: #29784c;
Expand All @@ -15,8 +17,8 @@
--input-background: #ffffff;
--input-border: #d1d5db;
--input-focus-border: #00bfa6;
--button-background: linear-gradient(45deg, #4CAF50, #2E8B57);
--button-hover-background: linear-gradient(45deg, #2E8B57, #4CAF50);
--button-background: linear-gradient(45deg, #4caf50, #2e8b57);
--button-hover-background: linear-gradient(45deg, #2e8b57, #4caf50);
--box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
--box-shadow-hover: 0 6px 10px rgba(0, 0, 0, 0.15);
--ifm-font-color-base-inverse-light: #b4f9f0; /* default light mode color */
Expand Down Expand Up @@ -139,8 +141,8 @@ h1.center {
box-shadow: 0 0 5px var(--input-focus-border);
}

.form-container btn{
background: linear-gradient(45deg, #4CAF50, #2E8B57);
.form-container btn {
background: linear-gradient(45deg, #4caf50, #2e8b57);
color: #f9f9f9;
cursor: pointer;
transition: all 0.3s ease;
Expand All @@ -150,7 +152,7 @@ h1.center {
}

.form-container btn:hover {
background: linear-gradient(45deg, #2E8B57, #4CAF50);
background: linear-gradient(45deg, #2e8b57, #4caf50);
}

.form-container button {
Expand Down Expand Up @@ -189,25 +191,87 @@ body {
}

/* Custom scrollbar styles for the entire page */
html, body {
html,
body {
scrollbar-width: thin; /* For Firefox */
scrollbar-color: linear-gradient(180deg, #ff7f50, #ff6347) #f1f1f1; /* For Firefox */
}

/* Webkit-based browsers (Chrome, Safari) */
html::-webkit-scrollbar, body::-webkit-scrollbar {
html::-webkit-scrollbar,
body::-webkit-scrollbar {
width: 12px; /* Width of the entire scrollbar */
}

html::-webkit-scrollbar-track, body::-webkit-scrollbar-track {
html::-webkit-scrollbar-track,
body::-webkit-scrollbar-track {
background: #f1f1f1; /* Color of the track */
}

html::-webkit-scrollbar-thumb, body::-webkit-scrollbar-thumb {
background: linear-gradient(180deg, #ff7f50, #ff6347); /* Linear gradient color for the thumb */
html::-webkit-scrollbar-thumb,
body::-webkit-scrollbar-thumb {
background: linear-gradient(
180deg,
#ff7f50,
#ff6347
); /* Linear gradient color for the thumb */
border-radius: 6px; /* Rounded corners for the thumb */
}

html::-webkit-scrollbar-thumb:hover, body::-webkit-scrollbar-thumb:hover {
background: linear-gradient(180deg, #ff6347, #ff4500); /* Darker gradient on hover */
html::-webkit-scrollbar-thumb:hover,
body::-webkit-scrollbar-thumb:hover {
background: linear-gradient(
180deg,
#ff6347,
#ff4500
); /* Darker gradient on hover */
}

.navbar__link[href*="https://github.com/subhadipbhowmik/30-Days-Of-CPP/"]::before
{
content: "\f09b"; /* GitHub icon */
font-family: "Font Awesome 5 Brands";
margin-right: 0.5em;
}

.footer__link-item[href*="https://www.facebook.com/"]::before
{
content: "\f09a"; /* Facebook icon */
font-family: "Font Awesome 5 Brands";
margin-right: 0.5em;
}

.footer__link-item[href*="https://twitter.com/"]::before
{
content: "\f099"; /* Twitter icon */
font-family: "Font Awesome 5 Brands";
margin-right: 0.5em;
}

.footer__link-item[href*="https://discord.com/"]::before
{
content: "\f392"; /* Discord icon */
font-family: "Font Awesome 5 Brands";
margin-right: 0.5em;
}

.footer__link-item[href*="https://www.linkedin.com/"]::before
{
content: "\f08c"; /* LinkedIn icon */
font-family: "Font Awesome 5 Brands";
margin-right: 0.5em;
}

.footer__link-item[href*="https://github.com/"]::before
{
content: "\f09b";
font-family: "Font Awesome 5 Brands";
margin-right: 0.5em;
}

.footer__link-item[href*="https://github.com/subhadipbhowmik/30-Days-Of-CPP/"]::before
{
content: "\f09b"; /* GitHub icon */
font-family: "Font Awesome 5 Brands";
margin-right: 0.5em;
}
6 changes: 4 additions & 2 deletions src/pages/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ function HomepageHeader() {
<Heading as="h1" className={clsx("hero__title", styles.main_title)}>
{siteConfig.title}
</Heading>
<p className={clsx("hero__subtitle",styles.sub_title)}>{siteConfig.tagline}</p>
<p className={clsx("hero__subtitle", styles.sub_title)}>
{siteConfig.tagline}
</p>
<div className={styles.buttons}>
<Link
className="button button--secondary button--lg"
Expand All @@ -36,7 +38,7 @@ export default function Home() {
description="30 days of CPP programming challenge is a step-by-step guide to learn CPP programming language in 30 days. Master the fundamental concepts of CPP Programming easily."
>
<HomepageHeader />
<main style={{ position: 'relative' }}>
<main style={{ position: "relative" }}>
<HomepageFeatures />
<Chatbot />
</main>
Expand Down

0 comments on commit ee6e723

Please sign in to comment.