Skip to content

Commit f4acedb

Browse files
committed
Guild Overvies & settings & embed
1 parent f1b5c83 commit f4acedb

File tree

21 files changed

+2836
-315
lines changed

21 files changed

+2836
-315
lines changed

README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,10 @@
99
- Premium [] not now
1010

1111
Last bg for side #191822
12-
last bg #1d1c27
12+
last bg #1d1c27
13+
14+
# Guild Pages
15+
16+
- Overview []
17+
- Settings []
18+
- Embed Message []

app/dashboard/page.jsx

Lines changed: 16 additions & 68 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
import Navbar from "@/components/dashboard/navbar"
33
import Sidebar from "@/components/dashboard/sidebar"
44
import { useSidebar } from "@/context/userSidebar";
5-
import { motion, AnimatePresence } from "framer-motion";
65
import { LogOut, LayoutDashboard } from "lucide-react"
76
import Page from "@/components/dashboard/page";
87
import ChartAreaDefault from "@/components/dashboard/chart-area";
@@ -43,45 +42,19 @@ export default function Dashboard() {
4342
<Page>
4443

4544
<div className="flex flex-col md:flex-row md:items-center gap-1 md:gap-4 mb-4">
46-
<motion.div
47-
initial={{ opacity: 0, scale: 0.95 }}
48-
animate={{ opacity: 1, scale: 1 }}
49-
transition={{ duration: 0.6, delay: 1 * 0.1 }}>
5045
<h2 className="text-white flex space-x-2 font-medium text-lg md:text-xl">
5146
<LayoutDashboard className="h-6 w-6" />
5247
<span>Overview</span>
5348
</h2>
54-
</motion.div>
55-
<motion.div
56-
initial={{ opacity: 0, scale: 0.95 }}
57-
animate={{ opacity: 1, scale: 1 }}
58-
transition={{ duration: 0.6, delay: 2 * 0.1 }}>
5949
<span className="hidden md:block w-px h-4 bg-[#5b5683]"></span>
60-
</motion.div>
61-
<motion.div
62-
initial={{ opacity: 0, scale: 0.95 }}
63-
animate={{ opacity: 1, scale: 1 }}
64-
transition={{ duration: 0.6, delay: 3 * 0.1 }}>
6550
<span className="text-md text-zinc-400">
66-
The Overview page gives you a quick glance at your most important information and activities, all in one place. Its designed to help you stay on top of your account without needing to jump between different sections.
51+
The Overview page gives you a quick glance at your most important information and activities, all in one place. It's designed to help you stay on top of your account without needing to jump between different sections.
6752
</span>
68-
</motion.div>
6953
</div>
70-
<motion.div
71-
initial={{ opacity: 0, scale: 0.95 }}
72-
animate={{ opacity: 1, scale: 1 }}
73-
transition={{ duration: 0.6, delay: 4 * 0.1 }}
74-
>
7554
<hr className="border-[#302e46] mb-4" />
76-
</motion.div>
7755

7856
<div className="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-4">
79-
<motion.div
80-
initial={{ opacity: 0, scale: 0.95 }}
81-
animate={{ opacity: 1, scale: 1 }}
82-
transition={{ duration: 0.6, delay: 5 * 0.1 }}
83-
className="bg-[#191822]/50 backdrop-blur p-3 sm:p-4 sm:py-2 rounded-md border border-[#2e2b41]"
84-
>
57+
<div className="bg-[#191822]/50 backdrop-blur p-3 sm:p-4 sm:py-2 rounded-md border border-[#2e2b41]">
8558
<div className="flex items-center gap-2 justify-between sm:gap-3">
8659

8760
<div className="flex flex-col mt-0.5">
@@ -97,15 +70,10 @@ export default function Dashboard() {
9770
<p className=" text-xl sm:text-2xl font-semibold break-words">
9871
{formatted}
9972
</p>
100-
</motion.div>
73+
</div>
10174

10275

103-
<motion.div
104-
initial={{ opacity: 0, scale: 0.95 }}
105-
animate={{ opacity: 1, scale: 1 }}
106-
transition={{ duration: 0.6, delay: 6 * 0.1 }}
107-
className="bg-[#191822]/50 backdrop-blur p-3 sm:p-4 sm:py-2 rounded-md border border-[#2e2b41]"
108-
>
76+
<div className="bg-[#191822]/50 backdrop-blur p-3 sm:p-4 sm:py-2 rounded-md border border-[#2e2b41]">
10977
<div className="flex items-center gap-2 justify-between sm:gap-3">
11078

11179
<div className="flex flex-col mt-0.5">
@@ -121,14 +89,9 @@ export default function Dashboard() {
12189
<p className=" text-xl sm:text-2xl font-semibold break-words">
12290
45
12391
</p>
124-
</motion.div>
125-
126-
<motion.div
127-
initial={{ opacity: 0, scale: 0.95 }}
128-
animate={{ opacity: 1, scale: 1 }}
129-
transition={{ duration: 0.6, delay: 7 * 0.1 }}
130-
className="bg-[#191822]/50 backdrop-blur p-3 sm:p-4 sm:py-2 rounded-md border border-[#2e2b41]"
131-
>
92+
</div>
93+
94+
<div className="bg-[#191822]/50 backdrop-blur p-3 sm:p-4 sm:py-2 rounded-md border border-[#2e2b41]">
13295
<div className="flex items-center gap-2 justify-between sm:gap-3">
13396

13497
<div className="flex flex-col mt-0.5">
@@ -144,14 +107,9 @@ export default function Dashboard() {
144107
<p className=" text-xl sm:text-2xl font-semibold break-words">
145108
99
146109
</p>
147-
</motion.div>
148-
149-
<motion.div
150-
initial={{ opacity: 0, scale: 0.95 }}
151-
animate={{ opacity: 1, scale: 1 }}
152-
transition={{ duration: 0.6, delay: 8 * 0.1 }}
153-
className="bg-[#1b1922]/50 backdrop-blur p-3 sm:p-4 sm:py-2 rounded-md border border-[#2e2b41]"
154-
>
110+
</div>
111+
112+
<div className="bg-[#1b1922]/50 backdrop-blur p-3 sm:p-4 sm:py-2 rounded-md border border-[#2e2b41]">
155113
<div className="flex items-center gap-2 justify-between sm:gap-3">
156114

157115
<div className="flex flex-col mt-0.5">
@@ -167,25 +125,15 @@ export default function Dashboard() {
167125
<p className=" text-xl sm:text-2xl font-semibold break-words">
168126
#1
169127
</p>
170-
</motion.div>
128+
</div>
171129
</div>
172130

173131
<div className="mt-[2rem] flex flex-col lg:flex-row items-stretch w-full gap-6">
174-
<motion.div
175-
initial={{ opacity: 0, scale: 0.95 }}
176-
animate={{ opacity: 1, scale: 1 }}
177-
transition={{ duration: 0.6, delay: 9 * 0.1 }}
178-
className="flex-1 min-w-0"
179-
>
132+
<div className="flex-1 min-w-0">
180133
<ChartAreaDefault />
181-
</motion.div>
182-
183-
<motion.div
184-
initial={{ opacity: 0, scale: 0.95 }}
185-
animate={{ opacity: 1, scale: 1 }}
186-
transition={{ duration: 0.6, delay: 10 * 0.1 }}
187-
className="flex-shrink-0 w-full lg:w-[420px] xl:w-[500px] h-full"
188-
>
134+
</div>
135+
136+
<div className="flex-shrink-0 w-full lg:w-[420px] xl:w-[500px] h-full">
189137
<div className="bg-[#191822]/50 border border-[#2e2b41] p-6 rounded-lg flex flex-col md:h-[34.5rem]">
190138
<div className="flex justify-between">
191139
<h3 className="text-xl text-gray-200 font-semibold mb-6">Profile</h3>
@@ -210,7 +158,7 @@ export default function Dashboard() {
210158
)}
211159

212160
</div>
213-
</motion.div>
161+
</div>
214162
</div>
215163

216164

app/layout.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { Geist, Geist_Mono } from "next/font/google";
22
import "./globals.css";
33
import { SidebarProvider } from "@/context/userSidebar";
4+
import { GuildSidebarProvider } from "@/context/guildSidebar";
45

56
export const metadata = {
67
title: "Muzzle Bot",
@@ -42,7 +43,9 @@ export default function RootLayout({ children }) {
4243
className={`tfont custom-scrollbar`}
4344
>
4445
<SidebarProvider>
46+
<GuildSidebarProvider>
4547
{children}
48+
</GuildSidebarProvider>
4649
</SidebarProvider>
4750
</body>
4851
</html>

app/page.jsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -108,8 +108,8 @@ export default function ParticlesBasic() {
108108
opacity: 1,
109109
y: 0,
110110
transition: {
111-
delay: totalDelay + i * 0.3,
112-
duration: 0.6,
111+
delay: totalDelay + i * 0.1,
112+
duration: 0.5,
113113
ease: "easeOut",
114114
},
115115
}),
@@ -242,7 +242,7 @@ export default function ParticlesBasic() {
242242
initial={{ opacity: 0, y: 30 }}
243243
animate={{ opacity: 1, y: 0 }}
244244
transition={{
245-
duration: 0.8,
245+
duration: 0.3,
246246
ease: "easeOut"
247247
}}
248248
className="text-4xl md:text-[4rem] font-extrabold main-title"
@@ -254,8 +254,8 @@ export default function ParticlesBasic() {
254254
initial={{ opacity: 0, y: 20 }}
255255
animate={{ opacity: 1, y: 0 }}
256256
transition={{
257-
duration: 0.8,
258-
delay: 0.3,
257+
duration: 0.4,
258+
delay: 0.1,
259259
ease: "easeOut"
260260
}}
261261
className="text-gray-300 text-lg md:text-xl mb-6 max-w-2xl mx-auto leading-relaxed"

0 commit comments

Comments
 (0)