Skip to content

Commit

Permalink
Merge pull request #613 from pcwadarong/main
Browse files Browse the repository at this point in the history
NO COMMIT 페이지 UI 개선
  • Loading branch information
pcwadarong authored Aug 7, 2024
2 parents 76d1934 + 46ec56b commit 5a5a6e4
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 21 deletions.
16 changes: 0 additions & 16 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 12 additions & 1 deletion packages/view/src/App.scss
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,17 @@ body {
display: grid;
grid-template-columns: 4fr 1fr;
height: calc(100vh - 200px);

padding: 20px;
}

.no-commits-container{
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
height: calc(100vh - 350px);

h1 {
margin: 40px 0 0 0;
}
}
13 changes: 9 additions & 4 deletions packages/view/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { container } from "tsyringe";
import { useEffect, useRef } from "react";
import BounceLoader from "react-spinners/BounceLoader";

import MonoLogo from "assets/monoLogo.svg";
import { BranchSelector, Statistics, TemporalFilter, ThemeSelector, VerticalClusterList } from "components";
import "./App.scss";
import type IDEPort from "ide/IDEPort";
Expand Down Expand Up @@ -74,14 +75,18 @@ const App = () => {
<div className="top-container">
<TemporalFilter />
</div>
<div className="middle-container">
<div>
{filteredData.length !== 0 ? (
<>
<div className="middle-container">
<VerticalClusterList />
<Statistics />
</>
</div>
) : (
<div>NO COMMIT EXISTS</div>
<div className="no-commits-container">
<MonoLogo />
<h1>No Commits Found.</h1>
<p>Make at least one commit to proceed.</p>
</div>
)}
</div>
</>
Expand Down
10 changes: 10 additions & 0 deletions packages/view/src/assets/monoLogo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 5a5a6e4

Please sign in to comment.