Skip to content

Commit 56ad681

Browse files
committed
chore: replace banner
1 parent ea37a2d commit 56ad681

File tree

18 files changed

+178
-232
lines changed

18 files changed

+178
-232
lines changed

.claude/settings.local.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"permissions": {
3+
"allow": [
4+
"Bash(ls:*)",
5+
"Bash(lsof:*)",
6+
"Bash(xargs kill -9)"
7+
],
8+
"deny": [],
9+
"ask": []
10+
}
11+
}

.vscode/settings.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@
2727
"typescript.preferences.importModuleSpecifier": "relative",
2828
"prettier.configPath": ".prettierrc.js",
2929
"cSpell.words": [
30-
"adfit",
3130
"clsx",
3231
"formatjs",
3332
"hyochan",

app/[lang]/(common)/AdFit.tsx

Lines changed: 0 additions & 49 deletions
This file was deleted.

app/[lang]/(common)/AdFitResponsive.tsx

Lines changed: 0 additions & 61 deletions
This file was deleted.
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
'use client';
2+
3+
import React from 'react';
4+
import Image from 'next/image';
5+
import clsx from 'clsx';
6+
7+
import greatfrontendGif from '@/public/assets/greatfrontend-js.gif';
8+
9+
export type GreatFrontEndProps = {
10+
className?: string;
11+
href: string;
12+
title?: string;
13+
};
14+
15+
export default function GreatFrontEnd({
16+
className,
17+
href,
18+
title,
19+
}: GreatFrontEndProps): JSX.Element {
20+
return (
21+
<a
22+
href={href}
23+
target="_blank"
24+
rel="noopener noreferrer"
25+
className={clsx('flex flex-col items-start group', className)}
26+
>
27+
<div className="w-full max-w-[728px] group-hover:opacity-90 transition-opacity">
28+
<Image
29+
src={greatfrontendGif}
30+
alt="GreatFrontEnd - Ace your next front end interview"
31+
className="w-full h-auto"
32+
priority
33+
/>
34+
</div>
35+
{title && (
36+
<span className="text-[10px] text-gray6 dark:text-gray2 mt-1.5 group-hover:text-gray5 dark:group-hover:text-gray1 transition-colors">
37+
{title}
38+
</span>
39+
)}
40+
</a>
41+
);
42+
}

app/[lang]/(home)/Hero/index.tsx

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,7 @@ import TextInput from '../../(common)/TextInput';
1818
import StatsSymbols from './StatsSymbol';
1919
import StatsUrlCard from './StatsUrlCards';
2020
import {useMediaQuery} from 'usehooks-ts';
21-
import AdFit from '../../(common)/AdFit';
22-
import AdFitResponsive from '../../(common)/AdFitResponsive';
21+
import GreatFrontEnd from '../../(common)/GreatFrontEnd';
2322

2423
const rootUrl = `${process.env.NEXT_PUBLIC_ROOT_URL}/api`;
2524

@@ -115,16 +114,12 @@ function Hero({t, statsInfo}: Props): ReactElement {
115114
<p className="body1 text-[20px] text-left mb-[36px] opacity-50">
116115
{t.developerPowerMeterDesc}
117116
</p>
118-
{/* Begin: AdFit */}
119-
<AdFitResponsive
117+
{/* Begin: GreatFrontEnd Banner */}
118+
<GreatFrontEnd
120119
className="mb-6"
121-
adfitClassName="adfit-top"
122-
units={{
123-
mobile: 'DAN-dAqcoLWvKpYEtbtq',
124-
pc: 'DAN-SEcRVdSHkh05H0jO',
125-
}}
120+
href="https://www.greatfrontend.com?fpr=hyo73"
126121
/>
127-
{/* End: AdFit */}
122+
{/* End: GreatFrontEnd Banner */}
128123
{/* Begin: Search Form */}
129124
<form
130125
onSubmit={handleSubmit(searchUser)}

app/[lang]/(home)/Home.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ import {initAmplitude} from '../../../src/utils/webUtils';
1010
import Hero from './Hero';
1111
import SectionFooter from './SectionFooter';
1212
import SectionHowItWorks from './SectionHowItWorks';
13-
import AdFit from '../(common)/AdFit';
1413

1514
type Props = {
1615
t: Translates['home'];

app/[lang]/(home)/SectionFooter.tsx

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@ import type {Translates} from '../../../src/localization';
77
import imgBgSection1 from '@/public/assets/bg_section1.png';
88
import SvgScouter from '@/public/assets/scouter.svg';
99
import {useMediaQuery} from 'usehooks-ts';
10-
import AdFit from '../(common)/AdFit';
11-
import AdFitResponsive from '../(common)/AdFitResponsive';
10+
import GreatFrontEnd from '../(common)/GreatFrontEnd';
1211

1312
const inter = Inter({subsets: ['latin']});
1413

@@ -70,20 +69,17 @@ export default function SectionFooter({t}: Props): ReactElement {
7069
/>
7170
<p className={clsx('text-white text-[12px] align-center opacity-50')}>
7271
designed by &nbsp;
73-
<a href="https://dooboolab.com">dooboolab</a>
72+
<a href="https://hyo.dev">hyochan</a>
7473
</p>
7574
</div>
7675
</div>
77-
{/* Begin: AdFit */}
78-
<AdFitResponsive
79-
adfitClassName="adfit-bottom"
76+
{/* Begin: GreatFrontEnd Banner */}
77+
<GreatFrontEnd
8078
className="mb-20"
81-
units={{
82-
mobile: 'DAN-GfeJUqhlQ5KqCOzw',
83-
pc: 'DAN-9eecqcxVgP9XX0bN',
84-
}}
79+
href="https://www.greatfrontend.com/prepare/coding?fpr=hyo73"
80+
title="Coding interview questions"
8581
/>
86-
{/* End: AdFit */}
82+
{/* End: GreatFrontEnd Banner */}
8783
</div>
8884
);
8985
}

app/[lang]/recent-list/page.tsx

Lines changed: 12 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import GithubUserList from './GithubUserList';
1111

1212
import {H1} from '~/components/Typography';
1313
import type {Locale} from '~/i18n';
14-
import AdFitResponsive from '../(common)/AdFitResponsive';
14+
import GreatFrontEnd from '../(common)/GreatFrontEnd';
1515

1616
const inter = Inter({subsets: ['latin']});
1717

@@ -36,32 +36,25 @@ export default async function Page({
3636
return (
3737
<div className={clsx('flex-1 bg-paper overflow-hidden', 'flex flex-col')}>
3838
<div
39-
className="
40-
mt-4 mb-[32px] ml-6 mr-2
41-
flex-row items-center justify-between
42-
max-[480px]:mb-0 max-[480px]:my-4
43-
"
39+
className={clsx(
40+
'mt-4 mb-[32px] px-6 w-full',
41+
'flex flex-row items-center justify-between gap-4',
42+
'max-[480px]:flex-col max-[480px]:items-start max-[480px]:mb-0 max-[480px]:my-4',
43+
)}
4444
>
4545
<H1
4646
className={clsx(
47-
'text-[44px] font-bold',
48-
'max-[480px]:hidden',
49-
'max-[560px]:text-[28px]',
47+
'text-[44px] font-bold shrink-0 whitespace-nowrap',
48+
'max-[480px]:text-[28px]',
5049
inter.className,
5150
)}
5251
>
5352
{recentList.title}
5453
</H1>
55-
<AdFitResponsive
56-
className={clsx(
57-
"mx-6 mb-2",
58-
"mx-0"
59-
)}
60-
adfitClassName="adfit-top"
61-
units={{
62-
mobile: 'DAN-dAqcoLWvKpYEtbtq',
63-
pc: 'DAN-SEcRVdSHkh05H0jO',
64-
}}
54+
<GreatFrontEnd
55+
className="max-w-[400px] shrink-0 max-[480px]:mt-4 max-[480px]:max-w-full"
56+
href="https://www.greatfrontend.com/questions/formats/quiz?fpr=hyo73"
57+
title="Quiz interview questions"
6558
/>
6659
</div>
6760
<GithubUserList

app/[lang]/sign-in/page.tsx

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import {getTranslates} from '../../../src/localization';
88
import SocialButtons from './SocialButtons';
99

1010
import type {Locale} from '~/i18n';
11-
import AdFitResponsive from '../(common)/AdFitResponsive';
11+
import GreatFrontEnd from '../(common)/GreatFrontEnd';
1212

1313
const inter = Inter({subsets: ['latin']});
1414

@@ -30,9 +30,9 @@ export default async function Page({
3030
<a
3131
href={
3232
str === 'termsOfService'
33-
? 'https://legacy.dooboolab.com/termsofservice'
33+
? 'https://www.hyo.dev/termsofservice.html'
3434
: str === 'privacyPolicy'
35-
? 'https://legacy.dooboolab.com/privacyandpolicy'
35+
? 'https://www.hyo.dev/privacyandpolicy.html'
3636
: ''
3737
}
3838
key={str}
@@ -53,13 +53,10 @@ export default async function Page({
5353
'flex flex-col justify-center items-center',
5454
)}
5555
>
56-
<AdFitResponsive
56+
<GreatFrontEnd
5757
className="mx-6 mb-8"
58-
adfitClassName="adfit-top"
59-
units={{
60-
mobile: 'DAN-dAqcoLWvKpYEtbtq',
61-
pc: 'DAN-SEcRVdSHkh05H0jO',
62-
}}
58+
href="https://www.greatfrontend.com/behavioral-interview-playbook?fpr=hyo73"
59+
title="Behavioral interview questions"
6360
/>
6461
<div
6562
className={clsx(

0 commit comments

Comments
 (0)