-
Notifications
You must be signed in to change notification settings - Fork 35
/
Copy pathAboutMe.js
159 lines (156 loc) · 5.09 KB
/
AboutMe.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
import {
SimpleGrid,
Text,
Stack,
Heading,
Image,
Flex,
Box,
chakra,
Popover,
PopoverTrigger,
PopoverContent,
PopoverBody,
PopoverArrow,
} from '@chakra-ui/react'
import useMediaQuery from '../hook/useMediaQuery'
import SlideUpWhenVisible from '../hook/SlideUpWhenVisible'
import ReactGA from 'react-ga4'
export default function AboutMe() {
const isLargerThan800 = useMediaQuery(800)
const handleHover = (event) => {
ReactGA.event({
category: 'hover',
action: event,
})
}
const MoreInfo = ({ text, content }) => {
return (
<>
{' '}
{isLargerThan800 ? (
<Popover isLazy placement="right" trigger="hover">
<PopoverTrigger>
<chakra.span
color="button1"
cursor="help"
onMouseOver={() => handleHover(`about_${text}`)}
>
{text}
</chakra.span>
</PopoverTrigger>
<PopoverContent color="white" bg="secondary" borderColor="button1">
<PopoverArrow bg="button1" />
<PopoverBody color="textPrimary" fontSize="sm">
{content}
</PopoverBody>
</PopoverContent>
</Popover>
) : (
<Text as="span" color="button1">
{text}
</Text>
)}{' '}
</>
)
}
return (
<>
<SimpleGrid columns={{ base: 1, md: 2 }} spacing={8}>
<SlideUpWhenVisible>
<Stack spacing={4}>
<Heading fontFamily="Ubuntu" fontSize="2xl">
⚡ About Me
</Heading>
<Text
color="textSecondary"
fontSize={{ base: '14px', md: '16px' }}
whiteSpace="pre-line"
>
Hey! I'm Abdul Rahman, I've been close to a computer since an
early age, and been passionate about it ever since. <br />
<br /> I really liked to build stuff using{' '}
<MoreInfo
content="I used to make games without code using RPG Maker VX, and build a simple website with blogspot back in primary school."
text="no-code tools"
/>
back in 2010, and from that, I explored how to code myself,
fast-forward to today, I do programming in various languages and
technologies, and had the privilege to worked in a{' '}
<MoreInfo
content={
<Image
w={306}
h={102}
alt="linkedin Qneksi"
src="https://imagizer.imageshack.com/a/img923/541/alNCHs.png"
/>
}
text="Recruitment Company"
/>
and a
<MoreInfo
content={
<Image
w={306}
h={102}
alt="linkedin Qasir"
src="https://imagizer.imageshack.com/a/img922/6137/c0cugn.png"
/>
}
text="SaaS Company"
/>
I'm interested in building something awesome with code and
automate tasks with code, currently focused on
<MoreInfo
content="Building Web and Mobile Applications using Javascript Frameworks (React, React Native and Next.js)"
text="Web & Mobile Development,"
/>
<MoreInfo
content="I really like the idea of contributing new features to open source projects that can be useful to other people."
text="Open Source"
/>
and
<MoreInfo
content="Competitive Programming helped me to sharpen my Algorithms and Problem Solving skills."
text="Competitive Programming"
/>
<br />
<br />
When I'm not coding I play games with my friends, watch some show
on Netflix, or if the weather's good, play basketball! 🏀
</Text>
</Stack>
</SlideUpWhenVisible>
<SlideUpWhenVisible>
<Flex align="center" justify="center">
<Box
pos="relative"
maxW={{ base: '300px', lg: '350px' }}
maxH={{ base: '300px', lg: '350px' }}
>
<Image
pos="absolute"
zIndex={3}
top="0px"
right={{ base: '-32px', lg: '-64px' }}
w={{ base: '100px', lg: '150px' }}
alt=""
filter="invert(0.1)"
src="https://svgsilh.com/svg/26432.svg"
/>
<Image
w={{ base: '300px', lg: '350px' }}
h={{ base: '300px', lg: '350px' }}
objectFit="cover"
borderRadius="50%"
alt="Abdul Rahman"
src="https://i.imgur.com/jk8NmSx.jpeg"
/>
</Box>
</Flex>
</SlideUpWhenVisible>
</SimpleGrid>
</>
)
}