Skip to content

Commit

Permalink
up
Browse files Browse the repository at this point in the history
  • Loading branch information
ogorei committed Mar 29, 2024
1 parent b8d9b22 commit 5edae47
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 21 deletions.
2 changes: 1 addition & 1 deletion public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
href="https://fonts.googleapis.com/icon?family=Material+Icons"
rel="stylesheet"
/>
<title>Auth0 React Sample</title>
<title>Login3.0 React Sample</title>
</head>
<body>
<noscript>You need to enable JavaScript to run this app.</noscript>
Expand Down
2 changes: 1 addition & 1 deletion src/auth0-provider-with-navigate.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export const Auth0ProviderWithNavigate = ({ children }) => {

const domain = process.env.REACT_APP_LOGIN30_DOMAIN;
const clientId = process.env.REACT_APP_LOGIN30_CLIENT_ID;
const redirectUri = process.env.REACT_APP_LOGIN30_CALLBACK_URL;
const redirectUri = window.location.origin;

const onRedirectCallback = (appState) => {
navigate(appState?.returnTo || window.location.pathname);
Expand Down
7 changes: 1 addition & 6 deletions src/components/navigation/mobile/mobile-nav-bar-tabs.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,7 @@ export const MobileNavBarTabs = ({ handleClick }) => {
<div className="mobile-nav-bar__tabs">
<MobileNavBarTab
path="/profile"
label="Profile"
handleClick={handleClick}
/>
<MobileNavBarTab
path="/public"
label="Public"
label="プロフィール"
handleClick={handleClick}
/>
{isAuthenticated && (
Expand Down
6 changes: 1 addition & 5 deletions src/pages/profile-page.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ export const ProfilePage = () => {
return null;
}

console.log(user);
return (
<PageLayout>
<div className="content-layout">
Expand All @@ -27,11 +28,6 @@ export const ProfilePage = () => {
</p>
<div className="profile-grid">
<div className="profile__header">
<img
src={user.picture}
alt="Profile"
className="profile__avatar"
/>
<div className="profile__headline">
<h2 className="profile__title">{user.name}</h2>
<span className="profile__description">{user.email}</span>
Expand Down
10 changes: 4 additions & 6 deletions src/styles/components/mobile-nav-bar.css
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@

z-index: 300;

background-color: var(--black);
}

.mobile-nav-bar {
Expand Down Expand Up @@ -57,7 +56,6 @@
position: fixed;
left: 0;
top: 6.4rem;
background-color: var(--black);

z-index: 300;
}
Expand Down Expand Up @@ -87,10 +85,10 @@
line-height: 16px;

padding: 3.2rem 2.4rem;
background-color: var(--black);
background-color: #425BA8;
color: var(--white);
width: 100%;
box-shadow: rgb(90 95 102) 0-1.5px 0 inset;
box-shadow: rgb(255, 255, 255) 0-1.5px 0 inset;
}

.mobile-nav-bar__tab:last-child {
Expand All @@ -100,7 +98,7 @@
.mobile-nav-bar__tab--active {
text-decoration-line: underline;
text-decoration-style: solid;
text-decoration-color: var(--indigo);
text-decoration-color: var(--white);

/* responsive */

Expand All @@ -120,7 +118,7 @@
display: flex;
justify-content: center;
padding: 3.2rem;
background-color: var(--black);
background-color: #425BA8;
}

@media only screen and (max-width: 640px) and (hover: none) {
Expand Down
2 changes: 1 addition & 1 deletion src/styles/components/nav-bar.css
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
box-shadow: rgb(90 95 102) 0-1.5px 0 inset;

z-index: 300;
background-color: #6879BA;
background-color: #425BA8;;
}

.nav-bar {
Expand Down
2 changes: 1 addition & 1 deletion src/styles/components/page-footer.css
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

margin-top: 2.4rem;

background-color: #6879BA;
background-color: #425BA8;

color: var(--light-aluminium);
font-weight: 500;
Expand Down

0 comments on commit 5edae47

Please sign in to comment.