Skip to content

Commit

Permalink
feat: mobile everything
Browse files Browse the repository at this point in the history
  • Loading branch information
gatteo committed Mar 11, 2024
1 parent f636c44 commit 8b54da4
Show file tree
Hide file tree
Showing 8 changed files with 13 additions and 13 deletions.
4 changes: 2 additions & 2 deletions app/(core)/blog/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ export default async function Page() {
return (
<>
<PageTitle
title='Articoli. Storie. Guide.'
description='Sono onesto, la scrittura non è il mio punto forte. Non è che non mi piaccia, ma spesso mi spaventa affrontare una pagina bianca da riempire con parole. Proprio per questo, ho deciso di sfidare me stesso creando questo piccolo angolo del web, un posto dove allenarmi a scrivere. Tanto chi legge i blog nel 2024?'
title='articoli. storie. guide.'
description='sarò onesto, la scrittura non è il mio punto forte. Non è che non mi piaccia, ma spesso mi spaventa affrontare una pagina bianca da riempire con parole. Proprio per questo, ho deciso di sfidare me stesso creando questo piccolo angolo del web, un posto dove allenarmi a scrivere. Tanto chi legge i blog nel 2024?'
fromColor='from-purple-400'
toColor='to-pink-600'
/>
Expand Down
8 changes: 4 additions & 4 deletions app/(core)/contacts/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ export default function Page() {
toColor='to-blue-500'
/>

<h2 className='mt-16 text-2xl font-bold'>Email</h2>
<div className='mt-6 grid grid-cols-1 gap-4 sm:grid-cols-2'>
<h2 className='mt-16 text-xl font-bold md:text-2xl'>Email</h2>
<div className='mt-4 grid grid-cols-1 gap-4 sm:grid-cols-2 md:mt-6'>
{ContactLinks.map((link) => {
return (
<Link
Expand All @@ -43,8 +43,8 @@ export default function Page() {
})}
</div>

<h2 className='mt-16 text-2xl font-bold'>Social</h2>
<div className='mt-6 grid grid-cols-1 gap-4 sm:grid-cols-3'>
<h2 className='mt-16 text-xl font-bold md:text-2xl'>Social</h2>
<div className='mt-4 grid grid-cols-1 gap-4 sm:grid-cols-3 md:mt-6'>
{SocialLinks.map((link) => {
return (
<Link
Expand Down
2 changes: 1 addition & 1 deletion components/blog/post-footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ type Props = {
export function Footer({ slug, title, source, author }: Props) {
return (
<div>
<div className='mt-10 flex w-full flex-col items-center gap-2 border-t pt-4 md:flex-row md:justify-between'>
<div className='mt-10 flex w-full flex-col items-center gap-4 border-t pt-4 md:flex-row md:justify-between'>
<div className='flex flex-row items-center gap-2'>
<Avatar className='size-6'>
<AvatarImage src={author.image} />
Expand Down
2 changes: 1 addition & 1 deletion components/blog/post-header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export function Header({ createdAt, title, slug, summary, image, source, author,
<motion.div initial={animation.hide} animate={animation.show}>
<h1 className='text-5xl font-bold'>{title}</h1>
<div className='mt-2 text-muted-foreground'>{summary}</div>
<div className='mt-8 flex flex-col items-center justify-between gap-4 lg:flex-row'>
<div className='mt-8 flex flex-col items-center justify-between gap-8 md:flex-row'>
<div className='flex flex-wrap items-center gap-2 text-xs sm:text-sm'>
<div className='flex flex-row items-center gap-2'>
<Avatar className='size-6'>
Expand Down
2 changes: 1 addition & 1 deletion components/blog/post-toc.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const TableOfContents = (props: TableOfContentsProps) => {
)

return (
<div className='hidden lg:block'>
<div className=''>
<div className='mb-4 flex items-center gap-4'>On this page</div>
<div>
{toc.map((item) => {
Expand Down
4 changes: 2 additions & 2 deletions components/blog/subscribe-form.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ export function SubscribeForm({ className }: { className?: string }) {
{`
window.CustomSubstackWidget = {
substackUrl: "matteogiardino.substack.com",
placeholder: "example@gmail.com",
buttonText: "Iscriviti",
placeholder: "la tua email",
buttonText: "iscriviti",
theme: "custom",
colors: {
primary: "#FFFFFF",
Expand Down
2 changes: 1 addition & 1 deletion components/mdx-content.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export async function Content({ title, body, url }: Props) {
<article className='w-full lg:w-[670px]'>
<Mdx code={body.code} />
</article>
<aside className='lg:min-w-[270px] lg:max-w-[270px]'>
<aside className='hidden lg:block lg:min-w-[270px] lg:max-w-[270px]'>
<div className='sticky top-24 will-change-[transform,opacity]'>
{toc && toc.length > 0 && <TableOfContents toc={toc} />}
<div className='mt-6 flex justify-start'>
Expand Down
2 changes: 1 addition & 1 deletion config/links.ts
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,6 @@ export const ContactLinks: ContactLinks = [
name: 'Wezard',
mailto: 'matteo@wezard.it',
icon: 'email',
logo: '/images/brands/wezard-icon.webp',
logo: '/images/brands/wezard-icon.png',
},
]

0 comments on commit 8b54da4

Please sign in to comment.