-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
66e518f
commit 0e69c10
Showing
27 changed files
with
6,632 additions
and
1,220 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -1,3 +1,19 @@ | ||
{ | ||
"extends": "next/core-web-vitals" | ||
"extends": "next/core-web-vitals", | ||
"plugins": ["@typescript-eslint", "unused-imports"], | ||
"rules": { | ||
"no-unused-vars": "off", | ||
"@typescript-eslint/no-unused-vars": "off", | ||
"unused-imports/no-unused-imports": "error", | ||
"unused-imports/no-unused-vars": [ | ||
"warn", | ||
{ | ||
"vars": "all", | ||
"varsIgnorePattern": "^_", | ||
"args": "after-used", | ||
"argsIgnorePattern": "^_" | ||
} | ||
], | ||
"import/no-unused-modules": "off" | ||
} | ||
} |
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 |
---|---|---|
@@ -1,22 +1,38 @@ | ||
# dependencies | ||
# Dependencies | ||
/node_modules | ||
/.pnp | ||
.pnp.js | ||
|
||
|
||
# testing | ||
# Testing | ||
/coverage | ||
|
||
# next.js | ||
# Next.js | ||
/.next/ | ||
/out/ | ||
|
||
# production | ||
# Production | ||
/build | ||
/dist | ||
|
||
# misc | ||
# Misc | ||
.DS_Store | ||
*.pem | ||
.env* | ||
!.env.example | ||
|
||
# debug | ||
# Debug | ||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* | ||
|
||
# IDE | ||
.idea | ||
.vscode | ||
*.swp | ||
*.swo | ||
|
||
# TypeScript | ||
*.tsbuildinfo | ||
next-env.d.ts | ||
.tscache | ||
tsconfig.tsbuildinfo |
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 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 |
---|---|---|
@@ -1,16 +1,20 @@ | ||
import React from 'react'; | ||
import Head from 'next/head' | ||
import React from "react"; | ||
import Head from "next/head"; | ||
const MyHead = () => { | ||
return ( | ||
<Head> | ||
<title>Mustafa Berat ARU - Personal Website</title> | ||
<meta name="viewport" content="width=device-width, initial-scale=1" /> | ||
<link rel="icon" href="/m-blue.png" /> | ||
<meta name="theme-color" content="#03061c" /> | ||
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.8.1/css/all.css" | ||
integrity="sha384-50oBUHEmvpQ+1lW4y57PTFmhCaXp0ML5d60M1M7uH2+nqUivzIebhndOJK28anvf" crossOrigin="anonymous"></link> | ||
</Head> | ||
); | ||
} | ||
return ( | ||
<Head> | ||
<title>Mustafa Berat ARU - Personal Website</title> | ||
<meta name="viewport" content="width=device-width, initial-scale=1" /> | ||
<link rel="icon" href="/m-blue.png" /> | ||
<meta name="theme-color" content="#03061c" /> | ||
<link | ||
rel="stylesheet" | ||
href="https://use.fontawesome.com/releases/v5.8.1/css/all.css" | ||
integrity="sha384-50oBUHEmvpQ+1lW4y57PTFmhCaXp0ML5d60M1M7uH2+nqUivzIebhndOJK28anvf" | ||
crossOrigin="anonymous" | ||
></link> | ||
</Head> | ||
); | ||
}; | ||
|
||
export default MyHead | ||
export default MyHead; |
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 |
---|---|---|
@@ -1,5 +1,4 @@ | ||
import React from "react"; | ||
import Link from "next/link"; | ||
|
||
let letters = [ | ||
"a", | ||
|
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 |
---|---|---|
@@ -1,40 +1,42 @@ | ||
import React from 'react'; | ||
import React from "react"; | ||
class SidebarComp extends React.Component { | ||
constructor() { | ||
super(); | ||
this.state = { | ||
openStatues: false, | ||
} | ||
} | ||
constructor() { | ||
super(); | ||
this.state = { | ||
openStatues: false, | ||
}; | ||
} | ||
|
||
render() { | ||
return ( | ||
<nav className="sidebardiv"> | ||
<button className="sidebar-menu-btn" | ||
onClick={() => { | ||
let element = document.getElementById("header-buttons") | ||
let sidebaricon = document.getElementById("sidebariconid") | ||
if (!this.state.openStatues) { | ||
element.style.opacity = 1; | ||
element.style.transform = "translate(0)"; | ||
render() { | ||
return ( | ||
<nav className="sidebardiv"> | ||
<button | ||
className="sidebar-menu-btn" | ||
onClick={() => { | ||
let element = document.getElementById("header-buttons"); | ||
let sidebaricon = document.getElementById("sidebariconid"); | ||
if (!this.state.openStatues) { | ||
element.style.opacity = 1; | ||
element.style.transform = "translate(0)"; | ||
|
||
sidebaricon.classList.add("fa-times") | ||
sidebaricon.classList.remove("fa-bars") | ||
this.setState({ openStatues: true }) | ||
} else { | ||
element.style.transform = "translate(100%)"; | ||
element.style.opacity = 0; | ||
sidebaricon.classList.add("fa-times"); | ||
sidebaricon.classList.remove("fa-bars"); | ||
this.setState({ openStatues: true }); | ||
} else { | ||
element.style.transform = "translate(100%)"; | ||
element.style.opacity = 0; | ||
|
||
sidebaricon.classList.add("fa-bars") | ||
sidebaricon.classList.remove("fa-times") | ||
this.setState({ openStatues: false }) | ||
} | ||
}}> | ||
<i id="sidebariconid" className="fas fa-bars"></i> | ||
</button> | ||
</nav> | ||
); | ||
} | ||
sidebaricon.classList.add("fa-bars"); | ||
sidebaricon.classList.remove("fa-times"); | ||
this.setState({ openStatues: false }); | ||
} | ||
}} | ||
> | ||
<i id="sidebariconid" className="fas fa-bars"></i> | ||
</button> | ||
</nav> | ||
); | ||
} | ||
} | ||
|
||
export default SidebarComp; | ||
export default SidebarComp; |
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 |
---|---|---|
@@ -1,22 +1,21 @@ | ||
import React from 'react'; | ||
import Link from 'next/link' | ||
import Image from 'next/image' | ||
import React from "react"; | ||
import Image from "next/image"; | ||
|
||
function ThingsCard({ text, imageSource, path = '' }) { | ||
// export default function ThingsCard({ text, path = "/" }) { | ||
return ( | ||
<div className="thingsCard"> | ||
<a href={path}>{text}</a> | ||
<Image | ||
src={`${imageSource}`} | ||
alt={text} | ||
width={500} | ||
height={300} | ||
loading="lazy" | ||
style={{ objectFit: 'cover' }} | ||
/> | ||
</div> | ||
) | ||
function ThingsCard({ text, imageSource, path = "" }) { | ||
// export default function ThingsCard({ text, path = "/" }) { | ||
return ( | ||
<div className="thingsCard"> | ||
<a href={path}>{text}</a> | ||
<Image | ||
src={`${imageSource}`} | ||
alt={text} | ||
width={500} | ||
height={300} | ||
loading="lazy" | ||
style={{ objectFit: "cover" }} | ||
/> | ||
</div> | ||
); | ||
} | ||
|
||
export default ThingsCard; | ||
export default ThingsCard; |
Oops, something went wrong.