generated from codersforcauses/django-nextjs-template
-
Notifications
You must be signed in to change notification settings - Fork 4
Issue 8 resolve merge conflict #37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Karl-Sue
merged 10 commits into
issue-8-Individual_art_pages
from
issue-8-resolve-merge-conflict
Dec 13, 2025
Merged
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
7f91e0b
refactor: keep admin register simple
Karl-Sue aeedeec
fix: space error
Karl-Sue f4d442a
feature: improve responsive layout
Karl-Sue ac79752
fix: resolve merge conflicts in artwork pages
Karl-Sue 3b5607e
feat: add Art hook
Karl-Sue 2e9ef67
feat: add Artwork hook
Karl-Sue 3d38119
feat: add placeholder art
Karl-Sue 0b4164d
Fix flake8
hanminh1203 45afd6d
fix: match Prettier code style
Karl-Sue b7273d5
Fix flake8
hanminh1203 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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,34 @@ | ||
| import Link from "next/link"; | ||
|
|
||
| const ButtonGallery = () => { | ||
| return ( | ||
| <Link href="/artwork" aria-label="Go back to gallery"> | ||
| <button | ||
| className="bg-neutral-1 text-light-3 group relative mb-10 h-14 w-48 rounded-2xl text-center text-xl font-semibold" | ||
| type="button" | ||
| > | ||
| <div className="bg-light-2 absolute left-1 top-[4px] z-10 flex h-12 w-1/4 items-center justify-center rounded-xl duration-500 group-hover:w-[184px]"> | ||
| <svg | ||
| xmlns="http://www.w3.org/2000/svg" | ||
| viewBox="0 0 1024 1024" | ||
| height="25px" | ||
| width="25px" | ||
| aria-hidden="true" | ||
| > | ||
| <path | ||
| d="M224 480h640a32 32 0 1 1 0 64H224a32 32 0 0 1 0-64z" | ||
| fill="#000000" | ||
| /> | ||
| <path | ||
| d="m237.248 512 265.408 265.344a32 32 0 0 1-45.312 45.312l-288-288a32 32 0 0 1 0-45.312l288-288a32 32 0 1 1 45.312 45.312L237.248 512z" | ||
| fill="#000000" | ||
| /> | ||
| </svg> | ||
| </div> | ||
| <p className="translate-x-2">Gallery</p> | ||
| </button> | ||
| </Link> | ||
| ); | ||
| }; | ||
|
|
||
| export default ButtonGallery; | ||
This file contains hidden or 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,30 @@ | ||
| import Image from "next/image"; | ||
| import React from "react"; | ||
|
|
||
| interface CardProps { | ||
| imageSrc?: string; | ||
| imageAlt?: string; | ||
| children?: React.ReactNode; | ||
| } | ||
|
|
||
| const Card = ({ imageSrc, imageAlt = "Artwork", children }: CardProps) => { | ||
| return ( | ||
| <div className="group p-4"> | ||
| <div className="box-border flex h-[20rem] w-[20rem] flex-1 cursor-pointer select-none items-center justify-center self-stretch overflow-hidden rounded-[10px] border border-white bg-[#CED1FE] shadow-[12px_17px_51px_rgba(0,0,0,0.22)] backdrop-blur-md transition-all duration-500 hover:scale-105 hover:border-black active:rotate-[1.7deg] active:scale-95"> | ||
| {imageSrc ? ( | ||
| <Image | ||
| src={imageSrc} | ||
| alt={imageAlt} | ||
| width={190} | ||
| height={254} | ||
| className="h-full w-full object-cover" | ||
| /> | ||
| ) : ( | ||
| children || <span className="font-bold text-black">No Image</span> | ||
| )} | ||
| </div> | ||
| </div> | ||
| ); | ||
| }; | ||
|
|
||
| export default Card; |
This file contains hidden or 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,49 @@ | ||
| import { Art } from "@/types/art"; | ||
|
|
||
| export const generateMockArtworks = (count: number): Art[] => { | ||
| const artworks: Art[] = []; | ||
| for (let i = 1; i <= count; i++) { | ||
| artworks.push({ | ||
| id: i, | ||
| name: `Artwork ${i}`, | ||
| description: "Mock artwork description", | ||
| //source_game: "Mock Game", | ||
| path_to_media: "", | ||
| active: true, | ||
| contributors: [], | ||
| //created_at: new Date().toISOString(), | ||
| }); | ||
| } | ||
| return artworks; | ||
| }; | ||
|
|
||
| export const generateMockArtwork = (id: string): Art => { | ||
| return { | ||
| id: Number(id), | ||
| name: "Mock Artwork Title", | ||
| description: | ||
| "Lorem ipsum dolor sit amet. Non numquam dicta nam autem dicta 33 error molestias et repellat consequatur eum iste expedita est dolorem libero et quas provident!", | ||
| //source_game: "Mock Game", | ||
| path_to_media: "", | ||
| active: true, | ||
| //created_at: new Date().toISOString(), | ||
| contributors: [ | ||
| { | ||
| id: 1, | ||
| art_id: Number(id), | ||
| member_name: "Contributor 1", | ||
| role: "user1", | ||
| discord_url: "https://discord.com", | ||
| instagram_url: "", | ||
| }, | ||
| { | ||
| id: 2, | ||
| art_id: Number(id), | ||
| member_name: "Contributor 2", | ||
| role: "user2", | ||
| discord_url: "", | ||
| instagram_url: "https://instagram.com", | ||
| }, | ||
| ], | ||
| }; | ||
| }; |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.