Skip to content

Commit 808cf5e

Browse files
committed
Add meet the team
1 parent c166b56 commit 808cf5e

File tree

18 files changed

+192
-543
lines changed

18 files changed

+192
-543
lines changed

.env

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Created by Vercel CLI
2+
NEXT_PUBLIC_MAINTENANCE="false"

LSS_ComingSoon/css/main.css

Lines changed: 0 additions & 71 deletions
This file was deleted.

LSS_ComingSoon/index.html

Lines changed: 0 additions & 21 deletions
This file was deleted.

components/Container.js

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
const Container = ({ children, background }) => (
2+
<>
3+
<div className="container">
4+
<div className="inner-container">{children}</div>
5+
</div>
6+
<style jsx>{`
7+
.container {
8+
display: flex;
9+
flex-direction: column;
10+
width: 100%;
11+
justify-content: center;
12+
align-items: center;
13+
}
14+
15+
.inner-container {
16+
background: ${background || "var(--primary-medium)"};
17+
border-radius: var(--border-radius);
18+
width: 90%;
19+
padding: 40px 40px;
20+
box-shadow: var(--shadow-primary-medium);
21+
display: flex;
22+
flex-flow: column;
23+
font-weight: bold;
24+
}
25+
26+
@media (max-width: 768px) {
27+
.inner-container {
28+
padding: 40px 30px;
29+
width: 100%;
30+
}
31+
}
32+
`}</style>
33+
</>
34+
);
35+
36+
export default Container;

components/Icons/SAF.js

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

components/Icons/SDI.js

Lines changed: 5 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

components/Icons/Staff.js

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
const StaffIcon = ({ path, staffName }) => {
2+
return (
3+
<>
4+
<img src={path} alt={staffName} className={"staff-img"} />
5+
<style jsx>{`
6+
.staff-img {
7+
height: 225px;
8+
width: 100%;
9+
}
10+
`}</style>
11+
</>
12+
);
13+
};
14+
export default StaffIcon;

components/TextBox.js

Lines changed: 21 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ const renderLogo = (logo, logoImg) => {
5454
);
5555
}
5656
};
57+
5758
const renderImg = (img) => {
5859
if (img) {
5960
return (
@@ -99,52 +100,47 @@ const ServiceSingle = ({ innerText, logo, logoImg, img, textAlign }) => (
99100
{renderImg(img)}
100101
</div>
101102
<style jsx>{`
102-
103103
.serviceSingle {
104104
display: flex;
105105
flex-direction: column;
106106
width: 100%;
107-
justify-content:center;
107+
justify-content: center;
108108
align-items: center;
109109
}
110110
111111
.serviceContainer {
112112
max-width: 500px;
113113
margin: auto;
114-
text-align: left;
114+
text-align: left;
115115
}
116116
117117
.serviceContainer h4 {
118-
text-align: center;
118+
text-align: center;
119119
}
120120
121121
.serviceDescription {
122-
background: var(--primary-medium);
123-
border-radius: var(--border-radius);
124-
width: 90%;
125-
padding: 40px 40px;
126-
box-shadow: var(--shadow-primary-medium);
127-
display: flex;
128-
flex-flow: column;
129-
text-align: ${textAlign};
130-
font-weight: bold;
122+
background: var(--primary-medium);
123+
border-radius: var(--border-radius);
124+
width: 90%;
125+
padding: 40px 40px;
126+
box-shadow: var(--shadow-primary-medium);
127+
display: flex;
128+
flex-flow: column;
129+
text-align: ${textAlign};
130+
font-weight: bold;
131131
}
132132
133-
134-
135-
136-
137-
@media (max-width: 768px) {
138-
.serviceDescription {
139-
padding: 40px 30px;
140-
width: 100%;
141-
}
133+
@media (max-width: 768px) {
134+
.serviceDescription {
135+
padding: 40px 30px;
136+
width: 100%;
137+
}
142138
143-
.img-wrapper {
139+
.img-wrapper {
144140
height: 150px;
145141
}
146-
147-
`}</style>
142+
}
143+
`}</style>
148144

149145
<style jsx global>{`
150146
.headline {

hooks/useOnWindowScroll.js

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,13 @@ export const useOnWindowScroll = (ref, css, scroll) => {
33
useEffect(() => {
44
// console.log(ref);
55
const scrolled = () => {
6-
if (window.scrollY > scroll) {
7-
ref.current.classList.add(`${css}`);
8-
} else {
9-
// console.log(ref);
10-
ref.current.classList.remove(`${css}`);
6+
if (ref.current) {
7+
if (window.scrollY > scroll) {
8+
ref.current.classList.add(`${css}`);
9+
} else {
10+
// console.log(ref);
11+
ref.current.classList.remove(`${css}`);
12+
}
1113
}
1214
};
1315
window.addEventListener("scroll", scrolled);

0 commit comments

Comments
 (0)