Added css changes, .gitignore and removed redundant files
This commit is contained in:
parent
338d667325
commit
73e316c6c3
24
frontend/.gitignore
vendored
Normal file
24
frontend/.gitignore
vendored
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
# Logs
|
||||||
|
logs
|
||||||
|
*.log
|
||||||
|
npm-debug.log*
|
||||||
|
yarn-debug.log*
|
||||||
|
yarn-error.log*
|
||||||
|
pnpm-debug.log*
|
||||||
|
lerna-debug.log*
|
||||||
|
|
||||||
|
node_modules
|
||||||
|
dist
|
||||||
|
dist-ssr
|
||||||
|
*.local
|
||||||
|
|
||||||
|
# Editor directories and files
|
||||||
|
.vscode/*
|
||||||
|
!.vscode/extensions.json
|
||||||
|
.idea
|
||||||
|
.DS_Store
|
||||||
|
*.suo
|
||||||
|
*.ntvs*
|
||||||
|
*.njsproj
|
||||||
|
*.sln
|
||||||
|
*.sw?
|
||||||
@ -10,13 +10,11 @@
|
|||||||
"navBar": {
|
"navBar": {
|
||||||
"navBarTheme": "navbar-dark",
|
"navBarTheme": "navbar-dark",
|
||||||
"background": "bg-secondary",
|
"background": "bg-secondary",
|
||||||
"buttonColor": "light",
|
"buttonColor": "light"
|
||||||
"shadow": "-webkit-box-shadow: 1px 28px 20px -22px rgba(0,0,0,0.75); -moz-box-shadow: 1px 28px 20px -22px rgba(0,0,0,0.75); box-shadow: 1px 28px 20px -22px rgba(0,0,0,0.75);"
|
|
||||||
},
|
},
|
||||||
"footer": {
|
"footer": {
|
||||||
"background": "bg-secondary",
|
"background": "bg-secondary",
|
||||||
"text": "bg-white",
|
"text": "bg-white"
|
||||||
"shadow": "1px -29px 20px -22px rgba(0,0,0,0.75)"
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"lightTheme":{
|
"lightTheme":{
|
||||||
@ -29,14 +27,12 @@
|
|||||||
"categoryNavigator": "dark",
|
"categoryNavigator": "dark",
|
||||||
"navBar": {
|
"navBar": {
|
||||||
"navBarTheme": "navbar-light",
|
"navBarTheme": "navbar-light",
|
||||||
"background": "bg-primary",
|
"background": "bg-secondary",
|
||||||
"buttonColor": "light",
|
"buttonColor": "light"
|
||||||
"shadow": "-webkit-box-shadow: 1px 28px 20px -22px rgba(0,0,0,0.75); -moz-box-shadow: 1px 28px 20px -22px rgba(0,0,0,0.75); box-shadow: 1px 28px 20px -22px rgba(0,0,0,0.75);"
|
|
||||||
},
|
},
|
||||||
"footer": {
|
"footer": {
|
||||||
"background": "bg-primary",
|
"background": "bg-secondary",
|
||||||
"text": "bg-white",
|
"text": "bg-white"
|
||||||
"shadow": "1px -29px 20px -22px rgba(0,0,0,0.75)"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -1,14 +0,0 @@
|
|||||||
import React from "react";
|
|
||||||
function ToggleButton(props){
|
|
||||||
return (
|
|
||||||
<>
|
|
||||||
<label className="custom-toggle" onClick={props.themeSwitcher}>
|
|
||||||
<input type="checkbox" id={props.Id} onChange={props.ThemeSwitcher}/>
|
|
||||||
<span className="custom-toggle-slider rounded-circle" />
|
|
||||||
</label>
|
|
||||||
<span className="clearfix" />
|
|
||||||
</>
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
export default ToggleButton;
|
|
||||||
@ -53,7 +53,7 @@ function BlogList(props) {
|
|||||||
<Container fluid className={`p-0 ${ThemeConfig[GlobalTheme].background}`}>
|
<Container fluid className={`p-0 ${ThemeConfig[GlobalTheme].background}`}>
|
||||||
<CategoryBar currentPage={categoryID} GlobalTheme={GlobalTheme} ThemeConfig={ThemeConfig}/>
|
<CategoryBar currentPage={categoryID} GlobalTheme={GlobalTheme} ThemeConfig={ThemeConfig}/>
|
||||||
<Row className="justify-content-center align-items-center">
|
<Row className="justify-content-center align-items-center">
|
||||||
<Col className="d-flex flex-column align-items-center min-vh-100">
|
<Col className="d-flex flex-column align-items-center min-vh-83">
|
||||||
<div className="w-100">
|
<div className="w-100">
|
||||||
<Card className={`my-2 ${ThemeConfig[GlobalTheme].background}`} style={{"width": "100%"}}>
|
<Card className={`my-2 ${ThemeConfig[GlobalTheme].background}`} style={{"width": "100%"}}>
|
||||||
<CardBody>
|
<CardBody>
|
||||||
|
|||||||
@ -24,7 +24,7 @@ function Blog(props) {
|
|||||||
|
|
||||||
if (GlobalTheme && ThemeConfig) {
|
if (GlobalTheme && ThemeConfig) {
|
||||||
return (
|
return (
|
||||||
<Container fluid className={`min-vh-100 ${ThemeConfig[GlobalTheme].background}`}>
|
<Container fluid className={`min-vh-83 ${ThemeConfig[GlobalTheme].background}`}>
|
||||||
<CategoryBar currentPage={blogData.parentCategory} GlobalTheme={GlobalTheme} ThemeConfig={ThemeConfig}/>
|
<CategoryBar currentPage={blogData.parentCategory} GlobalTheme={GlobalTheme} ThemeConfig={ThemeConfig}/>
|
||||||
<Row className="mb-4">
|
<Row className="mb-4">
|
||||||
<Col className="p-0">
|
<Col className="p-0">
|
||||||
|
|||||||
@ -35,7 +35,7 @@ function Blogs(props) {
|
|||||||
return (
|
return (
|
||||||
<Container fluid className={`p-0 ${ThemeConfig[GlobalTheme].background}`}>
|
<Container fluid className={`p-0 ${ThemeConfig[GlobalTheme].background}`}>
|
||||||
<Row className="justify-content-center align-items-center">
|
<Row className="justify-content-center align-items-center">
|
||||||
<Col className="d-flex flex-column align-items-center min-vh-100">
|
<Col className="d-flex flex-column align-items-center min-vh-83">
|
||||||
{/* Top Section - Categories */}
|
{/* Top Section - Categories */}
|
||||||
<div className="w-100">
|
<div className="w-100">
|
||||||
<Card className={`my-2 ${ThemeConfig[GlobalTheme].background}`} style={{"width": "100%"}}>
|
<Card className={`my-2 ${ThemeConfig[GlobalTheme].background}`} style={{"width": "100%"}}>
|
||||||
@ -51,6 +51,7 @@ function Blogs(props) {
|
|||||||
{categoryMetadata.length > 0 ?
|
{categoryMetadata.length > 0 ?
|
||||||
categoryMetadata.map((item, index) => (
|
categoryMetadata.map((item, index) => (
|
||||||
<CardListViewer
|
<CardListViewer
|
||||||
|
key={item.id}
|
||||||
totalItems={categoryMetadata.length}
|
totalItems={categoryMetadata.length}
|
||||||
cardType={"longCard"}
|
cardType={"longCard"}
|
||||||
resourceType={"categories"}
|
resourceType={"categories"}
|
||||||
|
|||||||
@ -8,7 +8,7 @@ function HomePage(props) {
|
|||||||
if (GlobalTheme && ThemeConfig)
|
if (GlobalTheme && ThemeConfig)
|
||||||
return (
|
return (
|
||||||
<Container fluid className={`p-0 ${ThemeConfig[GlobalTheme].background}`}>
|
<Container fluid className={`p-0 ${ThemeConfig[GlobalTheme].background}`}>
|
||||||
<div className="d-flex flex-column justify-content-center align-items-center vh-100">
|
<div className="d-flex flex-column justify-content-center align-items-center min-vh-83">
|
||||||
{UserData.profilePhoto !== "" ? <img style={{ width: '180px', height: '180px', objectFit: 'cover' }} className="rounded-circle" src={MediaService.getMedia(UserData.profilePhoto)} /> : ""}
|
{UserData.profilePhoto !== "" ? <img style={{ width: '180px', height: '180px', objectFit: 'cover' }} className="rounded-circle" src={MediaService.getMedia(UserData.profilePhoto)} /> : ""}
|
||||||
<h3 className={`${ThemeConfig[GlobalTheme].textColor}`}>
|
<h3 className={`${ThemeConfig[GlobalTheme].textColor}`}>
|
||||||
<center>
|
<center>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user