Skip to content

Commit 808cf5e

Browse files
committedMay 11, 2021
Add meet the team
1 parent c166b56 commit 808cf5e

18 files changed

+192
-543
lines changed
 

‎.env

+2
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

-71
This file was deleted.

‎LSS_ComingSoon/index.html

-21
This file was deleted.

‎components/Container.js

+36
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

+2-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎components/Icons/SDI.js

+5-4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎components/Icons/Staff.js

+14
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

+21-25
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

+7-5
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);

‎pages/about.js

+89-223
Large diffs are not rendered by default.

‎pages/contact.js

+7-193
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ export default function Home() {
4444
</section>
4545

4646
<section className="margin-bottom-1 img-wrapper">
47-
<Image src={`/imgs/Contact.jpg`} layout="fill" className="next-img" priority={true}/>
47+
<img src={`/imgs/Contact.jpg`} />
4848
</section>
4949

5050
<section className="margin-bottom-1">
@@ -66,16 +66,6 @@ export default function Home() {
6666
</section>
6767
</main>
6868
<Footer />
69-
<style jsx global>
70-
{`
71-
.next-img {
72-
height: 100%;
73-
width: 90%;
74-
object-fit: cover;
75-
border-radius: 5px;
76-
}
77-
`}
78-
</style>
7969

8070
<style jsx>{`
8171
.card {
@@ -89,13 +79,17 @@ export default function Home() {
8979
border-radius: 10px;
9080
transition: color 0.15s ease, border-color 0.15s ease;
9181
}
82+
9283
.img-wrapper {
9384
height: 350px;
9485
text-align: center;
86+
}
87+
.img-wrapper img {
88+
height: 100%;
9589
width: 90%;
96-
position: relative;
90+
object-fit: cover;
91+
border-radius: 5px;
9792
}
98-
9993
.logo {
10094
height: 1em;
10195
}
@@ -119,186 +113,6 @@ export default function Home() {
119113
}
120114
}
121115
`}</style>
122-
<style jsx global>{`
123-
@font-face {
124-
font-family: "matiasregular";
125-
src: url("/fonts/matias-webfont.woff2") format("woff2"), url("/fonts/matias-webfont.woff") format("woff");
126-
font-weight: normal;
127-
font-style: normal;
128-
}
129-
130-
@import url("https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;800&display=swap");
131-
:root {
132-
}
133-
html,
134-
body {
135-
padding: 0px;
136-
margin: 0px;
137-
overflow-x: hidden;
138-
font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Oxygen, Ubuntu, Cantarell, Fira Sans,
139-
Droid Sans, Helvetica Neue, sans-serif;
140-
font-family: "matiasregular", "Open Sans", sans-serif;
141-
}
142-
143-
.container {
144-
min-height: 100vh;
145-
display: flex;
146-
flex-direction: column;
147-
justify-content: center;
148-
align-items: center;
149-
max-width: var(--content-width);
150-
margin: 0 auto;
151-
}
152-
153-
header {
154-
width: 100%;
155-
background-image: var(--gradient);
156-
position: fixed;
157-
top: 0;
158-
z-index: 9999999;
159-
box-shadow: var(--shadow-small);
160-
}
161-
162-
section {
163-
width: 100%;
164-
display: flex;
165-
justify-content: center;
166-
border-radius: var(--border-radius);
167-
}
168-
169-
.description {
170-
line-height: 1.5;
171-
font-size: 1.5rem;
172-
}
173-
174-
.grid {
175-
display: flex;
176-
align-items: center;
177-
justify-content: center;
178-
flex-wrap: wrap;
179-
180-
max-width: 800px;
181-
margin-top: 3rem;
182-
}
183-
184-
main {
185-
flex: 1;
186-
display: flex;
187-
width: 100%;
188-
flex-direction: column;
189-
justify-content: center;
190-
align-items: center;
191-
margin: 0 auto;
192-
padding-top: var(--nav-height);
193-
transition: padding-top 0.5s ease;
194-
}
195-
196-
* {
197-
box-sizing: border-box;
198-
}
199-
200-
h1,
201-
h2,
202-
h3 {
203-
letter-spacing: 6px;
204-
}
205-
206-
h1,
207-
.like-1 {
208-
font-size: 2em;
209-
}
210-
211-
h2,
212-
.like-2 {
213-
font-size: 1.5em;
214-
}
215-
216-
h3,
217-
.like-3 {
218-
font-size: 1.17em;
219-
}
220-
221-
h4 {
222-
font-size: 1em;
223-
}
224-
225-
a,
226-
a:hover,
227-
a:active,
228-
a:visited {
229-
color: inherit;
230-
text-decoration: none;
231-
}
232-
233-
.no-margin {
234-
margin: 0;
235-
}
236-
237-
.margin-1 {
238-
margin: 60px 0;
239-
}
240-
241-
.margin-top-1 {
242-
margin-top: 60px;
243-
}
244-
245-
.margin-bottom-1 {
246-
margin-bottom: 60px;
247-
}
248-
249-
.margin-2 {
250-
margin: 25px 0;
251-
}
252-
253-
.margin-top-2 {
254-
margin-top: 25px;
255-
}
256-
257-
.margin-bottom-2 {
258-
margin-bottom: 25px;
259-
}
260-
261-
.shadow-3 {
262-
box-shadow: var(--elevation-3);
263-
}
264-
265-
.scrolled {
266-
--nav-height: 85px;
267-
}
268-
.scrolled + main {
269-
--nav-height: 85px;
270-
}
271-
.scrolled .navigation {
272-
--logo-size: 60px;
273-
--logo-circle: 70px;
274-
}
275-
276-
@media (max-width: 768px) {
277-
:root {
278-
--border-radius: 0;
279-
}
280-
.margin-1 {
281-
margin: 40px 0;
282-
}
283-
284-
.margin-top-1 {
285-
margin-top: 40px;
286-
}
287-
288-
.margin-bottom-1 {
289-
margin-bottom: 40px;
290-
}
291-
.scrolled {
292-
--nav-height: 80px;
293-
}
294-
295-
.scrolled .navigation {
296-
--hamburger-size: 25px;
297-
--logo-size: 50px;
298-
--logo-circle: 60px;
299-
}
300-
}
301-
`}</style>
302116
</div>
303117
);
304118
}

‎public/icons/white saf.svg

+3
Loading

‎public/staff/Chairin.svg

+1
Loading

‎public/staff/Farlan.svg

+1
Loading

‎public/staff/Latimah.svg

+1
Loading

‎public/staff/Laura.svg

+1
Loading

‎public/staff/Lucas.svg

+1
Loading

‎public/staff/Murtado.svg

+1
Loading

1 commit comments

Comments
 (1)
Please sign in to comment.