diff --git a/netlify.toml b/netlify.toml
new file mode 100644
index 00000000..86e5e711
--- /dev/null
+++ b/netlify.toml
@@ -0,0 +1,4 @@
+[build]
+ base = "web/"
+ command = "yarn run build"
+ publish = "public"
\ No newline at end of file
diff --git a/web/src/components/Footer.js b/web/src/components/Footer.js
index 53fde25b..81001eba 100644
--- a/web/src/components/Footer.js
+++ b/web/src/components/Footer.js
@@ -166,7 +166,7 @@ const Footer = () => (
diff --git a/web/src/components/MemberInfo.js b/web/src/components/MemberInfo.js
index 7b2dc137..44467eb3 100644
--- a/web/src/components/MemberInfo.js
+++ b/web/src/components/MemberInfo.js
@@ -76,7 +76,7 @@ return (
{name}
-
{role} Major Joined in {yearJoined}
+
{role} Joined in {yearJoined}
diff --git a/web/src/components/TeamCard.js b/web/src/components/TeamCard.js
index fef39906..2e59187d 100644
--- a/web/src/components/TeamCard.js
+++ b/web/src/components/TeamCard.js
@@ -13,16 +13,16 @@ const Styles = styled.section`
margin: 20px;
position: relative;
border-radius: 0.25rem;
-
-
}
.card-img-top {
- height: 60%;
- width: 70%;
+ padding-top: 10%;
+ height: 50%;
+ max-width: 50%;
+ // max-height: 100%;
transition: display 0.4s;
top: 10px;
left: 10px;
- object-fit: cover;
+ object-fit: contain;
text-align: center;
}
.card-body {
@@ -72,7 +72,11 @@ const TeamCard = (props) => {
}
allNames.forEach(clearAll)
target.style.display = 'block';
- window.scrollTo({top:findPos(target), behavior:'smooth'});
+ if (typeof window === 'undefined') {
+ global.window = {}
+ } else {
+ window.scrollTo({top:findPos(target), behavior:'smooth'});
+ }
} else {
target.style.display = 'none';
}
diff --git a/web/src/components/WorkDiv.js b/web/src/components/WorkDiv.js
index a75eb3a0..4984a595 100644
--- a/web/src/components/WorkDiv.js
+++ b/web/src/components/WorkDiv.js
@@ -166,11 +166,12 @@ const WorkDiv = () => {
}
}
`);
+
const workDropdown = data.allSanityProject.edges.map(item =>
-
{item.node.title}
+
{item.node.title} +
{item.node.description}
@@ -185,7 +186,7 @@ const WorkDiv = () => {
Work
-
We have partnered with different companies, startups and organizations to host events on Georgia Tech's campus, focused on technology and social good. Some examples include Affirm, Kabbage, Black Girls Code & oSTEM. We also go off campus to bring CS education to local schools.
+
We have partnered with different companies, startups and organizations to host events on Georgia Tech's campus, focused on technology and social good. We also go off campus to bring CS education to local schools.
diff --git a/web/src/components/header.js b/web/src/components/header.js
index 4f38b33a..6dd6ad87 100644
--- a/web/src/components/header.js
+++ b/web/src/components/header.js
@@ -101,75 +101,79 @@ const Styles = styled.section`
`
const Header = () => {
- window.onscroll = function () {
- let currentScrollPos = window.pageYOffset;
- // console.log(currentScrollPos);
- console.log('woooooo scroll');
- if (currentScrollPos > 550) {
- var header = document.getElementById("header");
- header.classList.add("white");
- header.classList.remove("clear");
- var nav_links= document.getElementsByClassName("nav-link");
- var i;
- for (i = 0; i < nav_links.length; i++) {
- nav_links[i].classList.add("black")
- }
- } else {
- var header = document.getElementById("header");
- header.classList.remove("white");
- header.classList.add("clear");
- var nav_links= document.getElementsByClassName("nav-link");
- var i;
- for (i = 0; i < nav_links.length; i++) {
- nav_links[i].classList.remove("black")
+ if (typeof window === 'undefined') {
+ global.window = {}
+ } else {
+ window.onscroll = function () {
+ let currentScrollPos = window.pageYOffset;
+ // console.log(currentScrollPos);
+ console.log('woooooo scroll');
+ if (currentScrollPos > 550) {
+ var header = document.getElementById("header");
+ header.classList.add("white");
+ header.classList.remove("clear");
+ var nav_links= document.getElementsByClassName("nav-link");
+ var i;
+ for (i = 0; i < nav_links.length; i++) {
+ nav_links[i].classList.add("black")
+ }
+ } else {
+ var header = document.getElementById("header");
+ header.classList.remove("white");
+ header.classList.add("clear");
+ var nav_links= document.getElementsByClassName("nav-link");
+ var i;
+ for (i = 0; i < nav_links.length; i++) {
+ nav_links[i].classList.remove("black")
+ }
+ }
+
+ if (currentScrollPos < 550) {
+ document.getElementById('about-link').style.color = 'white';
+ document.getElementById('team-link').style.color = 'white';
+ document.getElementById('work-link').style.color = 'white';
+ document.getElementById('sponsors-link').style.color = 'white';
+ document.getElementById('contact-link').style.color = 'white';
+ } else if (currentScrollPos >= 550 && currentScrollPos < 1200) {
+ document.getElementById('about-link').style.color = '#00e6e6';
+ document.getElementById('team-link').style.color = 'black';
+ document.getElementById('work-link').style.color = 'black';
+ document.getElementById('sponsors-link').style.color = 'black';
+ document.getElementById('contact-link').style.color = 'black';
+ } else if (currentScrollPos >= 1200 && currentScrollPos < 2350) {
+ document.getElementById('about-link').style.color = 'black';
+ document.getElementById('team-link').style.color = '#00e6e6';
+ document.getElementById('work-link').style.color = 'black';
+ document.getElementById('sponsors-link').style.color = 'black';
+ document.getElementById('contact-link').style.color = 'black';
+ } else if (currentScrollPos >= 2350 && currentScrollPos < 3200) {
+ document.getElementById('about-link').style.color = 'black';
+ document.getElementById('team-link').style.color = 'black';
+ document.getElementById('work-link').style.color = '#00e6e6';
+ document.getElementById('sponsors-link').style.color = 'black';
+ document.getElementById('contact-link').style.color = 'black';
+ } else if (currentScrollPos >= 3200 && currentScrollPos < 3780) {
+ document.getElementById('about-link').style.color = 'black';
+ document.getElementById('team-link').style.color = 'black';
+ document.getElementById('work-link').style.color = 'black';
+ document.getElementById('sponsors-link').style.color = '#00e6e6';
+ document.getElementById('contact-link').style.color = 'black';
+ } else if (currentScrollPos >= 3780) {
+ document.getElementById('about-link').style.color = 'black';
+ document.getElementById('team-link').style.color = 'black';
+ document.getElementById('work-link').style.color = 'black';
+ document.getElementById('sponsors-link').style.color = 'black';
+ document.getElementById('contact-link').style.color = '#00e6e6';
}
- }
-
- if (currentScrollPos < 550) {
- document.getElementById('about-link').style.color = 'white';
- document.getElementById('team-link').style.color = 'white';
- document.getElementById('work-link').style.color = 'white';
- document.getElementById('sponsors-link').style.color = 'white';
- document.getElementById('contact-link').style.color = 'white';
- } else if (currentScrollPos >= 550 && currentScrollPos < 1200) {
- document.getElementById('about-link').style.color = '#00e6e6';
- document.getElementById('team-link').style.color = 'black';
- document.getElementById('work-link').style.color = 'black';
- document.getElementById('sponsors-link').style.color = 'black';
- document.getElementById('contact-link').style.color = 'black';
- } else if (currentScrollPos >= 1200 && currentScrollPos < 2350) {
- document.getElementById('about-link').style.color = 'black';
- document.getElementById('team-link').style.color = '#00e6e6';
- document.getElementById('work-link').style.color = 'black';
- document.getElementById('sponsors-link').style.color = 'black';
- document.getElementById('contact-link').style.color = 'black';
- } else if (currentScrollPos >= 2350 && currentScrollPos < 3200) {
- document.getElementById('about-link').style.color = 'black';
- document.getElementById('team-link').style.color = 'black';
- document.getElementById('work-link').style.color = '#00e6e6';
- document.getElementById('sponsors-link').style.color = 'black';
- document.getElementById('contact-link').style.color = 'black';
- } else if (currentScrollPos >= 3200 && currentScrollPos < 3780) {
- document.getElementById('about-link').style.color = 'black';
- document.getElementById('team-link').style.color = 'black';
- document.getElementById('work-link').style.color = 'black';
- document.getElementById('sponsors-link').style.color = '#00e6e6';
- document.getElementById('contact-link').style.color = 'black';
- } else if (currentScrollPos >= 3780) {
- document.getElementById('about-link').style.color = 'black';
- document.getElementById('team-link').style.color = 'black';
- document.getElementById('work-link').style.color = 'black';
- document.getElementById('sponsors-link').style.color = 'black';
- document.getElementById('contact-link').style.color = '#00e6e6';
}
}
+
return (