Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Solving unnoticed problems. #44

Open
wants to merge 7 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .env
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
NEXT_PUBLIC_SUPABASE_URL=
NEXT_PUBLIC_SUPABASE_API_KEY=
NEXT_EMAIL_USERNAME=
NEXT_EMAIL_PASSWORD=
NEXT_PUBLIC_SUPABASE_URL=https://dkkajpdyhtsfmddladxc.supabase.co/
NEXT_PUBLIC_SUPABASE_API_KEY=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6ImRra2FqcGR5aHRzZm1kZGxhZHhjIiwicm9sZSI6ImFub24iLCJpYXQiOjE2OTMzMDY2MTQsImV4cCI6MjAwODg4MjYxNH0.IxSHetosdyB38Y50vX98opyUf0isM_5-1hmsFc2l0UQ
NEXT_EMAIL_USERNAME=[email protected]
NEXT_EMAIL_PASSWORD=xtjabyzxpazmnaic
45 changes: 11 additions & 34 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,39 +1,16 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
# Dependencies
node_modules

# dependencies
/node_modules
/.pnp
.pnp.js
# Dist
dist
.next

# testing
/coverage

# next.js
/.next/
/out/

# production
/build

# misc
# OS
.DS_Store
*.pem

# debug
npm-debug.log*
yarn-debug.log*
yarn-error.log*
.pnpm-debug.log*

# local env files
.env
.env*.local

# vercel
.vercel

# typescript
*.tsbuildinfo
next-env.d.ts
# Development Environment
.vscode

/.idea
# Logs
*.log
.env
5 changes: 5 additions & 0 deletions next-env.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
/// <reference types="next" />
/// <reference types="next/image-types/global" />

// NOTE: This file should not be edited
// see https://nextjs.org/docs/basic-features/typescript for more information.
File renamed without changes.
4 changes: 2 additions & 2 deletions src/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ export default function RootLayout({
return (
<html lang={lang}>
<head>
<link rel='icon' href='/favicon.ico'/>
<link rel='icon' href='/favicon.ico' />
</head>
<body className='bg-home overflow-x-hidden'>
{ children }
{children}
</body>
</html>
)
Expand Down
22 changes: 12 additions & 10 deletions src/components/NavBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ const NavBar: React.FC = () => {
},
];


useEffect(() => {
document.querySelector("body")?.classList.remove("overflow-y-hidden");
window.addEventListener("scroll", () => {
Expand All @@ -39,19 +40,19 @@ const NavBar: React.FC = () => {

const handleLanguageChange = (event: any) => {
const selectedLanguage = event.target.value;
router.push(`/pt?lang=${selectedLanguage}`);


router.push(`/${selectedLanguage}`);
};

return (
<header
className={`p-5 transition-colors duration-700 fixed z-50 right-0 left-0 top-0 ${
scrollY > 200 ? "text-black bg-white shadow" : "text-white"
}`}
className={`p-5 transition-colors duration-700 fixed z-50 right-0 left-0 top-0 ${scrollY > 200 ? "text-black bg-white shadow" : "text-white"
}`}
>
<div
className={`w-full bg-black/60 right-0 top-0 h-screen ${
isMenuOpen ? "absolute z-20 w-screen" : "hidden w-0"
}`}
className={`w-full bg-black/60 right-0 top-0 h-screen ${isMenuOpen ? "absolute z-20 w-screen" : "hidden w-0"
}`}
></div>

<div className="max-w-6xl mx-auto">
Expand All @@ -71,6 +72,7 @@ const NavBar: React.FC = () => {
<nav className="flex gap-5">
<ul className="flex items-center gap-5 text-sm">
{menuItems.map((menuItem) => {

return (
<li key={menuItem.href} className="w-max">
<Link
Expand All @@ -87,6 +89,7 @@ const NavBar: React.FC = () => {
<select
className={`bg-transparent outline-none text-sm rounded-lg block w-full p-2.5 `}
onChange={handleLanguageChange}
value={lang}
>
{languanges.map((languange) => {
return (
Expand Down Expand Up @@ -126,9 +129,8 @@ const NavBar: React.FC = () => {
/>

<div
className={`absolute z-30 flex text-base right-0 top-0 transition-transform duration-700 ${
isMenuOpen ? "translate-x-0" : "translate-x-full"
}`}
className={`absolute z-30 flex text-base right-0 top-0 transition-transform duration-700 ${isMenuOpen ? "translate-x-0" : "translate-x-full"
}`}
>
<div className="bg-white h-screen w-full max-w-xs min-w-[300px] p-8 text-black">
<div className="flex gap-3 justify-between items-center">
Expand Down