feat(content): link social profiles from section headers
This commit is contained in:
@@ -1,7 +1,8 @@
|
|||||||
"use client";
|
"use client";
|
||||||
|
|
||||||
import { useEffect, useMemo, useRef, useState } from "react";
|
import { useEffect, useMemo, useRef, useState } from "react";
|
||||||
import { Button, Card, Typography } from "poyraz-ui/atoms";
|
import { Icon } from "@iconify/react";
|
||||||
|
import { Button, ButtonIcon, ButtonLabel, Card, Typography } from "poyraz-ui/atoms";
|
||||||
import { Modal, ModalContent, ModalTitle } from "poyraz-ui/molecules";
|
import { Modal, ModalContent, ModalTitle } from "poyraz-ui/molecules";
|
||||||
import { YoutubeLiteEmbed } from "@/components/youtube-lite-embed";
|
import { YoutubeLiteEmbed } from "@/components/youtube-lite-embed";
|
||||||
import { useTranslations } from "next-intl";
|
import { useTranslations } from "next-intl";
|
||||||
@@ -130,9 +131,24 @@ export function ContentContent({
|
|||||||
return (
|
return (
|
||||||
<section className="flex h-full flex-col gap-3 overflow-y-auto">
|
<section className="flex h-full flex-col gap-3 overflow-y-auto">
|
||||||
<section className="space-y-2">
|
<section className="space-y-2">
|
||||||
|
<div className="flex items-center justify-between gap-3">
|
||||||
<Typography variant="large" className="text-base">
|
<Typography variant="large" className="text-base">
|
||||||
{t("youtubeTitle")}
|
{t("youtubeTitle")}
|
||||||
</Typography>
|
</Typography>
|
||||||
|
<Button asChild variant="outline" effect="swap" size="xs" radius="sm">
|
||||||
|
<a
|
||||||
|
href="https://youtube.com/@poyrazavsever"
|
||||||
|
target="_blank"
|
||||||
|
rel="noopener noreferrer"
|
||||||
|
aria-label={t("youtubeChannel")}
|
||||||
|
>
|
||||||
|
<ButtonIcon>
|
||||||
|
<Icon icon="mdi:youtube" width={15} height={15} />
|
||||||
|
</ButtonIcon>
|
||||||
|
<ButtonLabel>@poyrazavsever</ButtonLabel>
|
||||||
|
</a>
|
||||||
|
</Button>
|
||||||
|
</div>
|
||||||
<div className="grid gap-2 md:grid-cols-3">
|
<div className="grid gap-2 md:grid-cols-3">
|
||||||
{embeddedVideos.map((link) => (
|
{embeddedVideos.map((link) => (
|
||||||
<Card
|
<Card
|
||||||
@@ -146,9 +162,24 @@ export function ContentContent({
|
|||||||
</section>
|
</section>
|
||||||
|
|
||||||
<section className="space-y-2">
|
<section className="space-y-2">
|
||||||
|
<div className="flex items-center justify-between gap-3">
|
||||||
<Typography variant="large" className="text-base">
|
<Typography variant="large" className="text-base">
|
||||||
{t("pdfTitle")}
|
{t("pdfTitle")}
|
||||||
</Typography>
|
</Typography>
|
||||||
|
<Button asChild variant="outline" effect="swap" size="xs" radius="sm">
|
||||||
|
<a
|
||||||
|
href="https://www.linkedin.com/in/poyrazavsever/"
|
||||||
|
target="_blank"
|
||||||
|
rel="noopener noreferrer"
|
||||||
|
aria-label={t("linkedinProfile")}
|
||||||
|
>
|
||||||
|
<ButtonIcon>
|
||||||
|
<Icon icon="mdi:linkedin" width={15} height={15} />
|
||||||
|
</ButtonIcon>
|
||||||
|
<ButtonLabel>@poyrazavsever</ButtonLabel>
|
||||||
|
</a>
|
||||||
|
</Button>
|
||||||
|
</div>
|
||||||
<div className="grid grid-cols-2 gap-2 lg:grid-cols-3">
|
<div className="grid grid-cols-2 gap-2 lg:grid-cols-3">
|
||||||
{pdfFiles.map((pdf, index) => (
|
{pdfFiles.map((pdf, index) => (
|
||||||
<button
|
<button
|
||||||
|
|||||||
@@ -117,6 +117,7 @@
|
|||||||
"youtubeChannel": "My YouTube channel",
|
"youtubeChannel": "My YouTube channel",
|
||||||
"youtubeEmbedTitle": "YouTube video player",
|
"youtubeEmbedTitle": "YouTube video player",
|
||||||
"pdfTitle": "LinkedIn PDF Notes",
|
"pdfTitle": "LinkedIn PDF Notes",
|
||||||
|
"linkedinProfile": "My LinkedIn profile",
|
||||||
"pdfPreviewError": "Preview could not be loaded",
|
"pdfPreviewError": "Preview could not be loaded",
|
||||||
"pdfPreviewTitle": "{name} preview",
|
"pdfPreviewTitle": "{name} preview",
|
||||||
"pdfModalDefaultTitle": "PDF Note",
|
"pdfModalDefaultTitle": "PDF Note",
|
||||||
|
|||||||
@@ -117,6 +117,7 @@
|
|||||||
"youtubeChannel": "YouTube kanalım",
|
"youtubeChannel": "YouTube kanalım",
|
||||||
"youtubeEmbedTitle": "YouTube video oynatıcı",
|
"youtubeEmbedTitle": "YouTube video oynatıcı",
|
||||||
"pdfTitle": "LinkedIn PDF Notları",
|
"pdfTitle": "LinkedIn PDF Notları",
|
||||||
|
"linkedinProfile": "LinkedIn profilim",
|
||||||
"pdfPreviewError": "Önizleme yüklenemedi",
|
"pdfPreviewError": "Önizleme yüklenemedi",
|
||||||
"pdfPreviewTitle": "{name} önizleme",
|
"pdfPreviewTitle": "{name} önizleme",
|
||||||
"pdfModalDefaultTitle": "PDF Notu",
|
"pdfModalDefaultTitle": "PDF Notu",
|
||||||
|
|||||||
Reference in New Issue
Block a user