Skip to content

Commit

Permalink
consistence height in music cards
Browse files Browse the repository at this point in the history
  • Loading branch information
thisisommore committed Oct 1, 2023
1 parent fd92cb7 commit 85b8da8
Show file tree
Hide file tree
Showing 7 changed files with 25 additions and 11 deletions.
3 changes: 3 additions & 0 deletions hooks/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/bash

yarn lint && yarn build
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"build": "next build",
"start": "next start",
"lint": "next lint --max-warnings 0",
"postinstall": "npm run codegen",
"postinstall": "cp -r hooks .git/ && npm run codegen",
"codegen": "npm run graphql-gen",
"graphql-gen": "graphql-codegen",
"graphql-watch": "graphql-codegen -w"
Expand Down
4 changes: 4 additions & 0 deletions src/app/account/all-songs/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ import React, { useEffect } from "react";
import { usePublicClient, useWalletClient } from "wagmi";
import AccountListBtn from "../AccountListBtn";
import { unmonetize } from "@/services/smart-contract/unmonetize";
import Link from "next/link";

const Account = () => {
const { data: walletClient } = useWalletClient();
Expand Down Expand Up @@ -97,6 +98,9 @@ const Account = () => {
<div className="ml-2">
<div className="flex mt-6">
<p className="font-bold text-2xl">Music NFTs</p>
<Link className="text-2xl ml-auto" href="/account/">
<p>See less</p>
</Link>
</div>
</div>

Expand Down
1 change: 1 addition & 0 deletions src/app/account/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import SongListItemMusicNFT from "@/components/SongList/SongListItemMusicNFT";
import SongListItemSpinamp from "@/components/SongList/SongListItemSpinamp";
import { AppWalletContext } from "@/context/AppWallet";
import { MusicNFTAddr } from "@/env";

import { GET_MY_LISTED_MUSIC } from "@/graph-ql/queries/octav3/GET_MY_LISTED_MUSIC/getMyListedMusic";
import { GET_MY_MUSIC } from "@/graph-ql/queries/octav3/GET_MY_MUSIC/getMyMusic";
import { GetMyMusicQuery } from "@/graph-ql/queries/octav3/__generated__/graphql";
Expand Down
2 changes: 1 addition & 1 deletion src/components/MintSongButton/MintSongButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ const MintSongButton: React.FC = () => {
onClick={() =>
isConnected ? setShowModal(true) : openConnectModal?.()
}
className="flex justify-center items-center m-2 w-60 md:w-48 lg:w-60 h-80 border-[1px] border-solid border-[#00000026] text-[#00000026] text-[10rem] font-light rounded-md"
className="flex justify-center items-center m-2 w-60 md:w-48 lg:w-60 h-[18.5rem] border-[1px] border-solid border-[#00000026] text-[#00000026] text-[10rem] font-light rounded-md"
>
<span className="iconify" data-icon="ph:plus-thin"></span>
</div>
Expand Down
17 changes: 8 additions & 9 deletions src/components/SongList/SongListItemUI.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ type Props = {
platform?: { url: string; name: Platform };
isCurrentPlaying: boolean;
customBtn?: React.ReactNode;
viewOn?: { url: string; name: string };
};

const SongListItemUIStyled = styled.div`
Expand Down Expand Up @@ -46,7 +45,6 @@ const SongListItemUI = ({
platform,
isCurrentPlaying,
customBtn,
viewOn,
}: Props) => {
const [imageLoaded, setImageLoaded] = useState(false);
return (
Expand Down Expand Up @@ -92,20 +90,21 @@ const SongListItemUI = ({
{title}
</p>
<p className="m-0 text-xs text-[#00000099]">{artist}</p>
{viewOn && (
<a href={viewOn.url}>
<p className="text-[#2D5F8A] mt-3 mb-1">
View on {viewOn.name}
</p>
</a>
)}

{platform && (
<a href={platform.url}>
<p className="text-[#2D5F8A] mt-3 mb-1">
View on {platform.name}
</p>
</a>
)}
{!platform && (
<a>
<p className="text-[#2D5F8A] mt-3 mb-1 opacity-0 cursor-none">
View on Octav3
</p>
</a>
)}
</div>
</div>
</SongListItemUIStyled>
Expand Down
7 changes: 7 additions & 0 deletions src/graph-ql/queries/spinamp/__generated__/graphql.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 85b8da8

Please sign in to comment.