@armoyu/ui 1.0.0 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/app/api/proxy/[...path]/route.d.ts +22 -0
- package/dist/app/api/proxy/[...path]/route.d.ts.map +1 -0
- package/dist/app/api/proxy/[...path]/route.js +89 -0
- package/dist/app/api/proxy/[...path]/route.js.map +1 -0
- package/dist/app/layout.js +11 -11
- package/dist/components/Button.d.ts +7 -7
- package/dist/components/Button.js +15 -15
- package/dist/components/GenderStatsBar.d.ts +5 -5
- package/dist/components/GenderStatsBar.js +7 -7
- package/dist/components/RollingNumber.d.ts +6 -6
- package/dist/components/RollingNumber.js +23 -23
- package/dist/components/Slider.d.ts +10 -10
- package/dist/components/Slider.js +35 -35
- package/dist/components/StatsGrid.js +13 -13
- package/dist/components/ViewModeToggle.d.ts +7 -7
- package/dist/components/ViewModeToggle.js +9 -9
- package/dist/components/modules/auth/Dashboard.js +250 -250
- package/dist/components/modules/auth/MediaLightbox.d.ts +13 -13
- package/dist/components/modules/auth/MediaLightbox.js +46 -46
- package/dist/components/modules/auth/PostCard.js +112 -112
- package/dist/components/modules/auth/PostInteractionsModal.js +12 -12
- package/dist/components/modules/auth/RepostModal.js +75 -75
- package/dist/components/modules/auth/SidebarLeft.js +40 -40
- package/dist/components/modules/auth/Stories.js +15 -15
- package/dist/components/modules/auth/StoryViewer.js +47 -47
- package/dist/components/modules/chat/ChatContainer.js +196 -196
- package/dist/components/modules/chat/ChatInput.js +30 -30
- package/dist/components/modules/chat/ChatList.js +51 -51
- package/dist/components/modules/chat/ChatMessage.d.ts +11 -11
- package/dist/components/modules/chat/ChatMessage.js +6 -6
- package/dist/components/modules/chat/ChatNotes.js +11 -11
- package/dist/components/modules/community/GroupHeader.js +17 -17
- package/dist/components/modules/community/GroupMenu.js +16 -16
- package/dist/components/modules/community/SchoolCard.js +7 -7
- package/dist/components/modules/community/SurveyCard.js +35 -35
- package/dist/components/modules/forum/ForumBoard.d.ts +16 -16
- package/dist/components/modules/forum/ForumBoard.js +6 -6
- package/dist/components/modules/forum/ForumPost.d.ts +13 -13
- package/dist/components/modules/forum/ForumPost.js +5 -5
- package/dist/components/modules/forum/NewTopicModal.d.ts +7 -7
- package/dist/components/modules/forum/NewTopicModal.js +26 -26
- package/dist/components/modules/forum/TopicItem.d.ts +15 -15
- package/dist/components/modules/forum/TopicItem.js +6 -6
- package/dist/components/modules/galleries/GalleryCard.d.ts +9 -9
- package/dist/components/modules/galleries/GalleryCard.js +5 -5
- package/dist/components/modules/giveaways/GiveawayCard.d.ts +9 -9
- package/dist/components/modules/giveaways/GiveawayCard.js +6 -6
- package/dist/components/modules/groups/ApplicationModal.d.ts +7 -7
- package/dist/components/modules/groups/ApplicationModal.js +27 -27
- package/dist/components/modules/groups/GroupCard.d.ts +12 -12
- package/dist/components/modules/groups/GroupCard.js +6 -6
- package/dist/components/modules/guest/Introduction.js +13 -13
- package/dist/components/modules/magaza/BackToStore.js +10 -10
- package/dist/components/modules/magaza/StoreHeader.js +8 -8
- package/dist/components/modules/news/NewsCard.js +6 -6
- package/dist/components/modules/news/NewsComments.js +52 -52
- package/dist/components/modules/profile/CloudStorageModal.d.ts +8 -8
- package/dist/components/modules/profile/CloudStorageModal.js +31 -31
- package/dist/components/modules/profile/EditProfileModal.d.ts +8 -8
- package/dist/components/modules/profile/EditProfileModal.js +27 -27
- package/dist/components/modules/profile/ProfileContent.js +70 -70
- package/dist/components/modules/profile/ProfileHeader.js +19 -19
- package/dist/components/modules/profile/ProfileStats.d.ts +1 -1
- package/dist/components/modules/profile/ProfileStats.js +14 -14
- package/dist/components/modules/profile/TeamSelectorModal.js +16 -16
- package/dist/components/modules/stations/StationCard.js +25 -25
- package/dist/components/modules/stations/StationQRModal.js +12 -12
- package/dist/components/shared/FloatingChatButton.js +20 -20
- package/dist/components/shared/Footer.d.ts +1 -1
- package/dist/components/shared/Footer.js +9 -9
- package/dist/components/shared/Header.js +97 -97
- package/dist/components/shared/LoginModal.d.ts.map +1 -1
- package/dist/components/shared/LoginModal.js +12 -16
- package/dist/components/shared/LoginModal.js.map +1 -1
- package/dist/components/shared/MainLayoutWrapper.js +7 -7
- package/dist/components/shared/PageWidth.d.ts +5 -5
- package/dist/components/shared/PageWidth.js +13 -13
- package/dist/components/showcase/SocialTab.d.ts.map +1 -1
- package/dist/components/showcase/SocialTab.js +47 -2
- package/dist/components/showcase/SocialTab.js.map +1 -1
- package/dist/context/AuthContext.d.ts +1 -1
- package/dist/context/AuthContext.d.ts.map +1 -1
- package/dist/context/AuthContext.js +52 -33
- package/dist/context/AuthContext.js.map +1 -1
- package/dist/context/CartContext.js +63 -63
- package/dist/context/ChatContext.d.ts +12 -12
- package/dist/context/ChatContext.js +17 -17
- package/dist/context/LayoutContext.d.ts +10 -10
- package/dist/context/LayoutContext.js +16 -16
- package/dist/context/SocketContext.js +30 -30
- package/dist/context/ThemeContext.d.ts +10 -10
- package/dist/context/ThemeContext.js +39 -39
- package/dist/index.js +80 -80
- package/dist/lib/constants/educationData.js +117 -117
- package/dist/lib/constants/punishmentData.d.ts +29 -29
- package/dist/lib/constants/punishmentData.js +183 -183
- package/dist/lib/constants/seedData.js +694 -694
- package/dist/lib/constants/stationData.js +166 -166
- package/dist/lib/constants/surveyData.js +49 -49
- package/dist/lib/constants/teamData.js +65 -65
- package/dist/types/stats.d.ts +17 -17
- package/dist/types/stats.js +1 -1
- package/package.json +47 -46
- package/src/globals.css +187 -187
- package/next.config.ts +0 -13
- package/postcss.config.js +0 -6
- package/src/app/layout.tsx +0 -64
- package/src/app/page.tsx +0 -101
- package/src/components/Button.tsx +0 -41
- package/src/components/GenderStatsBar.tsx +0 -66
- package/src/components/RollingNumber.tsx +0 -50
- package/src/components/Slider.tsx +0 -114
- package/src/components/StatsGrid.tsx +0 -35
- package/src/components/ViewModeToggle.tsx +0 -39
- package/src/components/modules/auth/Dashboard.tsx +0 -649
- package/src/components/modules/auth/MediaLightbox.tsx +0 -112
- package/src/components/modules/auth/PostCard.tsx +0 -556
- package/src/components/modules/auth/PostInteractionsModal.tsx +0 -138
- package/src/components/modules/auth/RepostModal.tsx +0 -167
- package/src/components/modules/auth/SidebarLeft.tsx +0 -237
- package/src/components/modules/auth/Stories.tsx +0 -69
- package/src/components/modules/auth/StoryViewer.tsx +0 -146
- package/src/components/modules/chat/ChatContainer.tsx +0 -332
- package/src/components/modules/chat/ChatInput.tsx +0 -57
- package/src/components/modules/chat/ChatList.tsx +0 -179
- package/src/components/modules/chat/ChatMessage.tsx +0 -43
- package/src/components/modules/chat/ChatNotes.tsx +0 -58
- package/src/components/modules/community/GroupHeader.tsx +0 -111
- package/src/components/modules/community/GroupMenu.tsx +0 -82
- package/src/components/modules/community/SchoolCard.tsx +0 -104
- package/src/components/modules/community/SurveyCard.tsx +0 -149
- package/src/components/modules/forum/ForumBoard.tsx +0 -78
- package/src/components/modules/forum/ForumPost.tsx +0 -71
- package/src/components/modules/forum/NewTopicModal.tsx +0 -112
- package/src/components/modules/forum/TopicItem.tsx +0 -72
- package/src/components/modules/galleries/GalleryCard.tsx +0 -66
- package/src/components/modules/giveaways/GiveawayCard.tsx +0 -76
- package/src/components/modules/groups/ApplicationModal.tsx +0 -133
- package/src/components/modules/groups/GroupCard.tsx +0 -96
- package/src/components/modules/guest/Introduction.tsx +0 -60
- package/src/components/modules/magaza/BackToStore.tsx +0 -53
- package/src/components/modules/magaza/StoreHeader.tsx +0 -74
- package/src/components/modules/news/NewsCard.tsx +0 -66
- package/src/components/modules/news/NewsComments.tsx +0 -141
- package/src/components/modules/profile/CloudStorageModal.tsx +0 -200
- package/src/components/modules/profile/EditProfileModal.tsx +0 -191
- package/src/components/modules/profile/ProfileContent.tsx +0 -491
- package/src/components/modules/profile/ProfileHeader.tsx +0 -128
- package/src/components/modules/profile/ProfileStats.tsx +0 -72
- package/src/components/modules/profile/TeamSelectorModal.tsx +0 -129
- package/src/components/modules/stations/StationCard.tsx +0 -95
- package/src/components/modules/stations/StationQRModal.tsx +0 -102
- package/src/components/shared/FloatingChatButton.tsx +0 -57
- package/src/components/shared/Footer.tsx +0 -77
- package/src/components/shared/Header.tsx +0 -799
- package/src/components/shared/LoginModal.tsx +0 -208
- package/src/components/shared/MainLayoutWrapper.tsx +0 -15
- package/src/components/shared/PageWidth.tsx +0 -22
- package/src/components/showcase/CommunityTab.tsx +0 -22
- package/src/components/showcase/CorporateTab.tsx +0 -38
- package/src/components/showcase/GeneralTab.tsx +0 -41
- package/src/components/showcase/MessagesTab.tsx +0 -26
- package/src/components/showcase/ProfileTab.tsx +0 -20
- package/src/components/showcase/ShopTab.tsx +0 -24
- package/src/components/showcase/SocialTab.tsx +0 -28
- package/src/context/AuthContext.tsx +0 -104
- package/src/context/CartContext.tsx +0 -93
- package/src/context/ChatContext.tsx +0 -32
- package/src/context/LayoutContext.tsx +0 -29
- package/src/context/SocketContext.tsx +0 -50
- package/src/context/ThemeContext.tsx +0 -52
- package/src/index.ts +0 -96
- package/src/lib/constants/educationData.ts +0 -124
- package/src/lib/constants/punishmentData.ts +0 -201
- package/src/lib/constants/seedData.ts +0 -758
- package/src/lib/constants/stationData.ts +0 -170
- package/src/lib/constants/surveyData.ts +0 -53
- package/src/lib/constants/teamData.ts +0 -69
- package/src/lib/utils/numberFormat.ts +0 -16
- package/src/lib/utils/odpUtils.ts +0 -51
- package/src/types/index.ts +0 -1
- package/src/types/stats.ts +0 -17
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
-
import Link from 'next/link';
|
|
4
|
-
export function TopicItem({ id, boardId, title, author, authorAvatar, replies, views, lastActivity, lastAuthor, isPinned, isHot, isSolved }) {
|
|
5
|
-
return (_jsxs("div", { className: "group flex flex-col md:flex-row items-center gap-6 p-5 md:p-6 glass-panel bg-armoyu-card-bg border border-armoyu-card-border hover:shadow-xl transition-all duration-300 hover:border-blue-500/20", children: [_jsxs("div", { className: "flex-1 min-w-0 flex items-center gap-4 w-full", children: [_jsx("img", { src: authorAvatar, alt: author, className: "w-10 h-10 rounded-full border border-blue-500/20" }), _jsxs("div", { className: "min-w-0", children: [_jsxs("div", { className: "flex items-center gap-2 mb-1 flex-wrap", children: [isPinned && _jsx("span", { className: "px-2 py-0.5 bg-red-500 text-white text-[8px] font-black uppercase tracking-widest rounded-md", children: "BA\u015EA TUTTURULDU" }), isHot && _jsx("span", { className: "px-2 py-0.5 bg-orange-500 text-white text-[8px] font-black uppercase tracking-widest rounded-md", children: "POP\u00DCLER" }), isSolved && _jsx("span", { className: "px-2 py-0.5 bg-emerald-500 text-white text-[8px] font-black uppercase tracking-widest rounded-md", children: "\u00C7\u00D6Z\u00DCLD\u00DC" }), _jsx(Link, { href: `/forum/${boardId}/${id}`, className: "text-sm md:text-base font-black text-armoyu-text hover:text-blue-500 transition-colors truncate block", children: title })] }), _jsxs("p", { className: "text-[10px] font-bold text-armoyu-text-muted uppercase tracking-widest", children: [_jsx("span", { className: "text-blue-500", children: author }), " taraf\u0131ndan ba\u015Flat\u0131ld\u0131"] })] })] }), _jsxs("div", { className: "hidden lg:flex items-center gap-10 px-8 border-x border-armoyu-card-border/50 shrink-0", children: [_jsxs("div", { className: "text-center", children: [_jsx("span", { className: "block text-sm font-black text-armoyu-text", children: replies }), _jsx("span", { className: "text-[8px] font-bold text-armoyu-text-muted uppercase tracking-widest", children: "YANIT" })] }), _jsxs("div", { className: "text-center", children: [_jsx("span", { className: "block text-sm font-black text-armoyu-text", children: views }), _jsx("span", { className: "text-[8px] font-bold text-armoyu-text-muted uppercase tracking-widest", children: "\u0130ZLENME" })] })] }), _jsxs("div", { className: "hidden md:flex flex-col text-right w-40 shrink-0", children: [_jsx("span", { className: "text-xs font-black text-armoyu-text mb-0.5 truncate", children: lastAuthor }), _jsx("span", { className: "text-[9px] font-bold text-armoyu-text-muted uppercase tracking-tighter", children: lastActivity })] }), _jsxs("div", { className: "md:hidden flex items-center justify-between w-full pt-4 border-t border-armoyu-card-border mt-2", children: [_jsxs("div", { className: "flex gap-4", children: [_jsxs("span", { className: "text-[10px] font-bold text-armoyu-text-muted uppercase tracking-widest", children: [replies, " Yan\u0131t"] }), _jsxs("span", { className: "text-[10px] font-bold text-armoyu-text-muted uppercase tracking-widest", children: [views, " \u0130zlenme"] })] }), _jsx("span", { className: "text-[10px] font-bold text-blue-500 uppercase tracking-widest", children: lastActivity })] })] }));
|
|
6
|
-
}
|
|
1
|
+
'use client';
|
|
2
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
+
import Link from 'next/link';
|
|
4
|
+
export function TopicItem({ id, boardId, title, author, authorAvatar, replies, views, lastActivity, lastAuthor, isPinned, isHot, isSolved }) {
|
|
5
|
+
return (_jsxs("div", { className: "group flex flex-col md:flex-row items-center gap-6 p-5 md:p-6 glass-panel bg-armoyu-card-bg border border-armoyu-card-border hover:shadow-xl transition-all duration-300 hover:border-blue-500/20", children: [_jsxs("div", { className: "flex-1 min-w-0 flex items-center gap-4 w-full", children: [_jsx("img", { src: authorAvatar, alt: author, className: "w-10 h-10 rounded-full border border-blue-500/20" }), _jsxs("div", { className: "min-w-0", children: [_jsxs("div", { className: "flex items-center gap-2 mb-1 flex-wrap", children: [isPinned && _jsx("span", { className: "px-2 py-0.5 bg-red-500 text-white text-[8px] font-black uppercase tracking-widest rounded-md", children: "BA\u015EA TUTTURULDU" }), isHot && _jsx("span", { className: "px-2 py-0.5 bg-orange-500 text-white text-[8px] font-black uppercase tracking-widest rounded-md", children: "POP\u00DCLER" }), isSolved && _jsx("span", { className: "px-2 py-0.5 bg-emerald-500 text-white text-[8px] font-black uppercase tracking-widest rounded-md", children: "\u00C7\u00D6Z\u00DCLD\u00DC" }), _jsx(Link, { href: `/forum/${boardId}/${id}`, className: "text-sm md:text-base font-black text-armoyu-text hover:text-blue-500 transition-colors truncate block", children: title })] }), _jsxs("p", { className: "text-[10px] font-bold text-armoyu-text-muted uppercase tracking-widest", children: [_jsx("span", { className: "text-blue-500", children: author }), " taraf\u0131ndan ba\u015Flat\u0131ld\u0131"] })] })] }), _jsxs("div", { className: "hidden lg:flex items-center gap-10 px-8 border-x border-armoyu-card-border/50 shrink-0", children: [_jsxs("div", { className: "text-center", children: [_jsx("span", { className: "block text-sm font-black text-armoyu-text", children: replies }), _jsx("span", { className: "text-[8px] font-bold text-armoyu-text-muted uppercase tracking-widest", children: "YANIT" })] }), _jsxs("div", { className: "text-center", children: [_jsx("span", { className: "block text-sm font-black text-armoyu-text", children: views }), _jsx("span", { className: "text-[8px] font-bold text-armoyu-text-muted uppercase tracking-widest", children: "\u0130ZLENME" })] })] }), _jsxs("div", { className: "hidden md:flex flex-col text-right w-40 shrink-0", children: [_jsx("span", { className: "text-xs font-black text-armoyu-text mb-0.5 truncate", children: lastAuthor }), _jsx("span", { className: "text-[9px] font-bold text-armoyu-text-muted uppercase tracking-tighter", children: lastActivity })] }), _jsxs("div", { className: "md:hidden flex items-center justify-between w-full pt-4 border-t border-armoyu-card-border mt-2", children: [_jsxs("div", { className: "flex gap-4", children: [_jsxs("span", { className: "text-[10px] font-bold text-armoyu-text-muted uppercase tracking-widest", children: [replies, " Yan\u0131t"] }), _jsxs("span", { className: "text-[10px] font-bold text-armoyu-text-muted uppercase tracking-widest", children: [views, " \u0130zlenme"] })] }), _jsx("span", { className: "text-[10px] font-bold text-blue-500 uppercase tracking-widest", children: lastActivity })] })] }));
|
|
6
|
+
}
|
|
7
7
|
//# sourceMappingURL=TopicItem.js.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export interface GalleryCardProps {
|
|
2
|
-
title: string;
|
|
3
|
-
count: number;
|
|
4
|
-
author: string;
|
|
5
|
-
date: string;
|
|
6
|
-
category: string;
|
|
7
|
-
image: string;
|
|
8
|
-
}
|
|
9
|
-
export declare function GalleryCard({ title, count, author, date, category, image }: GalleryCardProps): import("react/jsx-runtime").JSX.Element;
|
|
1
|
+
export interface GalleryCardProps {
|
|
2
|
+
title: string;
|
|
3
|
+
count: number;
|
|
4
|
+
author: string;
|
|
5
|
+
date: string;
|
|
6
|
+
category: string;
|
|
7
|
+
image: string;
|
|
8
|
+
}
|
|
9
|
+
export declare function GalleryCard({ title, count, author, date, category, image }: GalleryCardProps): import("react/jsx-runtime").JSX.Element;
|
|
10
10
|
//# sourceMappingURL=GalleryCard.d.ts.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
-
export function GalleryCard({ title, count, author, date, category, image }) {
|
|
4
|
-
return (_jsxs("div", { className: "group relative glass-panel rounded-3xl overflow-hidden border border-armoyu-card-border bg-armoyu-card-bg shadow-sm hover:shadow-2xl transition-all duration-500 cursor-pointer", children: [_jsxs("div", { className: "aspect-[4/3] overflow-hidden relative", children: [_jsx("img", { src: image, alt: title, className: "w-full h-full object-cover group-hover:scale-110 transition-transform duration-1000" }), _jsx("div", { className: "absolute inset-0 bg-gradient-to-t from-black/80 via-black/20 to-transparent opacity-60 group-hover:opacity-80 transition-opacity" }), _jsxs("div", { className: "absolute top-4 right-4 bg-white/10 backdrop-blur-md border border-white/20 px-3 py-1.5 rounded-2xl text-[10px] font-black text-white flex items-center gap-2", children: [_jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", width: "12", height: "12", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "3", children: [_jsx("rect", { x: "3", y: "3", width: "18", height: "18", rx: "2", ry: "2" }), _jsx("circle", { cx: "8.5", cy: "8.5", r: "1.5" }), _jsx("polyline", { points: "21 15 16 10 5 21" })] }), count, " Foto\u011Fraf"] })] }), _jsxs("div", { className: "p-5", children: [_jsxs("div", { className: "flex items-center gap-2 mb-2", children: [_jsx("span", { className: "text-[10px] font-black uppercase tracking-widest text-blue-500 bg-blue-500/10 px-2 py-0.5 rounded-md", children: category }), _jsx("span", { className: "text-[10px] font-bold text-armoyu-text-muted opacity-60", children: date })] }), _jsx("h3", { className: "text-lg font-black text-armoyu-text group-hover:text-blue-500 transition-colors mb-4 line-clamp-1", children: title }), _jsxs("div", { className: "flex items-center justify-between pt-4 border-t border-armoyu-card-border", children: [_jsxs("div", { className: "flex items-center gap-2", children: [_jsx("img", { src: `https://api.dicebear.com/7.x/avataaars/svg?seed=${author}`, alt: author, className: "w-6 h-6 rounded-full bg-white/5 border border-black/10" }), _jsxs("span", { className: "text-xs font-bold text-armoyu-text-muted", children: ["@", author] })] }), _jsx("button", { className: "p-2 rounded-xl bg-black/5 dark:bg-white/5 text-armoyu-text-muted hover:text-blue-500 hover:bg-blue-500/10 transition-all", children: _jsx("svg", { xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2.5", children: _jsx("polyline", { points: "9 18 15 12 9 6" }) }) })] })] })] }));
|
|
5
|
-
}
|
|
1
|
+
'use client';
|
|
2
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
+
export function GalleryCard({ title, count, author, date, category, image }) {
|
|
4
|
+
return (_jsxs("div", { className: "group relative glass-panel rounded-3xl overflow-hidden border border-armoyu-card-border bg-armoyu-card-bg shadow-sm hover:shadow-2xl transition-all duration-500 cursor-pointer", children: [_jsxs("div", { className: "aspect-[4/3] overflow-hidden relative", children: [_jsx("img", { src: image, alt: title, className: "w-full h-full object-cover group-hover:scale-110 transition-transform duration-1000" }), _jsx("div", { className: "absolute inset-0 bg-gradient-to-t from-black/80 via-black/20 to-transparent opacity-60 group-hover:opacity-80 transition-opacity" }), _jsxs("div", { className: "absolute top-4 right-4 bg-white/10 backdrop-blur-md border border-white/20 px-3 py-1.5 rounded-2xl text-[10px] font-black text-white flex items-center gap-2", children: [_jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", width: "12", height: "12", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "3", children: [_jsx("rect", { x: "3", y: "3", width: "18", height: "18", rx: "2", ry: "2" }), _jsx("circle", { cx: "8.5", cy: "8.5", r: "1.5" }), _jsx("polyline", { points: "21 15 16 10 5 21" })] }), count, " Foto\u011Fraf"] })] }), _jsxs("div", { className: "p-5", children: [_jsxs("div", { className: "flex items-center gap-2 mb-2", children: [_jsx("span", { className: "text-[10px] font-black uppercase tracking-widest text-blue-500 bg-blue-500/10 px-2 py-0.5 rounded-md", children: category }), _jsx("span", { className: "text-[10px] font-bold text-armoyu-text-muted opacity-60", children: date })] }), _jsx("h3", { className: "text-lg font-black text-armoyu-text group-hover:text-blue-500 transition-colors mb-4 line-clamp-1", children: title }), _jsxs("div", { className: "flex items-center justify-between pt-4 border-t border-armoyu-card-border", children: [_jsxs("div", { className: "flex items-center gap-2", children: [_jsx("img", { src: `https://api.dicebear.com/7.x/avataaars/svg?seed=${author}`, alt: author, className: "w-6 h-6 rounded-full bg-white/5 border border-black/10" }), _jsxs("span", { className: "text-xs font-bold text-armoyu-text-muted", children: ["@", author] })] }), _jsx("button", { className: "p-2 rounded-xl bg-black/5 dark:bg-white/5 text-armoyu-text-muted hover:text-blue-500 hover:bg-blue-500/10 transition-all", children: _jsx("svg", { xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2.5", children: _jsx("polyline", { points: "9 18 15 12 9 6" }) }) })] })] })] }));
|
|
5
|
+
}
|
|
6
6
|
//# sourceMappingURL=GalleryCard.js.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export interface GiveawayCardProps {
|
|
2
|
-
title: string;
|
|
3
|
-
prize: string;
|
|
4
|
-
status: 'active' | 'ended';
|
|
5
|
-
participants: number;
|
|
6
|
-
timeLeft: string;
|
|
7
|
-
image: string;
|
|
8
|
-
}
|
|
9
|
-
export declare function GiveawayCard({ title, prize, status, participants, timeLeft, image }: GiveawayCardProps): import("react/jsx-runtime").JSX.Element;
|
|
1
|
+
export interface GiveawayCardProps {
|
|
2
|
+
title: string;
|
|
3
|
+
prize: string;
|
|
4
|
+
status: 'active' | 'ended';
|
|
5
|
+
participants: number;
|
|
6
|
+
timeLeft: string;
|
|
7
|
+
image: string;
|
|
8
|
+
}
|
|
9
|
+
export declare function GiveawayCard({ title, prize, status, participants, timeLeft, image }: GiveawayCardProps): import("react/jsx-runtime").JSX.Element;
|
|
10
10
|
//# sourceMappingURL=GiveawayCard.d.ts.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
-
export function GiveawayCard({ title, prize, status, participants, timeLeft, image }) {
|
|
4
|
-
const isActive = status === 'active';
|
|
5
|
-
return (_jsxs("div", { className: `group glass-panel rounded-[40px] overflow-hidden border transition-all duration-700 flex flex-col h-full bg-armoyu-card-bg shadow-sm ${isActive ? 'border-blue-500/20 hover:border-blue-500/50 hover:shadow-2xl hover:shadow-blue-500/20' : 'border-armoyu-card-border opacity-60 grayscale-[0.5]'}`, children: [_jsxs("div", { className: "aspect-square p-8 relative flex items-center justify-center", children: [_jsx("div", { className: `absolute inset-0 bg-gradient-to-br transition-opacity duration-500 ${isActive ? 'from-blue-600/10 to-indigo-600/10 opacity-100' : 'from-gray-500/5 to-gray-600/5 opacity-50'}` }), _jsx("img", { src: image, alt: prize, className: "w-48 h-48 object-contain group-hover:scale-110 transition-transform duration-700 drop-shadow-2xl relative z-10" }), _jsx("div", { className: "absolute top-6 left-6 z-20", children: _jsxs("span", { className: `px-4 py-2 rounded-2xl text-[9px] font-black uppercase tracking-widest flex items-center gap-2 shadow-xl backdrop-blur-md border ${isActive ? 'bg-emerald-500/80 text-white border-emerald-400/30 shadow-emerald-500/20' : 'bg-gray-200 dark:bg-zinc-800/80 text-gray-500 dark:text-zinc-400 border-black/5 dark:border-white/5 shadow-black/5 dark:shadow-black/20'}`, children: [isActive && _jsx("span", { className: "w-1.5 h-1.5 rounded-full bg-white animate-pulse shadow-[0_0_8px_rgba(255,255,255,0.8)]" }), isActive ? 'Aktif' : 'Bitti'] }) })] }), _jsxs("div", { className: "px-8 pb-8 flex-1 flex flex-col text-center mt-[-40px]", children: [_jsxs("div", { className: "relative z-10 p-6 rounded-[32px] bg-white dark:bg-zinc-900 border border-armoyu-card-border shadow-xl shadow-black/[0.03] dark:shadow-2xl backdrop-blur-xl", children: [_jsx("h3", { className: "text-xl font-black text-blue-600 dark:text-white mb-2 line-clamp-1 leading-tight", children: prize }), _jsx("p", { className: "text-[10px] font-black text-blue-500 uppercase tracking-widest mb-6 block border-b border-black/5 dark:border-white/5 pb-2", children: title }), _jsxs("div", { className: "grid grid-cols-2 gap-3 mb-8", children: [_jsxs("div", { className: "p-3 rounded-2xl bg-black/5 dark:bg-white/5 border border-black/5 dark:border-white/5 flex flex-col items-center justify-center", children: [_jsx("span", { className: "block text-[7px] font-black text-armoyu-text-muted uppercase mb-1 tracking-tighter", children: "Kalan S\u00FCre" }), _jsx("span", { className: `block text-xs font-black uppercase ${isActive ? 'text-blue-500' : 'text-zinc-500'}`, children: isActive ? timeLeft : 'Bitti' })] }), _jsxs("div", { className: "p-3 rounded-2xl bg-black/5 dark:bg-white/5 border border-black/5 dark:border-white/5 flex flex-col items-center justify-center", children: [_jsx("span", { className: "block text-[7px] font-black text-armoyu-text-muted uppercase mb-1 tracking-tighter", children: "Kat\u0131l\u0131mc\u0131" }), _jsxs("span", { className: "block text-xs font-black text-armoyu-text leading-none", children: [participants, " ", _jsx("span", { className: "text-[8px] opacity-60", children: "Ki\u015Fi" })] })] })] }), _jsxs("button", { disabled: !isActive, className: `w-full py-4 rounded-2xl font-black text-[11px] uppercase tracking-widest transition-all shadow-xl relative overflow-hidden group/btn ${isActive ? 'bg-blue-600 hover:bg-blue-500 text-white shadow-blue-500/20 active:scale-95' : 'bg-gray-100 dark:bg-zinc-800 text-gray-400 dark:text-zinc-500 cursor-not-allowed border border-black/5 dark:border-white/5 shadow-none'}`, children: [_jsx("div", { className: "absolute inset-0 bg-gradient-to-r from-transparent via-white/10 to-transparent -translate-x-full group-hover/btn:translate-x-full transition-transform duration-1000" }), isActive ? 'Çekilişe Katıl' : 'Sonuçları Gör'] })] }), _jsxs("div", { className: "mt-8 flex justify-center -space-x-3", children: [[1, 2, 3, 4].map(i => (_jsx("img", { src: `https://api.dicebear.com/7.x/avataaars/svg?seed=${i + 12}`, className: "w-8 h-8 rounded-full border-2 border-armoyu-card-bg bg-white/10", alt: "part" }, i))), _jsxs("div", { className: "w-8 h-8 rounded-full border-2 border-armoyu-card-bg bg-armoyu-card-border flex items-center justify-center text-[10px] font-black text-armoyu-text", children: ["+", participants - 4] })] })] })] }));
|
|
6
|
-
}
|
|
1
|
+
'use client';
|
|
2
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
+
export function GiveawayCard({ title, prize, status, participants, timeLeft, image }) {
|
|
4
|
+
const isActive = status === 'active';
|
|
5
|
+
return (_jsxs("div", { className: `group glass-panel rounded-[40px] overflow-hidden border transition-all duration-700 flex flex-col h-full bg-armoyu-card-bg shadow-sm ${isActive ? 'border-blue-500/20 hover:border-blue-500/50 hover:shadow-2xl hover:shadow-blue-500/20' : 'border-armoyu-card-border opacity-60 grayscale-[0.5]'}`, children: [_jsxs("div", { className: "aspect-square p-8 relative flex items-center justify-center", children: [_jsx("div", { className: `absolute inset-0 bg-gradient-to-br transition-opacity duration-500 ${isActive ? 'from-blue-600/10 to-indigo-600/10 opacity-100' : 'from-gray-500/5 to-gray-600/5 opacity-50'}` }), _jsx("img", { src: image, alt: prize, className: "w-48 h-48 object-contain group-hover:scale-110 transition-transform duration-700 drop-shadow-2xl relative z-10" }), _jsx("div", { className: "absolute top-6 left-6 z-20", children: _jsxs("span", { className: `px-4 py-2 rounded-2xl text-[9px] font-black uppercase tracking-widest flex items-center gap-2 shadow-xl backdrop-blur-md border ${isActive ? 'bg-emerald-500/80 text-white border-emerald-400/30 shadow-emerald-500/20' : 'bg-gray-200 dark:bg-zinc-800/80 text-gray-500 dark:text-zinc-400 border-black/5 dark:border-white/5 shadow-black/5 dark:shadow-black/20'}`, children: [isActive && _jsx("span", { className: "w-1.5 h-1.5 rounded-full bg-white animate-pulse shadow-[0_0_8px_rgba(255,255,255,0.8)]" }), isActive ? 'Aktif' : 'Bitti'] }) })] }), _jsxs("div", { className: "px-8 pb-8 flex-1 flex flex-col text-center mt-[-40px]", children: [_jsxs("div", { className: "relative z-10 p-6 rounded-[32px] bg-white dark:bg-zinc-900 border border-armoyu-card-border shadow-xl shadow-black/[0.03] dark:shadow-2xl backdrop-blur-xl", children: [_jsx("h3", { className: "text-xl font-black text-blue-600 dark:text-white mb-2 line-clamp-1 leading-tight", children: prize }), _jsx("p", { className: "text-[10px] font-black text-blue-500 uppercase tracking-widest mb-6 block border-b border-black/5 dark:border-white/5 pb-2", children: title }), _jsxs("div", { className: "grid grid-cols-2 gap-3 mb-8", children: [_jsxs("div", { className: "p-3 rounded-2xl bg-black/5 dark:bg-white/5 border border-black/5 dark:border-white/5 flex flex-col items-center justify-center", children: [_jsx("span", { className: "block text-[7px] font-black text-armoyu-text-muted uppercase mb-1 tracking-tighter", children: "Kalan S\u00FCre" }), _jsx("span", { className: `block text-xs font-black uppercase ${isActive ? 'text-blue-500' : 'text-zinc-500'}`, children: isActive ? timeLeft : 'Bitti' })] }), _jsxs("div", { className: "p-3 rounded-2xl bg-black/5 dark:bg-white/5 border border-black/5 dark:border-white/5 flex flex-col items-center justify-center", children: [_jsx("span", { className: "block text-[7px] font-black text-armoyu-text-muted uppercase mb-1 tracking-tighter", children: "Kat\u0131l\u0131mc\u0131" }), _jsxs("span", { className: "block text-xs font-black text-armoyu-text leading-none", children: [participants, " ", _jsx("span", { className: "text-[8px] opacity-60", children: "Ki\u015Fi" })] })] })] }), _jsxs("button", { disabled: !isActive, className: `w-full py-4 rounded-2xl font-black text-[11px] uppercase tracking-widest transition-all shadow-xl relative overflow-hidden group/btn ${isActive ? 'bg-blue-600 hover:bg-blue-500 text-white shadow-blue-500/20 active:scale-95' : 'bg-gray-100 dark:bg-zinc-800 text-gray-400 dark:text-zinc-500 cursor-not-allowed border border-black/5 dark:border-white/5 shadow-none'}`, children: [_jsx("div", { className: "absolute inset-0 bg-gradient-to-r from-transparent via-white/10 to-transparent -translate-x-full group-hover/btn:translate-x-full transition-transform duration-1000" }), isActive ? 'Çekilişe Katıl' : 'Sonuçları Gör'] })] }), _jsxs("div", { className: "mt-8 flex justify-center -space-x-3", children: [[1, 2, 3, 4].map(i => (_jsx("img", { src: `https://api.dicebear.com/7.x/avataaars/svg?seed=${i + 12}`, className: "w-8 h-8 rounded-full border-2 border-armoyu-card-bg bg-white/10", alt: "part" }, i))), _jsxs("div", { className: "w-8 h-8 rounded-full border-2 border-armoyu-card-bg bg-armoyu-card-border flex items-center justify-center text-[10px] font-black text-armoyu-text", children: ["+", participants - 4] })] })] })] }));
|
|
6
|
+
}
|
|
7
7
|
//# sourceMappingURL=GiveawayCard.js.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
interface ApplicationModalProps {
|
|
2
|
-
isOpen: boolean;
|
|
3
|
-
onClose: () => void;
|
|
4
|
-
selectedRole?: string;
|
|
5
|
-
}
|
|
6
|
-
export declare function ApplicationModal({ isOpen, onClose, selectedRole }: ApplicationModalProps): import("react/jsx-runtime").JSX.Element | null;
|
|
7
|
-
export {};
|
|
1
|
+
interface ApplicationModalProps {
|
|
2
|
+
isOpen: boolean;
|
|
3
|
+
onClose: () => void;
|
|
4
|
+
selectedRole?: string;
|
|
5
|
+
}
|
|
6
|
+
export declare function ApplicationModal({ isOpen, onClose, selectedRole }: ApplicationModalProps): import("react/jsx-runtime").JSX.Element | null;
|
|
7
|
+
export {};
|
|
8
8
|
//# sourceMappingURL=ApplicationModal.d.ts.map
|
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
-
import { useEffect } from 'react';
|
|
4
|
-
const ACTIVE_ROLES = [
|
|
5
|
-
"Genel Başvuru",
|
|
6
|
-
"Yazılım Geliştirici",
|
|
7
|
-
"Grafik Tasarımcı",
|
|
8
|
-
"Sosyal Medya Sorumlusu",
|
|
9
|
-
"Oyun Yetkilisi",
|
|
10
|
-
"Yayıncı",
|
|
11
|
-
"E-Spor Oyuncusu",
|
|
12
|
-
"Moderatör"
|
|
13
|
-
];
|
|
14
|
-
export function ApplicationModal({ isOpen, onClose, selectedRole }) {
|
|
15
|
-
// ESC tuşu ile kapatma
|
|
16
|
-
useEffect(() => {
|
|
17
|
-
const handleEsc = (e) => {
|
|
18
|
-
if (e.key === 'Escape')
|
|
19
|
-
onClose();
|
|
20
|
-
};
|
|
21
|
-
window.addEventListener('keydown', handleEsc);
|
|
22
|
-
return () => window.removeEventListener('keydown', handleEsc);
|
|
23
|
-
}, [onClose]);
|
|
24
|
-
if (!isOpen)
|
|
25
|
-
return null;
|
|
26
|
-
return (_jsxs("div", { className: "fixed inset-0 z-[100] flex items-center justify-center p-4", children: [_jsx("div", { className: "absolute inset-0 bg-[#0a0a0f]/90 backdrop-blur-xl animate-in fade-in duration-500", onClick: onClose }), _jsxs("div", { className: "relative w-full max-w-xl glass-panel bg-armoyu-card-bg border border-armoyu-card-border rounded-[40px] shadow-[0_32px_120px_rgba(0,0,0,0.6)] overflow-hidden animate-in zoom-in-95 fade-in duration-500", children: [_jsx("div", { className: "absolute top-0 right-0 w-64 h-64 bg-blue-600/10 blur-[100px] rounded-full -mr-32 -mt-32 pointer-events-none" }), _jsx("div", { className: "absolute bottom-0 left-0 w-48 h-48 bg-blue-400/5 blur-[80px] rounded-full -ml-24 -mb-24 pointer-events-none" }), _jsxs("div", { className: "p-10 pb-8 border-b border-armoyu-card-border flex items-start justify-between relative z-10", children: [_jsxs("div", { children: [_jsx("h2", { className: "text-3xl font-black text-armoyu-text uppercase tracking-tighter italic leading-none", children: "EK\u0130P BA\u015EVURUSU" }), _jsxs("div", { className: "flex items-center gap-2 mt-3", children: [_jsx("span", { className: "w-2 h-2 rounded-full bg-blue-500 animate-pulse shadow-[0_0_8px_rgba(59,130,246,0.8)]" }), _jsx("p", { className: "text-[10px] font-black text-blue-500 uppercase tracking-[0.2em]", children: "ARMOYU AKADEM\u0130S\u0130NE HO\u015E GELD\u0130N\u0130Z" })] })] }), _jsx("button", { onClick: onClose, className: "w-12 h-12 rounded-2xl bg-black/5 dark:bg-white/5 border border-armoyu-card-border flex items-center justify-center hover:bg-red-500 hover:text-white hover:border-red-500 transition-all group active:scale-90", children: _jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", width: "20", height: "20", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "3", className: "group-hover:rotate-90 transition-transform", children: [_jsx("line", { x1: "18", y1: "6", x2: "6", y2: "18" }), _jsx("line", { x1: "6", y1: "6", x2: "18", y2: "18" })] }) })] }), _jsxs("form", { className: "p-10 pt-8 space-y-8 relative z-10", onSubmit: (e) => { e.preventDefault(); alert('Başvurunuz başarıyla alındı!'); onClose(); }, children: [_jsxs("div", { className: "space-y-6", children: [_jsxs("div", { className: "space-y-2.5", children: [_jsxs("label", { className: "text-[10px] font-black uppercase tracking-widest text-armoyu-text-muted ml-1 flex items-center gap-2", children: [_jsx("span", { className: "w-1.5 h-1.5 rounded-full bg-blue-500/50" }), "Pozisyon (Aktif \u0130lanlar)"] }), _jsxs("div", { className: "relative group", children: [_jsx("select", { defaultValue: selectedRole || "Genel Başvuru", className: "w-full bg-black/10 dark:bg-black/20 border border-armoyu-card-border rounded-2xl px-6 py-4 text-armoyu-text focus:outline-none focus:border-blue-500/50 focus:ring-1 focus:ring-blue-500/50 transition-all font-black text-sm appearance-none cursor-pointer group-hover:border-armoyu-text-muted/30 uppercase tracking-tight", children: ACTIVE_ROLES.map(role => (_jsx("option", { value: role, className: "bg-[#12121a] text-white py-4", children: role }, role))) }), _jsx("div", { className: "absolute right-6 top-1/2 -translate-y-1/2 pointer-events-none text-armoyu-text-muted transition-transform group-hover:translate-y-[-40%]", children: _jsx("svg", { xmlns: "http://www.w3.org/2000/svg", width: "18", height: "18", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "3", strokeLinecap: "round", strokeLinejoin: "round", children: _jsx("polyline", { points: "6 9 12 15 18 9" }) }) })] })] }), _jsxs("div", { className: "grid grid-cols-1 md:grid-cols-2 gap-6", children: [_jsxs("div", { className: "space-y-2.5", children: [_jsx("label", { className: "text-[10px] font-black uppercase tracking-widest text-armoyu-text-muted ml-1", children: "AD SOYAD" }), _jsx("input", { required: true, type: "text", className: "w-full bg-black/10 dark:bg-black/20 border border-armoyu-card-border rounded-2xl px-6 py-4 text-armoyu-text placeholder:text-armoyu-text-muted/40 focus:outline-none focus:border-blue-500/50 focus:ring-1 focus:ring-blue-500/50 transition-all font-bold text-sm uppercase tracking-tight", placeholder: "\u00D6rn: Berkay Tikeno\u011Flu" })] }), _jsxs("div", { className: "space-y-2.5", children: [_jsx("label", { className: "text-[10px] font-black uppercase tracking-widest text-armoyu-text-muted ml-1", children: "YA\u015E" }), _jsx("input", { required: true, type: "number", min: "13", max: "99", className: "w-full bg-black/10 dark:bg-black/20 border border-armoyu-card-border rounded-2xl px-6 py-4 text-armoyu-text focus:outline-none focus:border-blue-500/50 focus:ring-1 focus:ring-blue-500/50 transition-all font-bold text-sm", placeholder: "\u00D6rn: 24" })] })] }), _jsxs("div", { className: "space-y-2.5", children: [_jsx("label", { className: "text-[10px] font-black uppercase tracking-widest text-armoyu-text-muted ml-1", children: "E-POSTA ADRES\u0130" }), _jsx("input", { required: true, type: "email", className: "w-full bg-black/10 dark:bg-black/20 border border-armoyu-card-border rounded-2xl px-6 py-4 text-armoyu-text placeholder:text-armoyu-text-muted/40 focus:outline-none focus:border-blue-500/50 focus:ring-1 focus:ring-blue-500/50 transition-all font-bold text-sm", placeholder: "ornek@armoyu.com" })] }), _jsxs("div", { className: "space-y-2.5", children: [_jsx("label", { className: "text-[10px] font-black uppercase tracking-widest text-armoyu-text-muted ml-1", children: "TECR\u00DCBELER & KEND\u0130NDEN BAHSET" }), _jsx("textarea", { required: true, rows: 4, className: "w-full bg-black/10 dark:bg-black/20 border border-armoyu-card-border rounded-2xl px-6 py-4 text-armoyu-text placeholder:text-armoyu-text-muted/40 focus:outline-none focus:border-blue-500/50 focus:ring-1 focus:ring-blue-500/50 transition-all font-medium text-sm no-scrollbar resize-none leading-relaxed", placeholder: "Neden sizi aram\u0131za almal\u0131y\u0131z? \u0130lgili tecr\u00FCbeleriniz nelerdir?.." })] })] }), _jsx("div", { className: "pt-4", children: _jsxs("button", { className: "w-full py-5 bg-blue-600 hover:bg-blue-500 text-white font-black text-xs uppercase tracking-[0.2em] rounded-2xl shadow-2xl shadow-blue-600/20 transition-all active:scale-95 relative overflow-hidden group/btn", children: [_jsx("div", { className: "absolute inset-0 bg-gradient-to-r from-transparent via-white/10 to-transparent -translate-x-full group-hover/btn:translate-x-full transition-transform duration-1000" }), "BA\u015EVURUYU TAMAMLA"] }) }), _jsxs("div", { className: "flex items-center gap-3 p-4 bg-blue-500/5 border border-blue-500/10 rounded-2xl", children: [_jsx("div", { className: "w-1.5 h-full bg-blue-500 rounded-full" }), _jsx("p", { className: "text-[9px] text-armoyu-text-muted uppercase tracking-widest leading-relaxed font-bold", children: "Ba\u015Fvurunuz incelendikten sonra e-posta ve SMS yoluyla taraf\u0131n\u0131za bilgilendirme yap\u0131lacakt\u0131r. L\u00FCtfen bilgilerin do\u011Frulu\u011Fundan emin olun. \u2728" })] })] })] })] }));
|
|
27
|
-
}
|
|
1
|
+
'use client';
|
|
2
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { useEffect } from 'react';
|
|
4
|
+
const ACTIVE_ROLES = [
|
|
5
|
+
"Genel Başvuru",
|
|
6
|
+
"Yazılım Geliştirici",
|
|
7
|
+
"Grafik Tasarımcı",
|
|
8
|
+
"Sosyal Medya Sorumlusu",
|
|
9
|
+
"Oyun Yetkilisi",
|
|
10
|
+
"Yayıncı",
|
|
11
|
+
"E-Spor Oyuncusu",
|
|
12
|
+
"Moderatör"
|
|
13
|
+
];
|
|
14
|
+
export function ApplicationModal({ isOpen, onClose, selectedRole }) {
|
|
15
|
+
// ESC tuşu ile kapatma
|
|
16
|
+
useEffect(() => {
|
|
17
|
+
const handleEsc = (e) => {
|
|
18
|
+
if (e.key === 'Escape')
|
|
19
|
+
onClose();
|
|
20
|
+
};
|
|
21
|
+
window.addEventListener('keydown', handleEsc);
|
|
22
|
+
return () => window.removeEventListener('keydown', handleEsc);
|
|
23
|
+
}, [onClose]);
|
|
24
|
+
if (!isOpen)
|
|
25
|
+
return null;
|
|
26
|
+
return (_jsxs("div", { className: "fixed inset-0 z-[100] flex items-center justify-center p-4", children: [_jsx("div", { className: "absolute inset-0 bg-[#0a0a0f]/90 backdrop-blur-xl animate-in fade-in duration-500", onClick: onClose }), _jsxs("div", { className: "relative w-full max-w-xl glass-panel bg-armoyu-card-bg border border-armoyu-card-border rounded-[40px] shadow-[0_32px_120px_rgba(0,0,0,0.6)] overflow-hidden animate-in zoom-in-95 fade-in duration-500", children: [_jsx("div", { className: "absolute top-0 right-0 w-64 h-64 bg-blue-600/10 blur-[100px] rounded-full -mr-32 -mt-32 pointer-events-none" }), _jsx("div", { className: "absolute bottom-0 left-0 w-48 h-48 bg-blue-400/5 blur-[80px] rounded-full -ml-24 -mb-24 pointer-events-none" }), _jsxs("div", { className: "p-10 pb-8 border-b border-armoyu-card-border flex items-start justify-between relative z-10", children: [_jsxs("div", { children: [_jsx("h2", { className: "text-3xl font-black text-armoyu-text uppercase tracking-tighter italic leading-none", children: "EK\u0130P BA\u015EVURUSU" }), _jsxs("div", { className: "flex items-center gap-2 mt-3", children: [_jsx("span", { className: "w-2 h-2 rounded-full bg-blue-500 animate-pulse shadow-[0_0_8px_rgba(59,130,246,0.8)]" }), _jsx("p", { className: "text-[10px] font-black text-blue-500 uppercase tracking-[0.2em]", children: "ARMOYU AKADEM\u0130S\u0130NE HO\u015E GELD\u0130N\u0130Z" })] })] }), _jsx("button", { onClick: onClose, className: "w-12 h-12 rounded-2xl bg-black/5 dark:bg-white/5 border border-armoyu-card-border flex items-center justify-center hover:bg-red-500 hover:text-white hover:border-red-500 transition-all group active:scale-90", children: _jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", width: "20", height: "20", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "3", className: "group-hover:rotate-90 transition-transform", children: [_jsx("line", { x1: "18", y1: "6", x2: "6", y2: "18" }), _jsx("line", { x1: "6", y1: "6", x2: "18", y2: "18" })] }) })] }), _jsxs("form", { className: "p-10 pt-8 space-y-8 relative z-10", onSubmit: (e) => { e.preventDefault(); alert('Başvurunuz başarıyla alındı!'); onClose(); }, children: [_jsxs("div", { className: "space-y-6", children: [_jsxs("div", { className: "space-y-2.5", children: [_jsxs("label", { className: "text-[10px] font-black uppercase tracking-widest text-armoyu-text-muted ml-1 flex items-center gap-2", children: [_jsx("span", { className: "w-1.5 h-1.5 rounded-full bg-blue-500/50" }), "Pozisyon (Aktif \u0130lanlar)"] }), _jsxs("div", { className: "relative group", children: [_jsx("select", { defaultValue: selectedRole || "Genel Başvuru", className: "w-full bg-black/10 dark:bg-black/20 border border-armoyu-card-border rounded-2xl px-6 py-4 text-armoyu-text focus:outline-none focus:border-blue-500/50 focus:ring-1 focus:ring-blue-500/50 transition-all font-black text-sm appearance-none cursor-pointer group-hover:border-armoyu-text-muted/30 uppercase tracking-tight", children: ACTIVE_ROLES.map(role => (_jsx("option", { value: role, className: "bg-[#12121a] text-white py-4", children: role }, role))) }), _jsx("div", { className: "absolute right-6 top-1/2 -translate-y-1/2 pointer-events-none text-armoyu-text-muted transition-transform group-hover:translate-y-[-40%]", children: _jsx("svg", { xmlns: "http://www.w3.org/2000/svg", width: "18", height: "18", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "3", strokeLinecap: "round", strokeLinejoin: "round", children: _jsx("polyline", { points: "6 9 12 15 18 9" }) }) })] })] }), _jsxs("div", { className: "grid grid-cols-1 md:grid-cols-2 gap-6", children: [_jsxs("div", { className: "space-y-2.5", children: [_jsx("label", { className: "text-[10px] font-black uppercase tracking-widest text-armoyu-text-muted ml-1", children: "AD SOYAD" }), _jsx("input", { required: true, type: "text", className: "w-full bg-black/10 dark:bg-black/20 border border-armoyu-card-border rounded-2xl px-6 py-4 text-armoyu-text placeholder:text-armoyu-text-muted/40 focus:outline-none focus:border-blue-500/50 focus:ring-1 focus:ring-blue-500/50 transition-all font-bold text-sm uppercase tracking-tight", placeholder: "\u00D6rn: Berkay Tikeno\u011Flu" })] }), _jsxs("div", { className: "space-y-2.5", children: [_jsx("label", { className: "text-[10px] font-black uppercase tracking-widest text-armoyu-text-muted ml-1", children: "YA\u015E" }), _jsx("input", { required: true, type: "number", min: "13", max: "99", className: "w-full bg-black/10 dark:bg-black/20 border border-armoyu-card-border rounded-2xl px-6 py-4 text-armoyu-text focus:outline-none focus:border-blue-500/50 focus:ring-1 focus:ring-blue-500/50 transition-all font-bold text-sm", placeholder: "\u00D6rn: 24" })] })] }), _jsxs("div", { className: "space-y-2.5", children: [_jsx("label", { className: "text-[10px] font-black uppercase tracking-widest text-armoyu-text-muted ml-1", children: "E-POSTA ADRES\u0130" }), _jsx("input", { required: true, type: "email", className: "w-full bg-black/10 dark:bg-black/20 border border-armoyu-card-border rounded-2xl px-6 py-4 text-armoyu-text placeholder:text-armoyu-text-muted/40 focus:outline-none focus:border-blue-500/50 focus:ring-1 focus:ring-blue-500/50 transition-all font-bold text-sm", placeholder: "ornek@armoyu.com" })] }), _jsxs("div", { className: "space-y-2.5", children: [_jsx("label", { className: "text-[10px] font-black uppercase tracking-widest text-armoyu-text-muted ml-1", children: "TECR\u00DCBELER & KEND\u0130NDEN BAHSET" }), _jsx("textarea", { required: true, rows: 4, className: "w-full bg-black/10 dark:bg-black/20 border border-armoyu-card-border rounded-2xl px-6 py-4 text-armoyu-text placeholder:text-armoyu-text-muted/40 focus:outline-none focus:border-blue-500/50 focus:ring-1 focus:ring-blue-500/50 transition-all font-medium text-sm no-scrollbar resize-none leading-relaxed", placeholder: "Neden sizi aram\u0131za almal\u0131y\u0131z? \u0130lgili tecr\u00FCbeleriniz nelerdir?.." })] })] }), _jsx("div", { className: "pt-4", children: _jsxs("button", { className: "w-full py-5 bg-blue-600 hover:bg-blue-500 text-white font-black text-xs uppercase tracking-[0.2em] rounded-2xl shadow-2xl shadow-blue-600/20 transition-all active:scale-95 relative overflow-hidden group/btn", children: [_jsx("div", { className: "absolute inset-0 bg-gradient-to-r from-transparent via-white/10 to-transparent -translate-x-full group-hover/btn:translate-x-full transition-transform duration-1000" }), "BA\u015EVURUYU TAMAMLA"] }) }), _jsxs("div", { className: "flex items-center gap-3 p-4 bg-blue-500/5 border border-blue-500/10 rounded-2xl", children: [_jsx("div", { className: "w-1.5 h-full bg-blue-500 rounded-full" }), _jsx("p", { className: "text-[9px] text-armoyu-text-muted uppercase tracking-widest leading-relaxed font-bold", children: "Ba\u015Fvurunuz incelendikten sonra e-posta ve SMS yoluyla taraf\u0131n\u0131za bilgilendirme yap\u0131lacakt\u0131r. L\u00FCtfen bilgilerin do\u011Frulu\u011Fundan emin olun. \u2728" })] })] })] })] }));
|
|
27
|
+
}
|
|
28
28
|
//# sourceMappingURL=ApplicationModal.js.map
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
export interface GroupCardProps {
|
|
2
|
-
name: string;
|
|
3
|
-
shortName: string;
|
|
4
|
-
description: string;
|
|
5
|
-
recruitment: string;
|
|
6
|
-
date: string;
|
|
7
|
-
category: string;
|
|
8
|
-
tag: string;
|
|
9
|
-
banner: string;
|
|
10
|
-
logo: string;
|
|
11
|
-
}
|
|
12
|
-
export declare function GroupCard({ name, shortName, description, recruitment, date, category, tag, banner, logo }: GroupCardProps): import("react/jsx-runtime").JSX.Element;
|
|
1
|
+
export interface GroupCardProps {
|
|
2
|
+
name: string;
|
|
3
|
+
shortName: string;
|
|
4
|
+
description: string;
|
|
5
|
+
recruitment: string;
|
|
6
|
+
date: string;
|
|
7
|
+
category: string;
|
|
8
|
+
tag: string;
|
|
9
|
+
banner: string;
|
|
10
|
+
logo: string;
|
|
11
|
+
}
|
|
12
|
+
export declare function GroupCard({ name, shortName, description, recruitment, date, category, tag, banner, logo }: GroupCardProps): import("react/jsx-runtime").JSX.Element;
|
|
13
13
|
//# sourceMappingURL=GroupCard.d.ts.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
-
import Link from 'next/link';
|
|
4
|
-
export function GroupCard({ name, shortName, description, recruitment, date, category, tag, banner, logo }) {
|
|
5
|
-
return (_jsxs("div", { className: "group relative glass-panel rounded-3xl overflow-hidden border border-armoyu-card-border bg-armoyu-card-bg shadow-sm hover:shadow-xl hover:scale-[1.01] transition-all duration-300", children: [_jsxs("div", { className: "h-32 w-full relative overflow-hidden", children: [_jsx("img", { src: banner, alt: name, className: "w-full h-full object-cover group-hover:scale-110 transition-transform duration-700" }), _jsx("div", { className: "absolute inset-0 bg-gradient-to-t from-black/60 to-transparent" }), _jsx("div", { className: "absolute top-4 right-4 bg-white/10 backdrop-blur-md border border-white/20 px-3 py-1 rounded-full text-[10px] font-black text-white uppercase tracking-wider", children: category })] }), _jsxs("div", { className: "px-5 pb-6 relative", children: [_jsxs("div", { className: "relative -mt-10 mb-4 inline-block", children: [_jsx("img", { src: logo, alt: "Logo", className: "w-20 h-20 rounded-2xl border-4 border-armoyu-bg bg-white dark:bg-zinc-900 object-cover shadow-lg" }), _jsx("div", { className: "absolute -bottom-1 -right-1 w-6 h-6 bg-blue-500 rounded-full border-2 border-armoyu-bg flex items-center justify-center text-white", children: _jsx("svg", { xmlns: "http://www.w3.org/2000/svg", width: "12", height: "12", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "3", children: _jsx("polyline", { points: "20 6 9 17 4 12" }) }) })] }), _jsxs("div", { className: "flex items-center justify-between mb-2", children: [_jsxs("div", { children: [_jsx("h3", { className: "text-xl font-black text-armoyu-text group-hover:text-blue-500 transition-colors uppercase tracking-tight", children: name }), _jsxs("span", { className: "text-xs font-bold text-blue-500 bg-blue-500/10 px-2 py-0.5 rounded-md", children: ["@", shortName] })] }), _jsx("div", { className: "text-right", children: _jsx("span", { className: "block text-emerald-500 text-xs font-black uppercase tracking-widest", children: recruitment }) })] }), _jsx("p", { className: "text-sm text-armoyu-text-muted font-medium line-clamp-2 min-h-[40px] mb-5", children: description }), _jsxs("div", { className: "grid grid-cols-2 gap-3 mb-5", children: [_jsxs("div", { className: "flex items-center gap-2 p-2 rounded-xl bg-black/5 dark:bg-white/5 border border-black/5 dark:border-white/5", children: [_jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", width: "14", height: "14", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2.5", className: "text-armoyu-text-muted opacity-60", children: [_jsx("rect", { x: "3", y: "4", width: "18", height: "18", rx: "2", ry: "2" }), _jsx("line", { x1: "16", y1: "2", x2: "16", y2: "6" }), _jsx("line", { x1: "8", y1: "2", x2: "8", y2: "6" }), _jsx("line", { x1: "3", y1: "10", x2: "21", y2: "10" })] }), _jsx("span", { className: "text-[11px] font-bold text-armoyu-text-muted", children: date })] }), _jsxs("div", { className: "flex items-center gap-2 p-2 rounded-xl bg-black/5 dark:bg-white/5 border border-black/5 dark:border-white/5", children: [_jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", width: "14", height: "14", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2.5", className: "text-armoyu-text-muted opacity-60", children: [_jsx("path", { d: "M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z" }), _jsx("polyline", { points: "3.27 6.96 12 12.01 20.73 6.96" }), _jsx("line", { x1: "12", y1: "22.08", x2: "12", y2: "12" })] }), _jsx("span", { className: "text-[11px] font-bold text-armoyu-text-muted", children: tag })] })] }), _jsx(Link, { href: `/gruplar/${name.toLowerCase().replace(/\s+/g, '-')}`, className: "w-full py-3.5 block text-center rounded-2xl bg-gradient-to-r from-blue-600 to-indigo-600 hover:from-blue-500 hover:to-indigo-500 text-white font-black text-xs uppercase tracking-widest shadow-lg shadow-blue-500/20 transform active:scale-95 transition-all", children: "Gruba Kat\u0131l / G\u00F6r\u00FCnt\u00FCle" })] })] }));
|
|
6
|
-
}
|
|
1
|
+
'use client';
|
|
2
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
+
import Link from 'next/link';
|
|
4
|
+
export function GroupCard({ name, shortName, description, recruitment, date, category, tag, banner, logo }) {
|
|
5
|
+
return (_jsxs("div", { className: "group relative glass-panel rounded-3xl overflow-hidden border border-armoyu-card-border bg-armoyu-card-bg shadow-sm hover:shadow-xl hover:scale-[1.01] transition-all duration-300", children: [_jsxs("div", { className: "h-32 w-full relative overflow-hidden", children: [_jsx("img", { src: banner, alt: name, className: "w-full h-full object-cover group-hover:scale-110 transition-transform duration-700" }), _jsx("div", { className: "absolute inset-0 bg-gradient-to-t from-black/60 to-transparent" }), _jsx("div", { className: "absolute top-4 right-4 bg-white/10 backdrop-blur-md border border-white/20 px-3 py-1 rounded-full text-[10px] font-black text-white uppercase tracking-wider", children: category })] }), _jsxs("div", { className: "px-5 pb-6 relative", children: [_jsxs("div", { className: "relative -mt-10 mb-4 inline-block", children: [_jsx("img", { src: logo, alt: "Logo", className: "w-20 h-20 rounded-2xl border-4 border-armoyu-bg bg-white dark:bg-zinc-900 object-cover shadow-lg" }), _jsx("div", { className: "absolute -bottom-1 -right-1 w-6 h-6 bg-blue-500 rounded-full border-2 border-armoyu-bg flex items-center justify-center text-white", children: _jsx("svg", { xmlns: "http://www.w3.org/2000/svg", width: "12", height: "12", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "3", children: _jsx("polyline", { points: "20 6 9 17 4 12" }) }) })] }), _jsxs("div", { className: "flex items-center justify-between mb-2", children: [_jsxs("div", { children: [_jsx("h3", { className: "text-xl font-black text-armoyu-text group-hover:text-blue-500 transition-colors uppercase tracking-tight", children: name }), _jsxs("span", { className: "text-xs font-bold text-blue-500 bg-blue-500/10 px-2 py-0.5 rounded-md", children: ["@", shortName] })] }), _jsx("div", { className: "text-right", children: _jsx("span", { className: "block text-emerald-500 text-xs font-black uppercase tracking-widest", children: recruitment }) })] }), _jsx("p", { className: "text-sm text-armoyu-text-muted font-medium line-clamp-2 min-h-[40px] mb-5", children: description }), _jsxs("div", { className: "grid grid-cols-2 gap-3 mb-5", children: [_jsxs("div", { className: "flex items-center gap-2 p-2 rounded-xl bg-black/5 dark:bg-white/5 border border-black/5 dark:border-white/5", children: [_jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", width: "14", height: "14", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2.5", className: "text-armoyu-text-muted opacity-60", children: [_jsx("rect", { x: "3", y: "4", width: "18", height: "18", rx: "2", ry: "2" }), _jsx("line", { x1: "16", y1: "2", x2: "16", y2: "6" }), _jsx("line", { x1: "8", y1: "2", x2: "8", y2: "6" }), _jsx("line", { x1: "3", y1: "10", x2: "21", y2: "10" })] }), _jsx("span", { className: "text-[11px] font-bold text-armoyu-text-muted", children: date })] }), _jsxs("div", { className: "flex items-center gap-2 p-2 rounded-xl bg-black/5 dark:bg-white/5 border border-black/5 dark:border-white/5", children: [_jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", width: "14", height: "14", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2.5", className: "text-armoyu-text-muted opacity-60", children: [_jsx("path", { d: "M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z" }), _jsx("polyline", { points: "3.27 6.96 12 12.01 20.73 6.96" }), _jsx("line", { x1: "12", y1: "22.08", x2: "12", y2: "12" })] }), _jsx("span", { className: "text-[11px] font-bold text-armoyu-text-muted", children: tag })] })] }), _jsx(Link, { href: `/gruplar/${name.toLowerCase().replace(/\s+/g, '-')}`, className: "w-full py-3.5 block text-center rounded-2xl bg-gradient-to-r from-blue-600 to-indigo-600 hover:from-blue-500 hover:to-indigo-500 text-white font-black text-xs uppercase tracking-widest shadow-lg shadow-blue-500/20 transform active:scale-95 transition-all", children: "Gruba Kat\u0131l / G\u00F6r\u00FCnt\u00FCle" })] })] }));
|
|
6
|
+
}
|
|
7
7
|
//# sourceMappingURL=GroupCard.js.map
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { Button } from '../../Button';
|
|
3
|
-
import { Slider } from '../../Slider';
|
|
4
|
-
import { GenderStatsBar } from '../../GenderStatsBar';
|
|
5
|
-
import { StatsGrid } from '../../StatsGrid';
|
|
6
|
-
import { mockGlobalStats } from "../../../lib/constants/seedData";
|
|
7
|
-
export function Introduction() {
|
|
8
|
-
return (_jsxs("div", { className: "flex flex-col items-center min-h-[80vh] text-center space-y-16 animate-in fade-in duration-1000 pb-16 pt-4", children: [_jsx("div", { className: "w-full h-[500px] lg:h-[600px]", children: _jsx(Slider, { durationTime: 6000 }) }), _jsxs("div", { className: "flex flex-col sm:flex-row gap-4", children: [_jsx(Button, { variant: "primary", className: "h-14 px-10 text-lg rounded-full shadow-lg shadow-blue-500/30", children: "Hemen Aram\u0131za Kat\u0131l" }), _jsx(Button, { variant: "secondary", className: "h-14 px-10 text-lg rounded-full shadow-lg border-white/20", children: "Sosyal Ak\u0131\u015F\u0131 Ke\u015Ffet" })] }), _jsx("div", { className: "grid grid-cols-1 md:grid-cols-3 gap-6 w-full max-w-5xl text-left relative z-10", children: [
|
|
9
|
-
{ title: 'Topluluk', desc: 'Binlerce oyuncuyla tanışın ve ekipler kurun.' },
|
|
10
|
-
{ title: 'Forum', desc: 'Oyunlar hakkında tartışın, rehberler oluşturun.' },
|
|
11
|
-
{ title: 'Minecraft', desc: 'mc.armoyu.com adresinden sunucumuza katılın.' }
|
|
12
|
-
].map((feature, i) => (_jsxs("div", { className: "glass-panel p-6 rounded-3xl hover:-translate-y-2 transition-transform duration-300 border border-white/5 shadow-xl", children: [_jsx("h3", { className: "text-xl font-bold mb-2 text-white", children: feature.title }), _jsx("p", { className: "text-gray-400 leading-relaxed", children: feature.desc })] }, i))) }), _jsxs("div", { className: "w-full max-w-5xl mt-12 glass-panel p-8 md:p-12 rounded-3xl border border-white/5 relative z-10 shadow-2xl flex flex-col gap-10", children: [_jsxs("div", { children: [_jsx("h3", { className: "text-2xl md:text-3xl font-bold text-white mb-2 text-center", children: "Topluluk Demografisi" }), _jsx("p", { className: "text-gray-400 text-center mb-10 max-w-2xl mx-auto", children: "Zengin ve \u00E7e\u015Fitli oyuncu ekosistemimizde her ge\u00E7en g\u00FCn birlikte daha b\u00FCy\u00FCk projelere ve e\u011Flencelere imza at\u0131yoruz." }), _jsx(GenderStatsBar, { maleCount: mockGlobalStats.malePlayers, femaleCount: mockGlobalStats.femalePlayers })] }), _jsxs("div", { className: "border-t border-white/10 pt-10", children: [_jsx("h3", { className: "text-xl md:text-2xl font-bold text-white mb-6 text-left", children: "Genel \u0130statistikler" }), _jsx(StatsGrid, { stats: mockGlobalStats })] })] })] }));
|
|
13
|
-
}
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Button } from '../../Button';
|
|
3
|
+
import { Slider } from '../../Slider';
|
|
4
|
+
import { GenderStatsBar } from '../../GenderStatsBar';
|
|
5
|
+
import { StatsGrid } from '../../StatsGrid';
|
|
6
|
+
import { mockGlobalStats } from "../../../lib/constants/seedData";
|
|
7
|
+
export function Introduction() {
|
|
8
|
+
return (_jsxs("div", { className: "flex flex-col items-center min-h-[80vh] text-center space-y-16 animate-in fade-in duration-1000 pb-16 pt-4", children: [_jsx("div", { className: "w-full h-[500px] lg:h-[600px]", children: _jsx(Slider, { durationTime: 6000 }) }), _jsxs("div", { className: "flex flex-col sm:flex-row gap-4", children: [_jsx(Button, { variant: "primary", className: "h-14 px-10 text-lg rounded-full shadow-lg shadow-blue-500/30", children: "Hemen Aram\u0131za Kat\u0131l" }), _jsx(Button, { variant: "secondary", className: "h-14 px-10 text-lg rounded-full shadow-lg border-white/20", children: "Sosyal Ak\u0131\u015F\u0131 Ke\u015Ffet" })] }), _jsx("div", { className: "grid grid-cols-1 md:grid-cols-3 gap-6 w-full max-w-5xl text-left relative z-10", children: [
|
|
9
|
+
{ title: 'Topluluk', desc: 'Binlerce oyuncuyla tanışın ve ekipler kurun.' },
|
|
10
|
+
{ title: 'Forum', desc: 'Oyunlar hakkında tartışın, rehberler oluşturun.' },
|
|
11
|
+
{ title: 'Minecraft', desc: 'mc.armoyu.com adresinden sunucumuza katılın.' }
|
|
12
|
+
].map((feature, i) => (_jsxs("div", { className: "glass-panel p-6 rounded-3xl hover:-translate-y-2 transition-transform duration-300 border border-white/5 shadow-xl", children: [_jsx("h3", { className: "text-xl font-bold mb-2 text-white", children: feature.title }), _jsx("p", { className: "text-gray-400 leading-relaxed", children: feature.desc })] }, i))) }), _jsxs("div", { className: "w-full max-w-5xl mt-12 glass-panel p-8 md:p-12 rounded-3xl border border-white/5 relative z-10 shadow-2xl flex flex-col gap-10", children: [_jsxs("div", { children: [_jsx("h3", { className: "text-2xl md:text-3xl font-bold text-white mb-2 text-center", children: "Topluluk Demografisi" }), _jsx("p", { className: "text-gray-400 text-center mb-10 max-w-2xl mx-auto", children: "Zengin ve \u00E7e\u015Fitli oyuncu ekosistemimizde her ge\u00E7en g\u00FCn birlikte daha b\u00FCy\u00FCk projelere ve e\u011Flencelere imza at\u0131yoruz." }), _jsx(GenderStatsBar, { maleCount: mockGlobalStats.malePlayers, femaleCount: mockGlobalStats.femalePlayers })] }), _jsxs("div", { className: "border-t border-white/10 pt-10", children: [_jsx("h3", { className: "text-xl md:text-2xl font-bold text-white mb-6 text-left", children: "Genel \u0130statistikler" }), _jsx(StatsGrid, { stats: mockGlobalStats })] })] })] }));
|
|
13
|
+
}
|
|
14
14
|
//# sourceMappingURL=Introduction.js.map
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
-
import { useState } from 'react';
|
|
4
|
-
import Link from 'next/link';
|
|
5
|
-
import { useCart } from '../../../context/CartContext';
|
|
6
|
-
export function BackToStore() {
|
|
7
|
-
const [searchQuery, setSearchQuery] = useState('');
|
|
8
|
-
const { totalItems } = useCart();
|
|
9
|
-
return (_jsxs("div", { className: "mb-10 flex flex-col sm:flex-row sm:items-center justify-between gap-6 animate-in fade-in slide-in-from-top-4 duration-500 bg-black/5 dark:bg-white/5 p-4 rounded-[32px] border border-black/10 dark:border-white/10 backdrop-blur-md", children: [_jsxs(Link, { href: "/magaza", className: "inline-flex items-center gap-3 px-6 py-3 bg-blue-600 text-white rounded-2xl font-black text-[10px] uppercase tracking-widest group transition-all shadow-xl shadow-blue-500/20 active:scale-95 shrink-0", children: [_jsx("svg", { xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "3", strokeLinecap: "round", strokeLinejoin: "round", className: "group-hover:-translate-x-1.5 transition-transform duration-300", children: _jsx("polyline", { points: "15 18 9 12 15 6" }) }), _jsx("span", { children: "MA\u011EAZA ANA SAYFA" })] }), _jsxs("div", { className: "flex items-center gap-4 flex-1 justify-end", children: [_jsxs("div", { className: "relative group max-w-[300px] flex-1", children: [_jsx("div", { className: "absolute inset-y-0 left-4 flex items-center pointer-events-none text-armoyu-text-muted group-focus-within:text-blue-500 transition-colors", children: _jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", width: "18", height: "18", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2.5", strokeLinecap: "round", strokeLinejoin: "round", children: [_jsx("circle", { cx: "11", cy: "11", r: "8" }), _jsx("line", { x1: "21", y1: "21", x2: "16.65", y2: "16.65" })] }) }), _jsx("input", { type: "text", placeholder: "\u00DCr\u00FCn ara...", value: searchQuery, onChange: (e) => setSearchQuery(e.target.value), className: "w-full bg-black/10 dark:bg-black/40 border border-transparent focus:border-blue-500/50 rounded-xl pl-11 pr-4 py-3 text-xs font-bold text-armoyu-text placeholder:text-armoyu-text-muted focus:outline-none transition-all" })] }), _jsxs(Link, { href: "/magaza/sepet", className: "relative p-3 bg-white/10 hover:bg-white/20 text-armoyu-text rounded-xl transition-all active:scale-95 border border-white/5", children: [_jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", width: "20", height: "20", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2.5", strokeLinecap: "round", strokeLinejoin: "round", children: [_jsx("circle", { cx: "9", cy: "21", r: "1" }), _jsx("circle", { cx: "20", cy: "21", r: "1" }), _jsx("path", { d: "M1 1h4l2.68 13.39a2 2 0 0 0 2 1.61h9.72a2 2 0 0 0 2-1.61L23 6H6" })] }), totalItems > 0 && (_jsx("span", { className: "absolute -top-1 -right-1 flex h-5 w-5 items-center justify-center rounded-full bg-red-500 text-[10px] font-black text-white ring-2 ring-[#121216]", children: totalItems }))] })] })] }));
|
|
10
|
-
}
|
|
1
|
+
'use client';
|
|
2
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { useState } from 'react';
|
|
4
|
+
import Link from 'next/link';
|
|
5
|
+
import { useCart } from '../../../context/CartContext';
|
|
6
|
+
export function BackToStore() {
|
|
7
|
+
const [searchQuery, setSearchQuery] = useState('');
|
|
8
|
+
const { totalItems } = useCart();
|
|
9
|
+
return (_jsxs("div", { className: "mb-10 flex flex-col sm:flex-row sm:items-center justify-between gap-6 animate-in fade-in slide-in-from-top-4 duration-500 bg-black/5 dark:bg-white/5 p-4 rounded-[32px] border border-black/10 dark:border-white/10 backdrop-blur-md", children: [_jsxs(Link, { href: "/magaza", className: "inline-flex items-center gap-3 px-6 py-3 bg-blue-600 text-white rounded-2xl font-black text-[10px] uppercase tracking-widest group transition-all shadow-xl shadow-blue-500/20 active:scale-95 shrink-0", children: [_jsx("svg", { xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "3", strokeLinecap: "round", strokeLinejoin: "round", className: "group-hover:-translate-x-1.5 transition-transform duration-300", children: _jsx("polyline", { points: "15 18 9 12 15 6" }) }), _jsx("span", { children: "MA\u011EAZA ANA SAYFA" })] }), _jsxs("div", { className: "flex items-center gap-4 flex-1 justify-end", children: [_jsxs("div", { className: "relative group max-w-[300px] flex-1", children: [_jsx("div", { className: "absolute inset-y-0 left-4 flex items-center pointer-events-none text-armoyu-text-muted group-focus-within:text-blue-500 transition-colors", children: _jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", width: "18", height: "18", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2.5", strokeLinecap: "round", strokeLinejoin: "round", children: [_jsx("circle", { cx: "11", cy: "11", r: "8" }), _jsx("line", { x1: "21", y1: "21", x2: "16.65", y2: "16.65" })] }) }), _jsx("input", { type: "text", placeholder: "\u00DCr\u00FCn ara...", value: searchQuery, onChange: (e) => setSearchQuery(e.target.value), className: "w-full bg-black/10 dark:bg-black/40 border border-transparent focus:border-blue-500/50 rounded-xl pl-11 pr-4 py-3 text-xs font-bold text-armoyu-text placeholder:text-armoyu-text-muted focus:outline-none transition-all" })] }), _jsxs(Link, { href: "/magaza/sepet", className: "relative p-3 bg-white/10 hover:bg-white/20 text-armoyu-text rounded-xl transition-all active:scale-95 border border-white/5", children: [_jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", width: "20", height: "20", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2.5", strokeLinecap: "round", strokeLinejoin: "round", children: [_jsx("circle", { cx: "9", cy: "21", r: "1" }), _jsx("circle", { cx: "20", cy: "21", r: "1" }), _jsx("path", { d: "M1 1h4l2.68 13.39a2 2 0 0 0 2 1.61h9.72a2 2 0 0 0 2-1.61L23 6H6" })] }), totalItems > 0 && (_jsx("span", { className: "absolute -top-1 -right-1 flex h-5 w-5 items-center justify-center rounded-full bg-red-500 text-[10px] font-black text-white ring-2 ring-[#121216]", children: totalItems }))] })] })] }));
|
|
10
|
+
}
|
|
11
11
|
//# sourceMappingURL=BackToStore.js.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
-
import Link from 'next/link';
|
|
4
|
-
import { useCart } from '../../../context/CartContext';
|
|
5
|
-
export function StoreHeader({ searchQuery, setSearchQuery }) {
|
|
6
|
-
const { totalItems } = useCart();
|
|
7
|
-
return (_jsxs("div", { className: "mb-12 space-y-8 animate-in fade-in slide-in-from-top-4 duration-500", children: [_jsxs("div", { className: "flex flex-col md:flex-row md:items-end justify-between gap-6", children: [_jsx("div", { className: "flex-1", children: _jsx("p", { className: "text-armoyu-text-muted text-lg max-w-2xl font-medium leading-relaxed opacity-80 mb-2", children: "Oyun deneyimini bir \u00FCst seviyeye ta\u015F\u0131. \u00D6zel \u00FCyelikler ve lisansl\u0131 \u00FCr\u00FCnler burada." }) }), _jsxs("div", { className: "flex items-center gap-4 shrink-0", children: [_jsxs("div", { className: "relative group flex-1 md:w-80", children: [_jsx("div", { className: "absolute inset-y-0 left-4 flex items-center pointer-events-none text-armoyu-text-muted group-focus-within:text-blue-500 transition-colors", children: _jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", width: "20", height: "20", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2.5", strokeLinecap: "round", strokeLinejoin: "round", children: [_jsx("circle", { cx: "11", cy: "11", r: "8" }), _jsx("line", { x1: "21", y1: "21", x2: "16.65", y2: "16.65" })] }) }), _jsx("input", { type: "text", placeholder: "\u00DCr\u00FCn ara...", value: searchQuery, onChange: (e) => setSearchQuery(e.target.value), className: "w-full bg-white/5 dark:bg-black/20 border border-black/10 dark:border-white/10 rounded-2xl pl-12 pr-4 py-4 text-sm font-bold text-armoyu-text placeholder:text-armoyu-text-muted focus:outline-none focus:border-blue-500 focus:ring-4 focus:ring-blue-500/10 transition-all shadow-inner" })] }), _jsxs(Link, { href: "/magaza/siparislerim", className: "p-4 bg-black/5 dark:bg-white/5 border border-black/10 dark:border-white/10 text-armoyu-text hover:text-blue-500 rounded-2xl transition-all group flex items-center gap-2", children: [_jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", width: "20", height: "20", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2.5", strokeLinecap: "round", strokeLinejoin: "round", children: [_jsx("path", { d: "M6 2L3 6v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6l-3-4Z" }), _jsx("path", { d: "M3 6h18" }), _jsx("path", { d: "M16 10a4 4 0 0 1-8 0" })] }), _jsx("span", { className: "text-[10px] font-black uppercase tracking-widest hidden sm:block", children: "Sipari\u015Flerim" })] }), _jsxs(Link, { href: "/magaza/sepet", className: "relative p-4 bg-blue-600 hover:bg-blue-500 text-white rounded-2xl transition-all shadow-xl shadow-blue-500/20 active:scale-95 group overflow-hidden", children: [_jsx("div", { className: "absolute inset-0 bg-gradient-to-tr from-white/20 to-transparent opacity-0 group-hover:opacity-100 transition-opacity" }), _jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2.5", strokeLinecap: "round", strokeLinejoin: "round", children: [_jsx("circle", { cx: "9", cy: "21", r: "1" }), _jsx("circle", { cx: "20", cy: "21", r: "1" }), _jsx("path", { d: "M1 1h4l2.68 13.39a2 2 0 0 0 2 1.61h9.72a2 2 0 0 0 2-1.61L23 6H6" })] }), totalItems > 0 && (_jsx("span", { className: "absolute top-2 right-2 flex h-5 w-5 items-center justify-center rounded-full bg-red-500 text-[10px] font-black text-white ring-2 ring-blue-600 animate-in zoom-in duration-300", children: totalItems }))] })] })] }), _jsxs("div", { className: "flex flex-wrap gap-4 pt-4", children: [_jsxs("div", { className: "px-4 py-2 bg-black/5 dark:bg-white/5 border border-black/5 dark:border-white/5 rounded-xl flex items-center gap-2", children: [_jsx("div", { className: "w-2 h-2 rounded-full bg-emerald-500 shadow-[0_0_8px_rgba(16,185,129,0.5)] animate-pulse" }), _jsx("span", { className: "text-[10px] font-black text-armoyu-text-muted uppercase tracking-widest", children: "Sistem Aktif" })] }), _jsxs("div", { className: "px-4 py-2 bg-black/5 dark:bg-white/5 border border-black/5 dark:border-white/5 rounded-xl flex items-center gap-2", children: [_jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", width: "12", height: "12", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "3", className: "text-blue-500", children: [_jsx("path", { d: "M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2" }), _jsx("circle", { cx: "12", cy: "7", r: "4" })] }), _jsx("span", { className: "text-[10px] font-black text-armoyu-text-muted uppercase tracking-widest", children: "12.4K Aktif M\u00FC\u015Fteri" })] })] })] }));
|
|
8
|
-
}
|
|
1
|
+
'use client';
|
|
2
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
+
import Link from 'next/link';
|
|
4
|
+
import { useCart } from '../../../context/CartContext';
|
|
5
|
+
export function StoreHeader({ searchQuery, setSearchQuery }) {
|
|
6
|
+
const { totalItems } = useCart();
|
|
7
|
+
return (_jsxs("div", { className: "mb-12 space-y-8 animate-in fade-in slide-in-from-top-4 duration-500", children: [_jsxs("div", { className: "flex flex-col md:flex-row md:items-end justify-between gap-6", children: [_jsx("div", { className: "flex-1", children: _jsx("p", { className: "text-armoyu-text-muted text-lg max-w-2xl font-medium leading-relaxed opacity-80 mb-2", children: "Oyun deneyimini bir \u00FCst seviyeye ta\u015F\u0131. \u00D6zel \u00FCyelikler ve lisansl\u0131 \u00FCr\u00FCnler burada." }) }), _jsxs("div", { className: "flex items-center gap-4 shrink-0", children: [_jsxs("div", { className: "relative group flex-1 md:w-80", children: [_jsx("div", { className: "absolute inset-y-0 left-4 flex items-center pointer-events-none text-armoyu-text-muted group-focus-within:text-blue-500 transition-colors", children: _jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", width: "20", height: "20", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2.5", strokeLinecap: "round", strokeLinejoin: "round", children: [_jsx("circle", { cx: "11", cy: "11", r: "8" }), _jsx("line", { x1: "21", y1: "21", x2: "16.65", y2: "16.65" })] }) }), _jsx("input", { type: "text", placeholder: "\u00DCr\u00FCn ara...", value: searchQuery, onChange: (e) => setSearchQuery(e.target.value), className: "w-full bg-white/5 dark:bg-black/20 border border-black/10 dark:border-white/10 rounded-2xl pl-12 pr-4 py-4 text-sm font-bold text-armoyu-text placeholder:text-armoyu-text-muted focus:outline-none focus:border-blue-500 focus:ring-4 focus:ring-blue-500/10 transition-all shadow-inner" })] }), _jsxs(Link, { href: "/magaza/siparislerim", className: "p-4 bg-black/5 dark:bg-white/5 border border-black/10 dark:border-white/10 text-armoyu-text hover:text-blue-500 rounded-2xl transition-all group flex items-center gap-2", children: [_jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", width: "20", height: "20", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2.5", strokeLinecap: "round", strokeLinejoin: "round", children: [_jsx("path", { d: "M6 2L3 6v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6l-3-4Z" }), _jsx("path", { d: "M3 6h18" }), _jsx("path", { d: "M16 10a4 4 0 0 1-8 0" })] }), _jsx("span", { className: "text-[10px] font-black uppercase tracking-widest hidden sm:block", children: "Sipari\u015Flerim" })] }), _jsxs(Link, { href: "/magaza/sepet", className: "relative p-4 bg-blue-600 hover:bg-blue-500 text-white rounded-2xl transition-all shadow-xl shadow-blue-500/20 active:scale-95 group overflow-hidden", children: [_jsx("div", { className: "absolute inset-0 bg-gradient-to-tr from-white/20 to-transparent opacity-0 group-hover:opacity-100 transition-opacity" }), _jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2.5", strokeLinecap: "round", strokeLinejoin: "round", children: [_jsx("circle", { cx: "9", cy: "21", r: "1" }), _jsx("circle", { cx: "20", cy: "21", r: "1" }), _jsx("path", { d: "M1 1h4l2.68 13.39a2 2 0 0 0 2 1.61h9.72a2 2 0 0 0 2-1.61L23 6H6" })] }), totalItems > 0 && (_jsx("span", { className: "absolute top-2 right-2 flex h-5 w-5 items-center justify-center rounded-full bg-red-500 text-[10px] font-black text-white ring-2 ring-blue-600 animate-in zoom-in duration-300", children: totalItems }))] })] })] }), _jsxs("div", { className: "flex flex-wrap gap-4 pt-4", children: [_jsxs("div", { className: "px-4 py-2 bg-black/5 dark:bg-white/5 border border-black/5 dark:border-white/5 rounded-xl flex items-center gap-2", children: [_jsx("div", { className: "w-2 h-2 rounded-full bg-emerald-500 shadow-[0_0_8px_rgba(16,185,129,0.5)] animate-pulse" }), _jsx("span", { className: "text-[10px] font-black text-armoyu-text-muted uppercase tracking-widest", children: "Sistem Aktif" })] }), _jsxs("div", { className: "px-4 py-2 bg-black/5 dark:bg-white/5 border border-black/5 dark:border-white/5 rounded-xl flex items-center gap-2", children: [_jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", width: "12", height: "12", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "3", className: "text-blue-500", children: [_jsx("path", { d: "M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2" }), _jsx("circle", { cx: "12", cy: "7", r: "4" })] }), _jsx("span", { className: "text-[10px] font-black text-armoyu-text-muted uppercase tracking-widest", children: "12.4K Aktif M\u00FC\u015Fteri" })] })] })] }));
|
|
8
|
+
}
|
|
9
9
|
//# sourceMappingURL=StoreHeader.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
-
import Link from 'next/link';
|
|
4
|
-
export function NewsCard({ slug, title, excerpt, date, category, image, author }) {
|
|
5
|
-
return (_jsx(Link, { href: `/haberler/${slug}`, className: "group block", children: _jsxs("div", { className: "glass-panel rounded-3xl overflow-hidden border border-armoyu-card-border bg-armoyu-card-bg shadow-sm hover:shadow-2xl transition-all duration-500 h-full flex flex-col", children: [_jsxs("div", { className: "aspect-video overflow-hidden relative", children: [_jsx("img", { src: image, alt: title, className: "w-full h-full object-cover group-hover:scale-105 transition-transform duration-700" }), _jsx("div", { className: "absolute top-4 left-4", children: _jsx("span", { className: "bg-blue-600 text-white text-[10px] font-black uppercase tracking-widest px-3 py-1.5 rounded-xl shadow-lg shadow-blue-600/20", children: category }) })] }), _jsxs("div", { className: "p-6 flex-1 flex flex-col", children: [_jsxs("div", { className: "flex items-center gap-3 mb-3 text-[10px] font-bold text-armoyu-text-muted opacity-60", children: [_jsxs("span", { className: "flex items-center gap-1", children: [_jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", width: "12", height: "12", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2.5", children: [_jsx("rect", { x: "3", y: "4", width: "18", height: "18", rx: "2", ry: "2" }), _jsx("line", { x1: "16", y1: "2", x2: "16", y2: "6" }), _jsx("line", { x1: "8", y1: "2", x2: "8", y2: "6" }), _jsx("line", { x1: "3", y1: "10", x2: "21", y2: "10" })] }), date] }), _jsx("span", { children: "\u2022" }), _jsx("span", { className: "flex items-center gap-1 uppercase tracking-widest text-blue-500 font-black", children: author?.displayName || 'Armoyu Ekibi' })] }), _jsx("h3", { className: "text-xl font-black text-armoyu-text group-hover:text-blue-500 transition-colors mb-4 line-clamp-2 leading-tight", children: title }), _jsxs("p", { className: "text-sm text-armoyu-text-muted font-medium line-clamp-3 mb-6 flex-1 italic", children: ["\"", excerpt, "\""] }), _jsxs("div", { className: "flex items-center gap-2 text-blue-500 font-black text-xs uppercase tracking-widest group-hover:translate-x-1 transition-transform", children: ["Devam\u0131n\u0131 Oku", _jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", width: "14", height: "14", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "3", children: [_jsx("line", { x1: "5", y1: "12", x2: "19", y2: "12" }), _jsx("polyline", { points: "12 5 19 12 12 19" })] })] })] })] }) }));
|
|
6
|
-
}
|
|
1
|
+
'use client';
|
|
2
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
+
import Link from 'next/link';
|
|
4
|
+
export function NewsCard({ slug, title, excerpt, date, category, image, author }) {
|
|
5
|
+
return (_jsx(Link, { href: `/haberler/${slug}`, className: "group block", children: _jsxs("div", { className: "glass-panel rounded-3xl overflow-hidden border border-armoyu-card-border bg-armoyu-card-bg shadow-sm hover:shadow-2xl transition-all duration-500 h-full flex flex-col", children: [_jsxs("div", { className: "aspect-video overflow-hidden relative", children: [_jsx("img", { src: image, alt: title, className: "w-full h-full object-cover group-hover:scale-105 transition-transform duration-700" }), _jsx("div", { className: "absolute top-4 left-4", children: _jsx("span", { className: "bg-blue-600 text-white text-[10px] font-black uppercase tracking-widest px-3 py-1.5 rounded-xl shadow-lg shadow-blue-600/20", children: category }) })] }), _jsxs("div", { className: "p-6 flex-1 flex flex-col", children: [_jsxs("div", { className: "flex items-center gap-3 mb-3 text-[10px] font-bold text-armoyu-text-muted opacity-60", children: [_jsxs("span", { className: "flex items-center gap-1", children: [_jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", width: "12", height: "12", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2.5", children: [_jsx("rect", { x: "3", y: "4", width: "18", height: "18", rx: "2", ry: "2" }), _jsx("line", { x1: "16", y1: "2", x2: "16", y2: "6" }), _jsx("line", { x1: "8", y1: "2", x2: "8", y2: "6" }), _jsx("line", { x1: "3", y1: "10", x2: "21", y2: "10" })] }), date] }), _jsx("span", { children: "\u2022" }), _jsx("span", { className: "flex items-center gap-1 uppercase tracking-widest text-blue-500 font-black", children: author?.displayName || 'Armoyu Ekibi' })] }), _jsx("h3", { className: "text-xl font-black text-armoyu-text group-hover:text-blue-500 transition-colors mb-4 line-clamp-2 leading-tight", children: title }), _jsxs("p", { className: "text-sm text-armoyu-text-muted font-medium line-clamp-3 mb-6 flex-1 italic", children: ["\"", excerpt, "\""] }), _jsxs("div", { className: "flex items-center gap-2 text-blue-500 font-black text-xs uppercase tracking-widest group-hover:translate-x-1 transition-transform", children: ["Devam\u0131n\u0131 Oku", _jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", width: "14", height: "14", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "3", children: [_jsx("line", { x1: "5", y1: "12", x2: "19", y2: "12" }), _jsx("polyline", { points: "12 5 19 12 12 19" })] })] })] })] }) }));
|
|
6
|
+
}
|
|
7
7
|
//# sourceMappingURL=NewsCard.js.map
|
|
@@ -1,53 +1,53 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
-
import { useState } from 'react';
|
|
4
|
-
import { userList } from '../../../lib/constants/seedData';
|
|
5
|
-
export function NewsComments() {
|
|
6
|
-
const [comments, setComments] = useState([
|
|
7
|
-
{
|
|
8
|
-
id: '1',
|
|
9
|
-
user: userList.find((u) => u.username === 'mythx') || userList[1],
|
|
10
|
-
text: 'V3 gerçekten devrimsel olmuş! Arayüzün hızı inanılmaz. Elinize sağlık ekibi.',
|
|
11
|
-
date: '1 saat önce',
|
|
12
|
-
likes: 12,
|
|
13
|
-
isLiked: false
|
|
14
|
-
},
|
|
15
|
-
{
|
|
16
|
-
id: '2',
|
|
17
|
-
user: userList.find((u) => u.username === 'alperen_admin') || userList[2],
|
|
18
|
-
text: 'Yeni grup sistemini sabırsızlıkla bekliyoruz. Topluluk için harika bir adım.',
|
|
19
|
-
date: '45 dakika önce',
|
|
20
|
-
likes: 8,
|
|
21
|
-
isLiked: true
|
|
22
|
-
}
|
|
23
|
-
]);
|
|
24
|
-
const [newComment, setNewComment] = useState('');
|
|
25
|
-
const handleAddComment = () => {
|
|
26
|
-
if (!newComment.trim())
|
|
27
|
-
return;
|
|
28
|
-
const comment = {
|
|
29
|
-
id: Date.now().toString(),
|
|
30
|
-
user: userList[0], // Berkay (Siz)
|
|
31
|
-
text: newComment,
|
|
32
|
-
date: 'Şimdi',
|
|
33
|
-
likes: 0,
|
|
34
|
-
isLiked: false
|
|
35
|
-
};
|
|
36
|
-
setComments([comment, ...comments]);
|
|
37
|
-
setNewComment('');
|
|
38
|
-
};
|
|
39
|
-
const toggleLike = (id) => {
|
|
40
|
-
setComments(prev => prev.map(c => {
|
|
41
|
-
if (c.id === id) {
|
|
42
|
-
return {
|
|
43
|
-
...c,
|
|
44
|
-
likes: c.isLiked ? c.likes - 1 : c.likes + 1,
|
|
45
|
-
isLiked: !c.isLiked
|
|
46
|
-
};
|
|
47
|
-
}
|
|
48
|
-
return c;
|
|
49
|
-
}));
|
|
50
|
-
};
|
|
51
|
-
return (_jsxs("div", { className: "mt-20 pt-16 border-t border-armoyu-card-border animate-in fade-in slide-in-from-bottom-4 duration-500", children: [_jsxs("h3", { className: "text-2xl font-black text-armoyu-text uppercase tracking-tighter mb-10 flex items-center gap-3", children: ["Yorumlar", _jsx("span", { className: "text-sm font-bold bg-blue-600/10 text-blue-500 px-3 py-1 rounded-full", children: comments.length })] }), _jsx("div", { className: "glass-panel p-6 rounded-[32px] border border-armoyu-card-border bg-armoyu-card-bg shadow-sm mb-12", children: _jsxs("div", { className: "flex gap-4", children: [_jsx("img", { src: userList[0].avatar, className: "w-10 h-10 rounded-full border border-black/10 dark:border-white/10 shrink-0", alt: "Avatar" }), _jsxs("div", { className: "flex-1 space-y-4", children: [_jsx("textarea", { value: newComment, onChange: (e) => setNewComment(e.target.value), placeholder: "D\u00FC\u015F\u00FCncelerini payla\u015F...", className: "w-full bg-black/5 dark:bg-white/5 border border-black/10 dark:border-white/10 rounded-2xl px-5 py-4 text-sm text-armoyu-text focus:outline-none focus:border-blue-500 transition-all min-h-[100px] resize-none font-medium" }), _jsx("div", { className: "flex justify-end", children: _jsx("button", { onClick: handleAddComment, disabled: !newComment.trim(), className: "px-8 py-3 bg-blue-600 hover:bg-blue-500 disabled:opacity-50 text-white font-black text-xs uppercase tracking-widest rounded-xl shadow-lg shadow-blue-500/20 active:scale-95 transition-all", children: "Yorum Yap" }) })] })] }) }), _jsx("div", { className: "space-y-8", children: comments.map((comment) => (_jsxs("div", { className: "flex gap-5 group animate-in fade-in slide-in-from-left-4 duration-300", children: [_jsx("img", { src: comment.user.avatar, className: "w-12 h-12 rounded-2xl object-cover border border-armoyu-card-border shrink-0 shadow-sm", alt: "Avatar" }), _jsxs("div", { className: "flex-1", children: [_jsxs("div", { className: "flex items-center gap-3 mb-2", children: [_jsx("h4", { className: "text-sm font-black text-armoyu-text uppercase tracking-tight", children: comment.user.displayName }), _jsxs("span", { className: "text-[10px] font-bold text-armoyu-text-muted opacity-60", children: ["\u2022 ", comment.date] })] }), _jsx("p", { className: "text-sm font-medium text-armoyu-text-muted leading-relaxed mb-4", children: comment.text }), _jsxs("div", { className: "flex items-center gap-6", children: [_jsxs("button", { onClick: () => toggleLike(comment.id), className: `flex items-center gap-1.5 text-[10px] font-black uppercase tracking-widest transition-colors ${comment.isLiked ? 'text-rose-500' : 'text-armoyu-text-muted hover:text-rose-500'}`, children: [_jsx("svg", { xmlns: "http://www.w3.org/2000/svg", width: "14", height: "14", viewBox: "0 0 24 24", fill: comment.isLiked ? "currentColor" : "none", stroke: "currentColor", strokeWidth: "3", children: _jsx("path", { d: "M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 0 0 0-7.78z" }) }), "Be\u011Fen (", comment.likes, ")"] }), _jsxs("button", { className: "flex items-center gap-1.5 text-[10px] font-black uppercase tracking-widest text-armoyu-text-muted hover:text-blue-500 transition-colors", children: [_jsx("svg", { xmlns: "http://www.w3.org/2000/svg", width: "14", height: "14", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "3", children: _jsx("path", { d: "M21 11.5a8.38 8.38 0 0 1-.9 3.8 8.5 8.5 0 0 1-7.6 4.7 8.38 8.38 0 0 1-3.8-.9L3 21l1.9-5.7a8.38 8.38 0 0 1-.9-3.8 8.5 8.5 0 0 1 4.7-7.6 8.38 8.38 0 0 1 3.8-.9h.5a8.48 8.48 0 0 1 8 8v.5z" }) }), "Yan\u0131tla"] })] })] })] }, comment.id))) })] }));
|
|
52
|
-
}
|
|
1
|
+
'use client';
|
|
2
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { useState } from 'react';
|
|
4
|
+
import { userList } from '../../../lib/constants/seedData';
|
|
5
|
+
export function NewsComments() {
|
|
6
|
+
const [comments, setComments] = useState([
|
|
7
|
+
{
|
|
8
|
+
id: '1',
|
|
9
|
+
user: userList.find((u) => u.username === 'mythx') || userList[1],
|
|
10
|
+
text: 'V3 gerçekten devrimsel olmuş! Arayüzün hızı inanılmaz. Elinize sağlık ekibi.',
|
|
11
|
+
date: '1 saat önce',
|
|
12
|
+
likes: 12,
|
|
13
|
+
isLiked: false
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
id: '2',
|
|
17
|
+
user: userList.find((u) => u.username === 'alperen_admin') || userList[2],
|
|
18
|
+
text: 'Yeni grup sistemini sabırsızlıkla bekliyoruz. Topluluk için harika bir adım.',
|
|
19
|
+
date: '45 dakika önce',
|
|
20
|
+
likes: 8,
|
|
21
|
+
isLiked: true
|
|
22
|
+
}
|
|
23
|
+
]);
|
|
24
|
+
const [newComment, setNewComment] = useState('');
|
|
25
|
+
const handleAddComment = () => {
|
|
26
|
+
if (!newComment.trim())
|
|
27
|
+
return;
|
|
28
|
+
const comment = {
|
|
29
|
+
id: Date.now().toString(),
|
|
30
|
+
user: userList[0], // Berkay (Siz)
|
|
31
|
+
text: newComment,
|
|
32
|
+
date: 'Şimdi',
|
|
33
|
+
likes: 0,
|
|
34
|
+
isLiked: false
|
|
35
|
+
};
|
|
36
|
+
setComments([comment, ...comments]);
|
|
37
|
+
setNewComment('');
|
|
38
|
+
};
|
|
39
|
+
const toggleLike = (id) => {
|
|
40
|
+
setComments(prev => prev.map(c => {
|
|
41
|
+
if (c.id === id) {
|
|
42
|
+
return {
|
|
43
|
+
...c,
|
|
44
|
+
likes: c.isLiked ? c.likes - 1 : c.likes + 1,
|
|
45
|
+
isLiked: !c.isLiked
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
return c;
|
|
49
|
+
}));
|
|
50
|
+
};
|
|
51
|
+
return (_jsxs("div", { className: "mt-20 pt-16 border-t border-armoyu-card-border animate-in fade-in slide-in-from-bottom-4 duration-500", children: [_jsxs("h3", { className: "text-2xl font-black text-armoyu-text uppercase tracking-tighter mb-10 flex items-center gap-3", children: ["Yorumlar", _jsx("span", { className: "text-sm font-bold bg-blue-600/10 text-blue-500 px-3 py-1 rounded-full", children: comments.length })] }), _jsx("div", { className: "glass-panel p-6 rounded-[32px] border border-armoyu-card-border bg-armoyu-card-bg shadow-sm mb-12", children: _jsxs("div", { className: "flex gap-4", children: [_jsx("img", { src: userList[0].avatar, className: "w-10 h-10 rounded-full border border-black/10 dark:border-white/10 shrink-0", alt: "Avatar" }), _jsxs("div", { className: "flex-1 space-y-4", children: [_jsx("textarea", { value: newComment, onChange: (e) => setNewComment(e.target.value), placeholder: "D\u00FC\u015F\u00FCncelerini payla\u015F...", className: "w-full bg-black/5 dark:bg-white/5 border border-black/10 dark:border-white/10 rounded-2xl px-5 py-4 text-sm text-armoyu-text focus:outline-none focus:border-blue-500 transition-all min-h-[100px] resize-none font-medium" }), _jsx("div", { className: "flex justify-end", children: _jsx("button", { onClick: handleAddComment, disabled: !newComment.trim(), className: "px-8 py-3 bg-blue-600 hover:bg-blue-500 disabled:opacity-50 text-white font-black text-xs uppercase tracking-widest rounded-xl shadow-lg shadow-blue-500/20 active:scale-95 transition-all", children: "Yorum Yap" }) })] })] }) }), _jsx("div", { className: "space-y-8", children: comments.map((comment) => (_jsxs("div", { className: "flex gap-5 group animate-in fade-in slide-in-from-left-4 duration-300", children: [_jsx("img", { src: comment.user.avatar, className: "w-12 h-12 rounded-2xl object-cover border border-armoyu-card-border shrink-0 shadow-sm", alt: "Avatar" }), _jsxs("div", { className: "flex-1", children: [_jsxs("div", { className: "flex items-center gap-3 mb-2", children: [_jsx("h4", { className: "text-sm font-black text-armoyu-text uppercase tracking-tight", children: comment.user.displayName }), _jsxs("span", { className: "text-[10px] font-bold text-armoyu-text-muted opacity-60", children: ["\u2022 ", comment.date] })] }), _jsx("p", { className: "text-sm font-medium text-armoyu-text-muted leading-relaxed mb-4", children: comment.text }), _jsxs("div", { className: "flex items-center gap-6", children: [_jsxs("button", { onClick: () => toggleLike(comment.id), className: `flex items-center gap-1.5 text-[10px] font-black uppercase tracking-widest transition-colors ${comment.isLiked ? 'text-rose-500' : 'text-armoyu-text-muted hover:text-rose-500'}`, children: [_jsx("svg", { xmlns: "http://www.w3.org/2000/svg", width: "14", height: "14", viewBox: "0 0 24 24", fill: comment.isLiked ? "currentColor" : "none", stroke: "currentColor", strokeWidth: "3", children: _jsx("path", { d: "M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 0 0 0-7.78z" }) }), "Be\u011Fen (", comment.likes, ")"] }), _jsxs("button", { className: "flex items-center gap-1.5 text-[10px] font-black uppercase tracking-widest text-armoyu-text-muted hover:text-blue-500 transition-colors", children: [_jsx("svg", { xmlns: "http://www.w3.org/2000/svg", width: "14", height: "14", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "3", children: _jsx("path", { d: "M21 11.5a8.38 8.38 0 0 1-.9 3.8 8.5 8.5 0 0 1-7.6 4.7 8.38 8.38 0 0 1-3.8-.9L3 21l1.9-5.7a8.38 8.38 0 0 1-.9-3.8 8.5 8.5 0 0 1 4.7-7.6 8.38 8.38 0 0 1 3.8-.9h.5a8.48 8.48 0 0 1 8 8v.5z" }) }), "Yan\u0131tla"] })] })] })] }, comment.id))) })] }));
|
|
52
|
+
}
|
|
53
53
|
//# sourceMappingURL=NewsComments.js.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
interface CloudStorageModalProps {
|
|
3
|
-
isOpen: boolean;
|
|
4
|
-
onClose: () => void;
|
|
5
|
-
onSelectMedia?: (url: string, type: 'image' | 'video') => void;
|
|
6
|
-
}
|
|
7
|
-
export declare function CloudStorageModal({ isOpen, onClose, onSelectMedia }: CloudStorageModalProps): React.ReactPortal | null;
|
|
8
|
-
export {};
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface CloudStorageModalProps {
|
|
3
|
+
isOpen: boolean;
|
|
4
|
+
onClose: () => void;
|
|
5
|
+
onSelectMedia?: (url: string, type: 'image' | 'video') => void;
|
|
6
|
+
}
|
|
7
|
+
export declare function CloudStorageModal({ isOpen, onClose, onSelectMedia }: CloudStorageModalProps): React.ReactPortal | null;
|
|
8
|
+
export {};
|
|
9
9
|
//# sourceMappingURL=CloudStorageModal.d.ts.map
|