Skip to content

Commit 30a7b19

Browse files
committed
~ update storage of /socials page
1 parent 79e6307 commit 30a7b19

File tree

7 files changed

+45
-19
lines changed

7 files changed

+45
-19
lines changed

.gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -38,3 +38,6 @@ yarn-error.log*
3838
# typescript
3939
*.tsbuildinfo
4040
next-env.d.ts
41+
42+
# media for socials
43+
/socials

next.config.ts

+7
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,13 @@ const nextConfig: NextConfig = {
55
experimental: {
66
dynamicIO: true,
77
},
8+
images: {
9+
remotePatterns: [
10+
{
11+
hostname: 'cfjm6y1j7f.ufs.sh',
12+
},
13+
],
14+
},
815
transpilePackages: ['next-mdx-remote'],
916
async redirects() {
1017
return [

public/socials/telegram-83.mp4

-4.96 MB
Binary file not shown.

public/socials/telegram-85.jpg

-133 KB
Binary file not shown.
-8.62 MB
Binary file not shown.

src/app/socials/storage.ts

+22-10
Original file line numberDiff line numberDiff line change
@@ -12,28 +12,40 @@ export type SocialsItem = {
1212
link: string
1313
title?: string
1414
content: string[]
15-
image?: string
16-
video?: string
15+
image?: string // uploadthing.com
16+
video?: string // uploadthing.com
1717
}
1818

1919
export const ITEMS: SocialsItem[] = [
2020
{
21-
source: 'medium',
22-
link: 'https://medium.com/@bozzhik/naive-problem-solving-inexperience-can-be-an-advantage-e1826dddd7b8',
23-
image: '/socials/telegram-85.jpg',
24-
title: 'Naive Problem Solving: Why Inexperience in Development Can Be an Advantage',
25-
content: ['Could inexperience be your secret weapon in development? Instead of always searching for ready-made solutions, what if we trusted our intuition and fundamentals to truly understand technology—a mindset that benefits both beginners and seasoned pros.'],
21+
source: 'telegram',
22+
link: 'https://t.me/bozzzzhik/87',
23+
video: 'https://cfjm6y1j7f.ufs.sh/f/WjxObGYK0fV5eoqYt0XzVqDcmU5J02ZRg1GstodP7a69CIXL',
24+
content: [`The diploma project is being actively promoted, and X is the most effective channel — it's responsible for the majority of the extension's traffic. Last night, an account with 200K followers reposted my content during a stream that attracted 7K viewers.`],
25+
},
26+
{
27+
source: 'x',
28+
link: 'https://x.com/bozzhik/status/1900693832091513241',
29+
image: 'https://cfjm6y1j7f.ufs.sh/f/WjxObGYK0fV5kSJmYirTIbDUPHYyXpiLWCRv3l6Nsua5wKnA',
30+
content: ['Achievement unlocked 🏆'],
2631
},
2732
{
2833
source: 'x',
2934
link: 'https://x.com/bozzhik/status/1891478314486816777',
30-
video: '/socials/telegram-83.mp4',
31-
content: ['I’ve finished the visual research for my diploma project. It was quite challenging, but creating the book turned out to be an interesting experience.'],
35+
video: 'https://cfjm6y1j7f.ufs.sh/f/WjxObGYK0fV5pt1OMmTi8eLjrtVabkySWdKJ92z5QOFl4m1X',
36+
content: [`I've finished the visual research for my diploma project. It was quite challenging, but creating the book turned out to be an interesting experience.`],
37+
},
38+
{
39+
source: 'medium',
40+
link: 'https://medium.com/@bozzhik/naive-problem-solving-inexperience-can-be-an-advantage-e1826dddd7b8',
41+
image: 'https://cfjm6y1j7f.ufs.sh/f/WjxObGYK0fV5Yjyh7rGcIrOcFw4hqgEnlWbDo6TJYupkH1VN',
42+
title: 'Naive Problem Solving: Why Inexperience in Development Can Be an Advantage',
43+
content: ['Could inexperience be your secret weapon in development? Instead of always searching for ready-made solutions, what if we trusted our intuition and fundamentals to truly understand technology—a mindset that benefits both beginners and seasoned pros.'],
3244
},
3345
{
3446
source: 'x',
3547
link: 'https://x.com/bozzhik/status/1878468381222850865',
36-
video: '/socials/x-1878468381222850865.mp4',
48+
video: 'https://cfjm6y1j7f.ufs.sh/f/WjxObGYK0fV5NEB4z0mVMOE9mxBQlNZW2efA5b0jkisFuwHp',
3749
content: ['in a few hours, I created a small chrome extension to dive into the process of publishing to the Chrome Web Store.', 'website aura extension reveals a website’s color palette, scheme, and visual mood, giving a snapshot of its design style.'],
3850
},
3951
]

src/components/App/socials/SocialsCard.tsx

+13-9
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,19 @@ export default function SocialsCard({item}: {item: SocialsItem}) {
2121

2222
<div className="space-y-4">
2323
{(image || video) && (
24-
<div className="overflow-hidden rounded-md bg-gray-dark">
25-
{image ? (
26-
<Image quality={100} className={cn('duration-300 group-hover:scale-[1.015]', 'w-full object-contain')} src={image} width={1000} height={1000} alt={`Snable ${source}`} />
27-
) : (
28-
<video autoPlay muted loop className={cn('duration-300 group-hover:scale-[1.015]', 'w-full')}>
29-
<source src={video} type="video/mp4" />
30-
Your browser does not support the video tag.
31-
</video>
32-
)}
24+
<div className="relative overflow-hidden rounded-md">
25+
<div className="relative z-20">
26+
{image ? (
27+
<Image quality={100} className={cn('duration-300 group-hover:scale-[1.015]', 'w-full object-contain')} src={image} width={1000} height={1000} alt={`Snable ${source}`} />
28+
) : (
29+
<video autoPlay muted loop className={cn('duration-300 group-hover:scale-[1.015]', 'w-full')}>
30+
<source src={video} type="video/mp4" />
31+
Your browser does not support the video tag.
32+
</video>
33+
)}
34+
</div>
35+
36+
<div className="absolute inset-0 size-full bg-gray-medium animate-pulse"></div>
3337
</div>
3438
)}
3539

0 commit comments

Comments
 (0)