Skip to content

Commit

Permalink
Merge pull request #140 from johnchoi96/feature/139-gtech
Browse files Browse the repository at this point in the history
Feature/139 gtech
  • Loading branch information
johnchoi96 authored Sep 17, 2023
2 parents 4386492 + 2ac393f commit 739c530
Show file tree
Hide file tree
Showing 9 changed files with 157 additions and 82 deletions.
52 changes: 26 additions & 26 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
"react-ga4": "^2.1.0",
"react-h5-audio-player": "^3.8.6",
"react-router-dom": "^6.3.0",
"react-router-hash-link": "^2.4.3",
"react-scripts": "5.0.1",
"react-vertical-timeline-component": "^3.6.0",
"save-dev": "0.0.1-security",
Expand Down
Binary file added public/assets/images/logo/GTVertical_RGB.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src/App.css
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
.App {
text-align: center;
background-color: #09295A;
background-color: #003057;
}

.App-logo {
Expand Down
2 changes: 1 addition & 1 deletion src/Utils/colorUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export function fontColorForBackground(color) {
export function getBackgroundColor() {
// eslint-disable-next-line react-hooks/rules-of-hooks
const { isDarkMode } = useContext(ThemeContext)
return isDarkMode ? '#09295A' : '#DEE4E7'
return isDarkMode ? '#003057' : '#DEE4E7'
}

export function getFontColorText() {
Expand Down
132 changes: 90 additions & 42 deletions src/components/aboutpage/EducationTimeline.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,55 +9,103 @@ import { ThemeContext } from '../../App'

import { fontColorForBackground } from '../../Utils/colorUtils'

export default function EducationTimeline() {
const { isDarkMode } = useContext(ThemeContext)
function GeorgiaTech({ isDarkMode }) {
const techGold = '#b3a369'

const techIcon = '/assets/images/logo/GTVertical_RGB.png'

return (
<VerticalTimelineElement
className='vertical-timeline-element--education'
contentStyle={{
background: techGold,
color: `${fontColorForBackground(techGold)}`
}}
contentArrowStyle={{ borderRight: `7px solid ${techGold}` }}
date='Starts 2024'
dateClassName={`${isDarkMode ? 'text-light' : 'text-dark'}`}
iconStyle={{
background: techGold,
color: `${fontColorForBackground(techGold)}`
}}
icon={
<img
style={{
width: '80%',
marginTop: '0.5rem'
}}
src={techIcon}
alt='GaTech logo'
/>
}
position='right'
>
<h3 className='vertical-timeline-element-title fw-bold'>
Georgia Institute of Technology
</h3>
<h5 className='vertical-timeline-element-subtitle'>
College of Computing
</h5>
<h6 className='vertical-timeline-element-subtitle'>Atlanta, GA</h6>
<p>Master of Science - MS, Computer Science</p>
</VerticalTimelineElement>
)
}

function TheOhioStateUniversity({ isDarkMode }) {
const osuColor = '#ba0c2f'

const osuEngineering = '/assets/images/logo/ohio-state-coe.svg'

return (
<VerticalTimelineElement
className='vertical-timeline-element--education'
contentStyle={{
background: osuColor,
color: `${fontColorForBackground(osuColor)}`
}}
contentArrowStyle={{ borderRight: `7px solid ${osuColor}` }}
date='May 2022'
dateClassName={`${isDarkMode ? 'text-light' : 'text-dark'}`}
iconStyle={{
background: osuColor,
color: `${fontColorForBackground(osuColor)}`
}}
icon={
<img
style={{
width: '80%',
marginTop: '0.5rem'
}}
src={osuEngineering}
alt='OSU logo'
/>
}
position='right'
>
<h3 className='vertical-timeline-element-title fw-bold'>
The Ohio State University
</h3>
<h5 className='vertical-timeline-element-subtitle'>
College of Engineering
</h5>
<h6 className='vertical-timeline-element-subtitle'>Columbus, OH</h6>
<p>
Bachelor of Science - BS, Computer Science and Engineering
<br />
Software Engineering Specialization
</p>
</VerticalTimelineElement>
)
}

export default function EducationTimeline() {
const { isDarkMode } = useContext(ThemeContext)

return (
<VerticalTimeline>
<VerticalTimelineElement
className='vertical-timeline-element--education'
contentStyle={{
background: osuColor,
color: `${fontColorForBackground(osuColor)}`
}}
contentArrowStyle={{ borderRight: `7px solid ${osuColor}` }}
date='May 2022'
dateClassName={`${isDarkMode ? '' : 'text-dark'}`}
iconStyle={{
background: osuColor,
color: `${fontColorForBackground(osuColor)}`
}}
icon={
<img
style={{
width: '80%',
marginTop: '0.5rem'
}}
src={osuEngineering}
alt='OSU logo'
/>
}
position='right'
>
<h3 className='vertical-timeline-element-title fw-bold'>
The Ohio State University
</h3>
<h5 className='vertical-timeline-element-subtitle'>
College of Engineering
</h5>
<h6 className='vertical-timeline-element-subtitle'>
Columbus, OH
</h6>
<p>
BS Computer Science and Engineering
<br />
Software Engineering Specialization
</p>
</VerticalTimelineElement>
<GeorgiaTech isDarkMode={isDarkMode} />
<TheOhioStateUniversity isDarkMode={isDarkMode} />
</VerticalTimeline>
)
}
Loading

0 comments on commit 739c530

Please sign in to comment.