-
Notifications
You must be signed in to change notification settings - Fork 112
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1aa93bf
commit 97f11ad
Showing
8 changed files
with
198 additions
and
108 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import React, { MouseEventHandler } from "react"; | ||
|
||
const EditButton = () => { | ||
return ( | ||
<button | ||
type="button" | ||
className="flex justify-center max-h-[3.125rem] items-center whitespace-nowrap p-3 bg-blueMirror rounded-xl font-primary font-semibold border border-transparent text-white shadow-[0_2px_40px_0px_rgba(57,121,255,0.4)] min-w-fit mobile:text-xs bg-transparent shadowNone text-blueMirror bg-[#121428] | ||
hover:bg-blue-700 hover:ease-in duration-100 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-400" | ||
> | ||
<svg | ||
xmlns="http://www.w3.org/2000/svg" | ||
viewBox="0 0 20 20" | ||
fill="currentColor" | ||
aria-hidden="true" | ||
className="w-6 h-6" | ||
> | ||
<path d="M13.586 3.586a2 2 0 112.828 2.828l-.793.793-2.828-2.828.793-.793zM11.379 5.793L3 14.172V17h2.828l8.38-8.379-2.83-2.828z"></path> | ||
</svg>{" "} | ||
</button> | ||
); | ||
}; | ||
|
||
export default EditButton; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,14 @@ | ||
import React from "react"; | ||
import { Separator } from "@/components/ui/separator"; | ||
import { Metadata } from "next"; | ||
import { Sidebar } from "@/app/home/components/sidebar"; | ||
import { playlists } from "@/app/home/data/playlists"; | ||
import EditButton from "./components/editButton"; | ||
import { Dialog, DialogContent, DialogTrigger } from "@/components/ui/dialog"; | ||
import { Input } from "@/components/ui/input"; | ||
import { Label } from "@/components/ui/label"; | ||
import ResetPassword from "@/app/protected/reset-password/page"; | ||
import ResetEmail from "@/app/protected/reset-email/page"; | ||
|
||
export const metadata: Metadata = { | ||
title: "Discover", | ||
description: "", | ||
}; | ||
const MyAccount = () => { | ||
return ( | ||
<div className="bg-background flex"> | ||
|
@@ -35,38 +36,55 @@ const MyAccount = () => { | |
<div className="flex items-center gap-2 mobile:gap-1 w-full justify-between"> | ||
<div className="flex relative"> | ||
<div className="flex-wrap mt-1 rounded-md shadow-sm"> | ||
<input | ||
id="email" | ||
autoComplete="none" | ||
name="email" | ||
<Input | ||
type="email" | ||
placeholder="[email protected]" | ||
className="block h-[3.125rem] rounded-xl focus:outline-none pt-6 pl-4 bg-bluenav text-white text-base font-semibold font-primary border-gray-700 text-disabledMirror focus:border-ringBlue border-none bg-transparent" | ||
value="[email protected]" | ||
name="email" | ||
className="block h-[3.125rem] rounded-xl focus:outline-none pt-6 pl-4 text-white text-base font-semibold font-primary border-gray-700 text-disabledMirror focus:border-ringBlue border-none bg-transparent" | ||
value={"[email protected]"} | ||
/> | ||
<label | ||
<Label | ||
htmlFor="email" | ||
className="absolute left-4 top-2 text-textInput text-xs font-semibold font-primary peer-placeholder-shown:text-sm peer-focus:text-xs" | ||
> | ||
</label> | ||
</Label> | ||
</div> | ||
</div> | ||
<Dialog> | ||
<DialogTrigger asChild> | ||
<EditButton /> | ||
</DialogTrigger> | ||
<DialogContent> | ||
<ResetEmail searchParams={{ message: "" }} /> | ||
</DialogContent> | ||
</Dialog> | ||
</div> | ||
{/* ========== */} | ||
<div className="flex items-center gap-2 mobile:gap-1 w-full justify-between mt-4"> | ||
<div className="flex relative"> | ||
<div className="flex-wrap mt-1 rounded-md shadow-sm"> | ||
<Input | ||
type="password" | ||
name="password" | ||
value="[email protected]" | ||
className="block h-[3.125rem] rounded-xl focus:outline-none pt-6 pl-4 text-white text-base font-semibold font-primary border-gray-700 text-disabledMirror focus:border-ringBlue border-none bg-transparent" | ||
/> | ||
<Label | ||
htmlFor="password" | ||
className="absolute left-4 top-2 text-textInput text-xs font-semibold font-primary peer-placeholder-shown:text-sm peer-focus:text-xs" | ||
> | ||
Password | ||
</Label> | ||
</div> | ||
</div> | ||
<button | ||
type="button" | ||
className="flex justify-center max-h-[3.125rem] items-center whitespace-nowrap p-3 bg-blueMirror rounded-xl font-primary font-semibold border border-transparent text-white shadow-[0_2px_40px_0px_rgba(57,121,255,0.4)] min-w-fit mobile:text-xs bg-transparent shadowNone text-blueMirror bg-[#121428] | ||
hover:bg-blue-700 hover:ease-in duration-100 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-400" | ||
> | ||
<svg | ||
xmlns="http://www.w3.org/2000/svg" | ||
viewBox="0 0 20 20" | ||
fill="currentColor" | ||
aria-hidden="true" | ||
className="w-6 h-6" | ||
> | ||
<path d="M13.586 3.586a2 2 0 112.828 2.828l-.793.793-2.828-2.828.793-.793zM11.379 5.793L3 14.172V17h2.828l8.38-8.379-2.83-2.828z"></path> | ||
</svg>{" "} | ||
</button> | ||
<Dialog> | ||
<DialogTrigger asChild> | ||
<EditButton /> | ||
</DialogTrigger> | ||
<DialogContent> | ||
<ResetPassword searchParams={{ message: "" }} /> | ||
</DialogContent> | ||
</Dialog> | ||
</div> | ||
</div> | ||
</div> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.