Skip to content

Commit 800e118

Browse files
committed
'updated links back to localhost and fixed nav'
Co-authored-by: kim <[email protected]> Co-authored-by: FredAires <[email protected]> Co-authored-by: ianmannn <[email protected]>
1 parent 0aa525a commit 800e118

File tree

16 files changed

+81
-69
lines changed

16 files changed

+81
-69
lines changed

public/Transparent Logo White.png

-65.8 KB
Binary file not shown.

public/transparent-gif-v2-_1_.svg

Lines changed: 13 additions & 0 deletions
Loading

src/app/Transparent Logo White.png

-65.8 KB
Binary file not shown.

src/app/dashboard/components/APIkey.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ function APIKey({ username }) {
99
const [ api, setApi ] = useState('');
1010

1111
useEffect(() => {
12-
fetch(`https://nextlevel-dash.com/onboarding/api?username=${username}`)
12+
fetch(`http://localhost:3000/onboarding/api?username=${username}`)
1313
.then((res) => {
1414
if (res.ok) {
1515
console.log('res:', res);

src/app/dashboard/components/sidebar.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ function SideBar(props) {
99
return (
1010
<div className={styles.sidebar}>
1111
<div className={styles.sidebarTop}>
12-
<Link href="/dashboard/onboarding">
12+
<Link href={`/onboarding?username=${username}`}>
1313
<ul className={styles.sidebarTop}>
1414
<Link className={styles.link} href={`/onboarding?username=${username}`}>
1515
<li className={styles.sidebarListItems}>Onboarding</li>

src/app/dashboard/hooks/useBuildTimeData.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ import React, { useEffect, useState } from 'react';
55
const useBuildTimeData = async (username) => {
66
console.log('entering use effect useBuildTimeData for:', username);
77
try {
8-
const res = await fetch(`https://nextlevel-dash.com/dashboard/api/build?username=${username}`);
8+
// const res = await fetch(`https://nextlevel-dash.com/dashboard/api/build?username=${username}`);
9+
const res = await fetch(`http://localhost:3000/dashboard/api/build?username=${username}`);
910
if (res.ok) {
1011
console.log('Res from useBuildTimeData:', res);
1112
const data = await res.json();

src/app/dashboard/hooks/useBundleData.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ import React, { useEffect, useState } from 'react';
55
const useBundleData = async (username) => {
66
console.log('entering use effect usebundledata for:', username);
77
try {
8-
const res = await fetch(`https://nextlevel-dash.com/dashboard/api/bundle?username=${username}`);
8+
// const res = await fetch(`https://nextlevel-dash.com/dashboard/api/bundle?username=${username}`);
9+
const res = await fetch(`http://localhost:3000/dashboard/api/bundle?username=${username}`);
910
if (res.ok) {
1011
console.log('res from useBundleData:', res);
1112
const data = await res.json();

src/app/dashboard/hooks/useWebVitalsData.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22

33
async function fetchWebVitals (username, metricType) {
44
try {
5-
const res = await fetch(`https://nextlevel-dash.com/dashboard/api/webvitals?username=${username}&metricType=${metricType}`);
5+
// const res = await fetch(`https://nextlevel-dash.com/dashboard/api/webvitals?username=${username}&metricType=${metricType}`);
6+
const res = await fetch(`http://localhost:3000/dashboard/api/webvitals?username=${username}&metricType=${metricType}`);
67
if (res.ok) {
78
console.log('Res from useWebVitalsData:', res);
89
const resData = await res.json();

src/app/home.css

Lines changed: 16 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -10,27 +10,27 @@ body {
1010
}
1111

1212
.navbar-gap {
13-
width: 100%;
14-
height: 50px;
13+
width: 100%;
14+
height: 50px;
1515
}
1616

17-
.home-logo{
17+
.home-logo {
1818
width: 900px;
1919
margin-top: 130px;
2020
}
2121

22-
h2{
22+
h2 {
2323
margin-top: -30px;
2424
}
2525

2626
section {
27-
display: grid;
28-
place-items: center;
29-
align-content: center;
30-
min-height: 110vh;
31-
font-size: 50px;
32-
padding-left: 20px;
33-
padding-right: 20px;
27+
display: grid;
28+
place-items: center;
29+
align-content: center;
30+
min-height: 110vh;
31+
font-size: 50px;
32+
padding-left: 20px;
33+
padding-right: 20px;
3434
}
3535

3636
.buttonsDiv {
@@ -44,7 +44,7 @@ section {
4444
text-decoration: none;
4545
}
4646

47-
.or{
47+
.or {
4848
margin-top: 15px;
4949
}
5050

@@ -53,48 +53,15 @@ section {
5353
text-decoration: none;
5454
}
5555

56-
/* Container for the GIF and static logo */
5756
.gif-container {
5857
position: relative;
5958
display: inline-block;
6059
}
6160

62-
/* GIF styling */
63-
.gif {
61+
.gif, .static-logo {
6462
width: 100%; /* Adjust as necessary */
6563
height: auto; /* Adjust as necessary */
66-
animation: play-gif 5s forwards; /* Adjust 5s to the duration of your GIF */
67-
}
68-
69-
/* Static logo styling */
70-
.static-logo {
71-
position: absolute;
72-
top: 0;
73-
left: 0;
74-
width: 100%; /* Adjust as necessary */
75-
height: auto; /* Adjust as necessary */
76-
opacity: 0; /* Initially hidden */
77-
animation: show-logo 5s forwards; /* Adjust 5s to the duration of your GIF */
78-
}
79-
80-
/* Keyframe animation to hide GIF */
81-
@keyframes play-gif {
82-
0% {
83-
opacity: 1;
84-
}
85-
100% {
86-
opacity: 0;
87-
}
88-
}
89-
90-
/* Keyframe animation to show static logo */
91-
@keyframes show-logo {
92-
0% {
93-
opacity: 0;
94-
}
95-
100% {
96-
opacity: 1;
97-
}
64+
display: block;
9865
}
9966

10067
.hidden-fade {
@@ -124,7 +91,7 @@ section {
12491
min-height: 80vh !important;
12592
}
12693

127-
@media(prefers-reduced-motion) {
94+
@media (prefers-reduced-motion) {
12895
.hidden {
12996
transition: none;
13097
}
@@ -137,3 +104,4 @@ section {
137104
}
138105

139106

107+

src/app/login/login.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ body-login {
99
font-family: 'Poppins', sans-serif;
1010
display: flex;
1111
justify-content: center;
12-
align-items: center;
12+
align-items: center;
1313
min-height: 100vh;
1414
background: no-repeat;
1515
background-size: cover;

0 commit comments

Comments
 (0)