Skip to content

Commit 9640cdc

Browse files
committed
added nodes
1 parent a50ae29 commit 9640cdc

File tree

19 files changed

+561
-28
lines changed

19 files changed

+561
-28
lines changed

.env

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
API_URL = ""
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
@import "@styles/colors.scss";
2+
3+
.container {
4+
border-radius: 0.5rem;
5+
background-color: $gray;
6+
color: #fff;
7+
padding: 1rem;
8+
9+
.handle {
10+
background-color: $white;
11+
height: 0.5rem;
12+
width: 0.5rem;
13+
border: 1px solid $gray;
14+
}
15+
}
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
import { Handle, Position } from "react-flow-renderer";
2+
import styles from "./GrayscaleNode.module.scss";
3+
4+
const GrayscaleNode = () => {
5+
return (
6+
<div className={styles.container}>
7+
<Handle
8+
type="target"
9+
position={Position.Left}
10+
className={styles.handle}
11+
/>
12+
<div>Grayscale</div>
13+
<Handle
14+
type="source"
15+
position={Position.Right}
16+
className={styles.handle}
17+
/>
18+
</div>
19+
);
20+
};
21+
22+
export default GrayscaleNode;
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
@import "@styles/colors.scss";
2+
3+
.container {
4+
border-radius: 0.5rem;
5+
background-color: $green;
6+
color: #fff;
7+
padding: 1rem;
8+
9+
.handle {
10+
background-color: $white;
11+
height: 0.5rem;
12+
width: 0.5rem;
13+
border: 1px solid $green;
14+
}
15+
}
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
import { Handle, Position } from "react-flow-renderer";
2+
import styles from "./ImageInputNode.module.scss";
3+
4+
const ImageInputNode = () => {
5+
return (
6+
<div className={styles.container}>
7+
Image
8+
<Handle
9+
type="source"
10+
position={Position.Right}
11+
className={styles.handle}
12+
/>
13+
</div>
14+
);
15+
};
16+
17+
export default ImageInputNode;

components/Navbar/Navbar.module.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
@import "../../styles/colors.scss";
2-
@import "../../styles/fonts.scss";
1+
@import "@styles/colors.scss";
32

43
.navbarContainer {
54
display: flex;
@@ -26,6 +25,7 @@
2625
.navbarItem {
2726
padding: 2rem 1.5rem;
2827
transition: all 0.35s;
28+
font-weight: 500;
2929
&:hover {
3030
color: $green;
3131
background-color: $white;

components/Navbar/Navbar.tsx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import styles from "./Navbar.module.scss";
2-
import logoWhite from "../../public/images/logo-white.svg";
2+
import logoWhite from "@public/images/logo-white.svg";
33
import Image from "next/image";
4+
import Link from "next/link";
45

56
const Navbar = () => {
67
return (
@@ -12,6 +13,11 @@ const Navbar = () => {
1213
</div>
1314
<div className={styles.navbarCenter}>imageflow</div>
1415
<div className={styles.navbarRight}>
16+
<Link href="/editor">
17+
<a>
18+
<div className={styles.navbarItem}>Try it out</div>
19+
</a>
20+
</Link>
1521
<div className={styles.navbarItem}>Sign In</div>
1622
<div className={styles.navbarItem}>Sign Up</div>
1723
</div>

hooks/data-access/useUser/useUser.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { useState } from "react";
2-
import useAuthToken from "../useAuthToken/useAuthToken";
2+
import useAuthToken from "@hooks/useAuthToken/useAuthToken";
33

44
const useUser = () => {
55
const [isLoading, setIsloading] = useState(true);
@@ -8,7 +8,7 @@ const useUser = () => {
88
const { authToken } = useAuthToken();
99

1010
const getUser = async () => {
11-
const URL = `${process.env.BACKEND_URL}/user`;
11+
const URL = `${process.env.API_URL}/user`;
1212
const body = {
1313
method: "GET",
1414
headers: {

0 commit comments

Comments
 (0)