-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.js
217 lines (196 loc) Β· 5.92 KB
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
/* Main/Root - Home screen */
import Head from "next/head";
// more chakra ui elements
import {
useColorMode,
Heading,
Text,
Flex,
Stack,
Button, // base
Box, // extensions
Link,
AspectRatio,
} from "@chakra-ui/react";
// components
import Container from "../components/Container"; // wrapper of pages
import ProjectCards from "../components/ProjectCards";
// animations
import { motion } from "framer-motion";
// SEO
import { NextSeo } from "next-seo";
import FadeInWrapper from "../components/FadeInWrapper";
import Todo from "../components/Todo";
const url = "https://lamiolowoniyi.info/";
const title = "Lami Olowoniyi";
const description =
"Usablity Specialist, and Frontend Developer This is my personal website where you can read my articles and have a look at my portfolio - Have fun !";
// overriding SEO
const SEO = {
title,
description,
canonical: url,
openGraph: {
title,
description,
url,
},
};
export default function Index() {
const { colorMode } = useColorMode();
// so subtext is a bit lighter
const colorSecondary = {
light: "gray.700",
dark: "gray.500",
};
return (
<>
<NextSeo {...SEO} />
<Container>
<Head>
<title>Home - Lami Olowoniyi</title>
</Head>
<FadeInWrapper>
<Flex
w="100%"
flexDir={["column", "column", "row"]}
align="center"
px={4}
mt={[8, 8, 16]}
mb={8}
maxW="1200px"
mx="auto"
>
<Flex flexDir="column" w={["100%", "100%", "50%"]} mr={[0, 0, 4]}>
<Heading mb={3}>Hi there, I'm Lami π</Heading>
<Text color={colorSecondary[colorMode]} mb={3}>
I am currently an international student living in
the United States.
</Text>
<Text color={colorSecondary[colorMode]}>
On this website, you can find useful resources on topics about me... You can check out my {" "}
<Link href="/blog" color="blue.500">
Blog
</Link>{" "}
if you like reading, otherwise you can check my{" "}
<Link href="/works" color="blue.500">
Projects
</Link>{" "}
I have been working on. Or learn more{" "}
<Link href="/about" color="blue.500">
about me
</Link>
.
</Text>
<Stack direction={"row"} align={"center"}>
<Link href="/portfolio" title="portfolio">
<Button mt={5}>Projects π»</Button>
</Link>
</Stack>
</Flex>
{/* youtube featured video */}
<Box mt={[10, 10, 0]} w={["100%", "100%", "50%"]}>
<motion.div
initial={{ y: -20, opacity: 0 }}
animate={{ y: 0, opacity: 1 }}
transition={{ duration: 0.7, delay: 1.6 }}
>
<AspectRatio ratio={16 / 9}>
<iframe
src="https://www.youtube.com/embed/EGghJz989Cw" // ?autoplay=1 // i put this to 0 to avoid using network resources and optimize website speed
alt="Featured YouTube video"
allowFullScreen={true}
style={{ borderRadius: 10 }}
title="Link Analysis Why it matter"
/>
</AspectRatio>
</motion.div>
</Box>
</Flex>
</FadeInWrapper>
<Stack
as="main"
spacing={8}
justifyContent="center"
alignItems="flex-start"
m="0 auto 4rem auto"
maxWidth="800px"
px={2}
>
{/* Lower sections */}
<Flex
flexDirection="column"
justifyContent="flex-start"
alignItems="flex-start"
maxWidth="800px"
>
{/* About me */}
<FadeInWrapper>
<Box as="section" mt={10} mb={10}>
<Heading
letterSpacing="tight"
mt={8}
size="lg"
fontWeight={700}
as="h2"
mb={4}
>
About Me
</Heading>
<Text color={colorSecondary[colorMode]}>
Hi everyone π, my name is Lami Olowoniyi, and I am currently a student at{" "}
<Link
color="blue.500"
href="https://www.albany.edu"
isExternal
>
SUNY Albany
</Link>{" "}
. This is my personal website is where I
showcase my projects, writing, experience, and more.
Feel free to reach out via any of the social media icons in the footer section.
</Text>
<Link href="/about">
<Button mt={5} mb={10}>
More about me π
</Button>
</Link>
</Box>
</FadeInWrapper>
{/* Featured Projects */}
<FadeInWrapper>
<Box as="section" mt={10} mb={20}>
<Heading
letterSpacing="tight"
mt={8}
size="lg"
fontWeight={700}
as="h2"
mb={4}
>
Featured Project
</Heading>
<ProjectCards featured={true} />
<Link href="/portfolio">
<Button mt={5} mb={10}>
See more projects ? π
</Button>
</Link>
</Box>
</FadeInWrapper>
</Flex>
</Stack>
<Box>
<FadeInWrapper>
<Todo/>
</FadeInWrapper>
</Box>
</Container>
</>
);
}
export const pageview = (url) => {
window.gtag('config', process.env.NEXT_PUBLIC_MEASUREMENT_ID, {
path_url: url,
})
}