Skip to content

Commit

Permalink
Adjust layout
Browse files Browse the repository at this point in the history
  • Loading branch information
laurogripa committed Jul 13, 2024
1 parent 2ebadc2 commit 3f999a3
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 16 deletions.
7 changes: 1 addition & 6 deletions app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ import './css/style.css'

import { Inter, Architects_Daughter } from 'next/font/google'

import Header from '@/components/ui/header'

const inter = Inter({
subsets: ['latin'],
variable: '--font-inter',
Expand All @@ -28,10 +26,7 @@ export default function RootLayout({ children }: { children: React.ReactNode })
<body
className={`${inter.variable} ${architects_daughter.variable} font-inter antialiased bg-gray-900 text-gray-200 tracking-tight`}
>
<div className="flex flex-col min-h-screen overflow-hidden">
<Header />
{children}
</div>
<div className="flex flex-col min-h-screen overflow-hidden">{children}</div>
</body>
</html>
)
Expand Down
2 changes: 1 addition & 1 deletion components/about.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ export default function About() {
return (
<section>
<div className="max-w-6xl mx-auto px-4 sm:px-6">
<div className="py-12 md:py-20 border-t border-gray-800">
<div className="py-12 md:py-20">
{/* Section header */}
<div className="max-w-3xl mx-auto text-center pb-12 md:pb-16">
<h1 className="h2 mb-4">Sobre o projeto</h1>
Expand Down
13 changes: 4 additions & 9 deletions components/ui/header.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import Link from 'next/link'
import MobileMenu from './mobile-menu'
import Image from 'next/image'
import ERC55Logo from '@/public/images/erc55.png'

export default function Header() {
return (
Expand All @@ -9,14 +10,8 @@ export default function Header() {
{/* Site branding */}
<div className="shrink-0 mr-4">
{/* Logo */}
<Link href="/" className="block" aria-label="Cruip">
<svg
className="w-8 h-8 fill-current text-purple-600"
viewBox="0 0 32 32"
xmlns="http://www.w3.org/2000/svg"
>
<path d="M31.952 14.751a260.51 260.51 0 00-4.359-4.407C23.932 6.734 20.16 3.182 16.171 0c1.634.017 3.21.28 4.692.751 3.487 3.114 6.846 6.398 10.163 9.737.493 1.346.811 2.776.926 4.262zm-1.388 7.883c-2.496-2.597-5.051-5.12-7.737-7.471-3.706-3.246-10.693-9.81-15.736-7.418-4.552 2.158-4.717 10.543-4.96 16.238A15.926 15.926 0 010 16C0 9.799 3.528 4.421 8.686 1.766c1.82.593 3.593 1.675 5.038 2.587 6.569 4.14 12.29 9.71 17.792 15.57-.237.94-.557 1.846-.952 2.711zm-4.505 5.81a56.161 56.161 0 00-1.007-.823c-2.574-2.054-6.087-4.805-9.394-4.044-3.022.695-4.264 4.267-4.97 7.52a15.945 15.945 0 01-3.665-1.85c.366-3.242.89-6.675 2.405-9.364 2.315-4.107 6.287-3.072 9.613-1.132 3.36 1.96 6.417 4.572 9.313 7.417a16.097 16.097 0 01-2.295 2.275z" />
</svg>
<Link href="/" className="block" aria-label="ERC55">
<Image src={ERC55Logo} alt="ERC55 Logo" width="64" />
</Link>
</div>
</div>
Expand Down

0 comments on commit 3f999a3

Please sign in to comment.