Skip to content

Commit b86c5bf

Browse files
committed
Merge branch 'main' into feature/login-stats
2 parents fd09434 + f5c4a98 commit b86c5bf

File tree

7 files changed

+28
-13
lines changed

7 files changed

+28
-13
lines changed

web/posts/help/5_custom-instruments.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ Note Block World lets you use any sound in the latest Minecraft version in your
5454

5555
When you upload a song that uses custom instruments to Note Block World, you'll need to manually select the sound files for each custom instrument you used. This ensures that your song sounds the way you intended it to sound, even if the listener doesn't have the custom instruments installed.
5656

57-
Uploading a song with custom instruments follows the same process as [uploading a regular song](/help/1-creating-song), with the addition of manually selecting the sound files for your custom instruments. Here's how you can do it:
57+
Uploading a song with custom instruments follows the same process as [uploading a regular song](/help/creating-song), with the addition of manually selecting the sound files for your custom instruments. Here's how you can do it:
5858

5959
1. After you've filled in the song's title, description, and other metadata, you'll see a section labeled _Custom instruments_.
6060

web/public/ads.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
google.com, pub-2486912467787383, DIRECT, f08c47fec0942fa0
2+
google.com, pub-6165475566660433, DIRECT, f08c47fec0942fa0

web/src/app/(content)/(info)/blog/[id]/page.tsx

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import type { Metadata } from 'next';
22
import Image from 'next/image';
3+
import Link from 'next/link';
34
import { notFound } from 'next/navigation';
45

56
import { PostType, getPostData } from '@web/src/lib/posts';
6-
import BackButton from '@web/src/modules/shared/components/client/BackButton';
77
import { CustomMarkdown } from '@web/src/modules/shared/components/CustomMarkdown';
88

99
type BlogPageProps = {
@@ -45,9 +45,12 @@ const BlogPost = ({ params }: BlogPageProps) => {
4545
return (
4646
<>
4747
<article className='max-w-screen-md mx-auto mb-36'>
48-
<BackButton className='text-zinc-500 hover:text-zinc-400 text-sm'>
49-
{'< Back to Help'}
50-
</BackButton>
48+
<Link
49+
href='/help'
50+
className='text-zinc-500 hover:text-zinc-400 text-sm'
51+
>
52+
{'< Back to Blog'}
53+
</Link>
5154
<h1 className='text-4xl font-bold mt-16 mb-8'>{post.title}</h1>
5255

5356
{/* Author */}

web/src/app/(content)/(info)/help/[id]/page.tsx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import Link from 'next/link';
44
import { notFound } from 'next/navigation';
55

66
import { PostType, getPostData } from '@web/src/lib/posts';
7-
import BackButton from '@web/src/modules/shared/components/client/BackButton';
87
import { CustomMarkdown } from '@web/src/modules/shared/components/CustomMarkdown';
98

109
type HelpPageProps = {
@@ -46,9 +45,12 @@ const HelpPost = ({ params }: HelpPageProps) => {
4645
return (
4746
<>
4847
<article className='max-w-screen-md mx-auto mb-36'>
49-
<BackButton className='text-zinc-500 hover:text-zinc-400 text-sm'>
48+
<Link
49+
href='/blog'
50+
className='text-zinc-500 hover:text-zinc-400 text-sm'
51+
>
5052
{'< Back to Help'}
51-
</BackButton>
53+
</Link>
5254
<h1 className='text-4xl font-bold mt-16 mb-8'>{post.title}</h1>
5355

5456
{/* Author */}

web/src/app/globals.css

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,3 +150,12 @@ body {
150150
transform: translatex(100%) skewy(-45deg);
151151
top: -4px;
152152
}
153+
154+
155+
/************** Google AdSense **************/
156+
157+
/* Hide unfilled ads */
158+
/* https://support.google.com/adsense/answer/10762946?hl=en */
159+
ins.adsbygoogle[data-ad-status="unfilled"] {
160+
display: none !important;
161+
}

web/src/modules/browse/components/SongCard.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ const SongCard = ({ song }: { song: SongPreviewDtoType | null }) => {
7373
return !song ? (
7474
<SongDataDisplay song={song} />
7575
) : (
76-
<Link href={`/song/${song.publicId}`} className='h-full'>
76+
<Link href={`/song/${song.publicId}`} className='h-full max-h-fit'>
7777
<div
7878
className='bg-zinc-800 hover:scale-105 hover:bg-zinc-700 rounded-lg cursor-pointer w-full h-full transition-all duration-200'
7979
style={{ backfaceVisibility: 'hidden' }}

web/src/modules/shared/components/client/ads/AdSlots.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ export const SideRailAdSlot = ({ className }: { className?: string }) => {
122122
// height with this class: "max-h-[calc(100vh-9rem)]", but then the container doesn't fit to
123123
// the ad content height, always occupying the full viewport height instead. So we use 'max-w-fit'
124124
// to cap the max height to that of the ad.
125-
'flex-0 sticky mb-8 top-24 p-2 min-h-96 max-h-fit hidden xl:block w-36 min-w-36 bg-zinc-800/50 rounded-xl',
125+
'flex-0 sticky mb-8 top-24 max-h-fit hidden xl:block w-36 min-w-36 bg-zinc-800/50 rounded-xl',
126126
className,
127127
)}
128128
adSlot='4995642586'
@@ -152,7 +152,7 @@ export const MultiplexAdSlot = ({ className }: { className?: string }) => {
152152
return (
153153
<AdTemplate
154154
className={cn(
155-
'relative rounded-xl bg-zinc-800/50 p-2 my-8 h-auto min-h-32 w-full min-w-64 text-sm text-zinc-400',
155+
'relative rounded-xl bg-zinc-800/50 my-8 h-auto min-h-32 w-full min-w-64 text-sm text-zinc-400',
156156
className,
157157
)}
158158
adSlot='6673081563'
@@ -166,12 +166,12 @@ export const SongCardAdSlot = ({ className }: { className?: string }) => {
166166
return (
167167
<AdTemplate
168168
className={cn(
169-
'relative rounded-xl bg-zinc-800 p-2 my-8 h-full w-full min-w-64 text-sm text-zinc-400',
169+
'relative rounded-xl bg-zinc-800 p-2 h-full w-full min-w-64 text-sm text-zinc-400',
170170
className,
171171
)}
172172
adSlot='1737918264'
173173
adFormat='fluid'
174-
adLayoutKey='-7o+ez-1j-38+bu'
174+
adLayoutKey='-6o+ez-1j-38+bu'
175175
showCloseButton={false}
176176
/>
177177
);

0 commit comments

Comments
 (0)