generated from mateusfg7/nextjs-setup
-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
from mateusfg7/feat/setup-tailwindcss
- Loading branch information
Showing
37 changed files
with
1,267 additions
and
2,258 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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,6 @@ | ||
module.exports = { | ||
plugins: { | ||
tailwindcss: {}, | ||
autoprefixer: {}, | ||
}, | ||
} |
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,5 @@ | ||
import React from 'react' | ||
|
||
export const Container: React.FC = ({ children }) => { | ||
return <div className="max-w-4xl p-5 m-auto">{children}</div> | ||
} |
This file was deleted.
Oops, something went wrong.
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,29 @@ | ||
import React from 'react' | ||
import Link from 'next/link' | ||
|
||
interface Props { | ||
imageUrl: string | ||
title: string | ||
} | ||
|
||
export const Header: React.FC<Props> = ({ imageUrl, title }) => { | ||
return ( | ||
<header className="flex justify-between items-center mb-24"> | ||
<div className="flex items-center gap-5"> | ||
<img src={imageUrl} className="w-12 h-12 rounded-full text-gray-600" /> | ||
<h2>brain</h2> | ||
<span className="text-xs">/</span> | ||
<h1 className="text-xl font-bold">{title}</h1> | ||
</div> | ||
<nav> | ||
<Link href="/"> | ||
<a className="text-text mr-8 hover:underline">Home</a> | ||
</Link> | ||
|
||
<Link href="/categories"> | ||
<a className="text-text mr-8 hover:underline">Categories</a> | ||
</Link> | ||
</nav> | ||
</header> | ||
) | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,29 @@ | ||
import React from 'react' | ||
import Link from 'next/link' | ||
|
||
import { Date } from './Date' | ||
|
||
interface Props { | ||
id: string | ||
title: string | ||
key: number | ||
description: string | ||
date: string | ||
} | ||
|
||
export function KnowledgeLink({ id, key, title, date, description }: Props) { | ||
return ( | ||
<Link href={`/knowledge/${id}`} key={key}> | ||
<a className="group"> | ||
<section className="mb-8"> | ||
<h2 className="text-xl font-bold text-unselectedText group-hover:text-primary"> | ||
{title} | ||
</h2> | ||
<span className="text-unselectedSecondText group-hover:text-secondText"> | ||
<Date dateString={date} /> • {description} | ||
</span> | ||
</section> | ||
</a> | ||
</Link> | ||
) | ||
} |
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 was deleted.
Oops, something went wrong.
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 was deleted.
Oops, something went wrong.
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.
bfc093d
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
mfg-b – ./
mfg-b.vercel.app
mfg-b-mateusfg7.vercel.app
mfg-b-git-main-mateusfg7.vercel.app