Skip to content

Commit

Permalink
add home page link for Sui Explorer header (MystenLabs#1735)
Browse files Browse the repository at this point in the history
* add home page link for Sui Explorer header

lint changes

* remove space
  • Loading branch information
Stella Cannefax authored May 3, 2022
1 parent 5c44cd2 commit d8686eb
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
12 changes: 12 additions & 0 deletions explorer/client/src/app/App.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,18 @@ h2.suititle {
@apply m-0 p-0 ml-[5vw] py-[1vh] text-lg;
}

h2.suititle > a {
@apply text-offwhite;

text-decoration: none;
}

h2.suititle > a:hover {
@apply text-offwhite;

text-decoration: underline;
}

.search {
@apply bg-offblack text-offwhite pb-4 w-[100vw];
}
Expand Down
6 changes: 5 additions & 1 deletion explorer/client/src/app/App.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
// Copyright (c) 2022, Mysten Labs, Inc.
// SPDX-License-Identifier: Apache-2.0

import { Link } from 'react-router-dom';

import Footer from '../components/footer/Footer';
import Search from '../components/search/Search';
import AppRoutes from '../pages/config/AppRoutes';
Expand All @@ -11,7 +13,9 @@ function App() {
return (
<div className={styles.app}>
<div className={styles.search}>
<h2 className={styles.suititle}>SuiExplorer</h2>
<h2 className={styles.suititle}>
<Link to="/">SuiExplorer</Link>
</h2>
<Search />
</div>
<main>
Expand Down

0 comments on commit d8686eb

Please sign in to comment.