Skip to content

Commit

Permalink
Spartan updates
Browse files Browse the repository at this point in the history
  • Loading branch information
Nandan Grover authored and Nandan Grover committed Mar 8, 2022
1 parent 85b2a1d commit 32be3d4
Show file tree
Hide file tree
Showing 13 changed files with 2,798 additions and 641 deletions.
Binary file modified .DS_Store
Binary file not shown.
4 changes: 2 additions & 2 deletions client/themes/themeSpartan_2/assets/css/orbit-1.css
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ p {
.sidebar-wrapper {
background: #42A8C0;
position: absolute;
right: 0;
left: 0;
width: 240px;
height: 100%;
min-height: 800px;
Expand Down Expand Up @@ -180,7 +180,7 @@ p {
.main-wrapper {
background: #fff;
padding: 60px;
padding-right: 300px;
padding-left: 280px;
}

.main-wrapper .section-title {
Expand Down
4 changes: 2 additions & 2 deletions client/themes/themeSpartan_2/assets/css/orbit-2.css
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ p {
.sidebar-wrapper {
background: #4CAC9D;
position: absolute;
right: 0;
left: 0;
width: 240px;
height: 100%;
min-height: 800px;
Expand Down Expand Up @@ -180,7 +180,7 @@ p {
.main-wrapper {
background: #fff;
padding: 60px;
padding-right: 300px;
padding-left: 280px;
}

.main-wrapper .section-title {
Expand Down
4 changes: 2 additions & 2 deletions client/themes/themeSpartan_2/assets/css/orbit-3.css
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ p {
.sidebar-wrapper {
background: #5BB66F;
position: absolute;
right: 0;
left: 0;
width: 240px;
height: 100%;
min-height: 800px;
Expand Down Expand Up @@ -180,7 +180,7 @@ p {
.main-wrapper {
background: #fff;
padding: 60px;
padding-right: 300px;
padding-left: 280px;
}

.main-wrapper .section-title {
Expand Down
4 changes: 2 additions & 2 deletions client/themes/themeSpartan_2/assets/css/orbit-4.css
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ p {
.sidebar-wrapper {
background: #A15277;
position: absolute;
right: 0;
left: 0;
width: 240px;
height: 100%;
min-height: 800px;
Expand Down Expand Up @@ -180,7 +180,7 @@ p {
.main-wrapper {
background: #fff;
padding: 60px;
padding-right: 300px;
padding-left: 280px;
}

.main-wrapper .section-title {
Expand Down
4 changes: 2 additions & 2 deletions client/themes/themeSpartan_2/assets/css/orbit-5.css
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ p {
.sidebar-wrapper {
background: #FDA246;
position: absolute;
right: 0;
left: 0;
width: 240px;
height: 100%;
min-height: 800px;
Expand Down Expand Up @@ -180,7 +180,7 @@ p {
.main-wrapper {
background: #fff;
padding: 60px;
padding-right: 300px;
padding-left: 280px;
}

.main-wrapper .section-title {
Expand Down
9 changes: 5 additions & 4 deletions client/themes/themeSpartan_2/assets/css/orbit-6.css
Original file line number Diff line number Diff line change
Expand Up @@ -46,15 +46,15 @@ p {
max-width: 960px;
margin: 0 auto;
position: relative;
-webkit-box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
/* -webkit-box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
-moz-box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1); */
}

.sidebar-wrapper {
background: #4B6A78;
position: absolute;
right: 0;
left: 0;
width: 240px;
height: 100%;
min-height: 800px;
Expand Down Expand Up @@ -180,8 +180,9 @@ p {
.main-wrapper {
background: #fff;
padding: 60px;
padding-right: 300px;
/* padding-right: 300px; */
font-size: 16px;
padding-left: 280px;
}

.main-wrapper .section-title {
Expand Down
10 changes: 5 additions & 5 deletions client/themes/themeSpartan_2/assets/scss/theme/base.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ body {
font-family: 'Roboto', sans-serif;
color: $text-color-secondary;
background: $smoky-white;
font-size: 14px;
font-size: 10px;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
Expand Down Expand Up @@ -36,15 +36,15 @@ p {
max-width: 960px;
margin: 0 auto;
position: relative;
@include box-shadow(0px 2px 4px rgba(0,0,0,0.1));
// @include box-shadow(0px 2px 4px rgba(0,0,0,0.1));
}

.sidebar-wrapper {
background: $theme-color;
position: absolute;
right: 0;
left: 0;
width: 240px;
height: 100%;
// height: 100%;
min-height: 800px;
color: #fff;
a {
Expand Down Expand Up @@ -156,7 +156,7 @@ p {
.main-wrapper {
background: #fff;
padding: 60px;
padding-right: 300px;
padding-left: 280px;
.section-title {
text-transform: uppercase;
font-size: 20px;
Expand Down
97 changes: 56 additions & 41 deletions client/themes/themeSpartan_2/themeSpartan_2.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@ class themeSpartan_2 {
const designation = document.getElementsByClassName("tagline")[0];
designation.innerHTML = this.config.designation;

const contactContainer = document.getElementsByClassName("contact-container")[0];
const contactContainer =
document.getElementsByClassName("contact-container")[0];
contactContainer.style.paddingTop = "20px";

const phone = document
Expand Down Expand Up @@ -88,6 +89,18 @@ class themeSpartan_2 {
github.remove();
}

const body = document.body;

if (this.config.leftSidebarFontSize) {
body.style.fontSize = this.config.leftSidebarFontSize;
}

const mainWrapper = document.getElementsByClassName("main-wrapper")[0];;

if (this.config.rightSidebarFontSize) {
mainWrapper.style.fontSize = this.config.rightSidebarFontSize;
}

const education = document.getElementsByClassName("education-container")[0];
education.style.paddingBottom = "35px";
const eduTitle = education.getElementsByTagName("h2")[0];
Expand Down Expand Up @@ -242,53 +255,55 @@ class themeSpartan_2 {
});

const projects = document.getElementsByClassName("projects-section")[0];
const projectTitle = projects.getElementsByTagName("h2")[0];
let projSpan = projectTitle.firstChild;
projectTitle.innerHTML = this.config.projectTitle;
projectTitle.prepend(projSpan);
this.config.projects.forEach((project, index) => {
this.createElement({
className: "item",
id: `projItem-${index}`,
type: "div",
appendTo: "projects-section",
});
if (!project.link) {
if (this.config.projectTitle) {
const projectTitle = projects.getElementsByTagName("h2")[0];
let projSpan = projectTitle.firstChild;
projectTitle.innerHTML = this.config.projectTitle;
projectTitle.prepend(projSpan);
this.config.projects.forEach((project, index) => {
this.createElement({
className: "project-title",
id: `projTitle-${index}`,
type: "span",
appendTo: `projItem-${index}`,
});
this.createElement({
type: "span",
appendTo: `projTitle-${index}`,
html: project.title,
className: "item",
id: `projItem-${index}`,
type: "div",
appendTo: "projects-section",
});
} else {
if (!project.link) {
this.createElement({
className: "project-title",
id: `projTitle-${index}`,
type: "span",
appendTo: `projItem-${index}`,
});
this.createElement({
type: "span",
appendTo: `projTitle-${index}`,
html: project.title,
});
} else {
this.createElement({
className: "project-title",
id: `projTitle-${index}`,
type: "span",
appendTo: `projItem-${index}`,
});
this.createElement({
type: "a",
appendTo: `projTitle-${index}`,
attr: [
{ key: "href", value: project.link },
{ key: "target", value: "_blank" },
],
html: project.title,
});
}
this.createElement({
className: "project-title",
id: `projTitle-${index}`,
className: "project-tagline",
html: ` - ${project.detail}`,
type: "span",
appendTo: `projItem-${index}`,
});
this.createElement({
type: "a",
appendTo: `projTitle-${index}`,
attr: [
{ key: "href", value: project.link },
{ key: "target", value: "_blank" },
],
html: project.title,
});
}
this.createElement({
className: "project-tagline",
html: ` - ${project.detail}`,
type: "span",
appendTo: `projItem-${index}`,
});
});
}

const achievements = document.getElementById("achievements-section");

Expand Down
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ app.use(express.urlencoded({

// Allow cross origin request
// app.use(cors());

console.log(config.db, 'Hello');
mongoose
.connect(config.db, {
useNewUrlParser: true,
Expand All @@ -38,6 +38,6 @@ mongoose
res.sendFile(path.resolve(__dirname, "client", "index.html"));
});

const PORT = process.env.PORT || 5000;
const PORT = process.env.PORT || 8080;

app.listen(PORT, () => console.log(`Now listening to port ${PORT}`))
Loading

0 comments on commit 32be3d4

Please sign in to comment.