Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weโ€™ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

๐Ÿš€ Release/1.2.0 #8

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ npm run start

- TypeScript ์ ์šฉ
- ๊ฒ€์ƒ‰์—”์ง„ ์ตœ์ ํ™”(SEO)
- ๊ตฌ๊ธ€ ์• ๋„๋ฆฌํ‹ฑ์Šค ์ ์šฉ(GA)
- ๋‹ค๊ตญ์–ด ์ง€์›์„ ์œ„ํ•ด i18next ์‚ฌ์šฉ
- react-awesome-reveal ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ๋ฅผ ์ด์šฉํ•˜์—ฌ ์Šคํฌ๋กค ์• ๋‹ˆ๋ฉ”์ด์…˜ ์ ์šฉ
- ๋ฐ˜์‘ํ˜• ์›น ์ง€์›
9,604 changes: 4,179 additions & 5,425 deletions package-lock.json

Large diffs are not rendered by default.

5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "urlink-homepage",
"version": "1.1.0",
"version": "1.2.0",
"private": true,
"dependencies": {
"@emotion/react": "^11.4.1",
Expand All @@ -18,6 +18,7 @@
"react": "^17.0.2",
"react-awesome-reveal": "^3.7.1",
"react-dom": "^17.0.2",
"react-ga": "^3.3.0",
"react-i18next": "^11.8.5",
"react-router-dom": "^5.2.0",
"react-scripts": "4.0.3",
Expand Down Expand Up @@ -58,5 +59,5 @@
"eslint-plugin-react-hooks": "^4.2.0",
"prettier": "^2.3.2"
},
"homepage": "."
"homepage": "/"
}
2 changes: 1 addition & 1 deletion public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<title>์œ ์–ด๋งํฌ urLink</title>

<meta charset="utf-8" />
<link rel="icon" href="https://urlink-official.com/client/favicon.ico" />
<link rel="icon" href="/favicon.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="theme-color" content="#000000">
<meta name="description" content="๋‚ด๊ฒŒ ๋„์›€์ด ๋˜๋Š” ์›น์‚ฌ์ดํŠธ, ์ €์žฅ์€ ํ–ˆ๋Š”๋ฐ ๋‹ค์‹œ ์ฝ์ง€ ์•Š์œผ์‹œ๋‚˜์š”? ์œ ์–ด๋งํฌ๊ฐ€ ๋ฐœ๊ฒฌํ•œ ์›น์‚ฌ์ดํŠธ์™€ ๋ฐฉ๋ฌธ๊ธฐ๋ก์„, ์‰ฝ๊ฒŒ ์ •๋ฆฌํ•˜๊ณ  ๋‹ค์‹œ ์ฝ๊ฒŒ ๋„์™€๋“œ๋ฆด๊ฒŒ์š”.">
Expand Down
28 changes: 27 additions & 1 deletion src/components/Footer/index.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import ReactGA from 'react-ga'
import { withTranslation, WithTranslation } from 'react-i18next'

import IconNotion from '../../assets/img/png/icon_notion.png'
Expand All @@ -6,25 +7,50 @@ import Contents from '../../locales/ko/translation.json'
import { FooterSection, SideCotentsWrapper, LeftSide, RightSide } from './styles'

const Footer: React.FC<WithTranslation> = ({ t: translate }) => {
const handleClickTermsOfServiceTracking = () => {
ReactGA.event({
category: 'landing page',
action: 'go terms of service page',
label: 'terms of service link clicked',
})
}
const handleClickMailTracking = () => {
ReactGA.event({
category: 'landing page',
action: 'click to send mail',
label: 'send mail btn clicked',
})
}
const handleClickUrlinkNotionTracking = () => {
ReactGA.event({
category: 'landing page',
action: 'go Ulink notion page',
label: 'Urlink notion page link clicked',
})
}
return (
<>
<FooterSection>
<Container>
<SideCotentsWrapper>
<LeftSide>
<a
onClick={handleClickTermsOfServiceTracking}
href="https://www.notion.so/vvidstudio/858782886bc643da8831688192c642a9"
target="_blank"
rel="noopener noreferrer"
>
{translate(Contents.footerSection.text[1])}
</a>
<a href="mailto:[email protected]">{translate(Contents.footerSection.text[2])}</a>
<a onClick={handleClickMailTracking} href="mailto:[email protected]">
{translate(Contents.footerSection.text[2])}
</a>
<span>{translate(Contents.footerSection.text[0])}</span>
</LeftSide>

<RightSide>
<a
onClick={handleClickUrlinkNotionTracking}
href="https://www.notion.so/vvidstudio/c936d72ea9a2415ea8ca5395d8d8cf22"
target="_blank"
rel="noopener noreferrer"
Expand Down
10 changes: 10 additions & 0 deletions src/components/GetStartedLink/index.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import ReactGA from 'react-ga'

import ImageLogo from '../../assets/img/png/logo28.png'
import getLocalStorageItem from '../../utils/getLocalStorageItem'
/* eslint-disable import/no-cycle */
Expand All @@ -21,11 +23,19 @@ export const GetStartedLink: React.FC<IProps> = ({
children,
logo,
}) => {
const handleClickLinkTracking = () => {
ReactGA.event({
category: 'landing page',
action: 'go Urlink Chrome Extension',
label: 'GetStartedLink btn clicked',
})
}
const selectedLanguage = getLocalStorageItem('i18nextLng')
const URL = `https://chrome.google.com/webstore/detail/urlink/eimpopfllbjbhgkgomhhpolhlpaapdai?hl=${selectedLanguage}`

return (
<StyledLink
onClick={handleClickLinkTracking}
size={size}
color={color}
backgroundColor={backgroundColor}
Expand Down
6 changes: 6 additions & 0 deletions src/components/Header/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { useEffect, useState } from 'react'
import { Row } from 'antd'
import clsx from 'clsx'
import i18n from 'i18next'
import ReactGA from 'react-ga'
import { withTranslation, WithTranslation } from 'react-i18next'

import ImageLogo from '../../assets/img/png/logo_full.png'
Expand All @@ -29,6 +30,11 @@ const Header: React.FC<WithTranslation> = ({ t }) => {
const handleChange = (language: Language) => {
setCurrentLanguage(language)
i18n.changeLanguage(language)
ReactGA.event({
category: 'landing page',
action: 'change language',
label: 'current language btn clicked',
})
}

useEffect(() => {
Expand Down
7 changes: 7 additions & 0 deletions src/components/ScrollToTop/index.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import { useEffect, useState } from 'react'

import ReactGA from 'react-ga'

import IconScrollTop from '../../assets/img/svg/scroll-top.svg'
import getScroll from '../../utils/getScroll'
import { ScrollUpContainer } from './styles'
Expand All @@ -22,6 +24,11 @@ const ScrollToTop = () => {
top: 0,
behavior: 'smooth',
})
ReactGA.event({
category: 'landing page',
action: 'scroll up',
label: 'scroll up btn clicked',
})
}

useEffect(() => {
Expand Down
4 changes: 4 additions & 0 deletions src/index.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
import ReactDOM from 'react-dom'
import ReactGA from 'react-ga'
import { I18nextProvider } from 'react-i18next'
import { BrowserRouter } from 'react-router-dom'
import 'antd/dist/antd.css'

import Router from './router'
import i18n from './translation'

ReactGA.initialize('UA-207149982-1')
ReactGA.pageview(window.location.pathname + window.location.search)

const App = () => (
<BrowserRouter>
<I18nextProvider i18n={i18n}>
Expand Down