Skip to content

Commit

Permalink
update style
Browse files Browse the repository at this point in the history
  • Loading branch information
TsumikiQAQ committed Feb 1, 2024
1 parent 9a48dbc commit 6f361a3
Show file tree
Hide file tree
Showing 8 changed files with 94 additions and 35 deletions.
2 changes: 1 addition & 1 deletion src/lib/components/leftnav.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ const RepositoryList = (refresh,prefix, after) => {
pathname: `/repositories/:user/:repoId/objects`,
params: {repoId: repo.name,user},
}}>
<img src="/pub/jiaozifs3.png" alt="" /><span>{user+'/'}{repo.name}</span>
<span><img src="/jiaozifs3.png" alt="" />{user+'/'}{repo.name}</span>
</Link>
</Col>
</Row>
Expand Down
9 changes: 5 additions & 4 deletions src/lib/components/loading/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,13 @@ const Loadingpage = () =>{
return (
<>
<div className="welcome">
<img src="/pub/jiaozifs.png"/>
<h1>Welecome to Jiazozi FS Cloud</h1>
<h2><code>For data security, please be patient and wait for the environment check to complete.</code></h2>
<img src="/jiaozifs.png"/>
<h1>Welcome to JiaoziFS Cloud</h1>
<code>Get started with a fully functional playground environment and start data versioning at scale today!</code><br/>
<code>No deployment, installing, maintaining and scaling overhead.</code>
</div>
<div className="Progress">
{ver?<strong className="version">version:{ver.api_version}</strong>:<strong className="version">It's getting version from server now</strong>}
{ver?<span className="version">version: {ver.latest_version}</span>:<span className="version">It's getting version from server now</span>}
<ProgressBar animated now={loading} />
</div>
</>
Expand Down
11 changes: 1 addition & 10 deletions src/lib/components/navbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -74,17 +74,8 @@ const TopNav = ({logged = true}) => {
<Container fluid={true}>
<Link component={Navbar.Brand} href="/">
<img src="/jiaozifs3.png" alt="JiaoziFS" className="logo"/>
<TopNavLink href="/repositories"><strong>JiaoziFS Cloud</strong></TopNavLink>
</Link>

<Navbar.Toggle aria-controls="navbarScroll" />
<Navbar.Collapse id="navbarScroll">

<Nav className="me-auto my-2 my-lg-0"
style={{ maxHeight: '100px' }}
navbarScroll>
<TopNavLink href="/repositories">JiaoziFS Cloud</TopNavLink>
</Nav>
</Navbar.Collapse>
</Container>
</Navbar>
);
Expand Down
1 change: 1 addition & 0 deletions src/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ export const IndexPage = () => {
<Route path="/" element={<Navigate to="/repositories"/>} />
<Route path="/repositories/*" element={<Repositories/>} />
<Route path="/login/*" element={<Login/>} />
<Route path="/loading/*" element={<Loadingpage/>} />
<Route path="/register/*" element={<Register/>} />
<Route path="*" element={<Navigate to="/repositories" replace />} />
</Routes>
Expand Down
5 changes: 3 additions & 2 deletions src/pages/repositories/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,8 @@ useEffect(()=>{
<Layout>
<Container fluid="xl" className="mt-3">
{<ActionsBar>
<Form style={{minWidth: 300}} onSubmit={e => { e.preventDefault(); }}>
<h2><strong>Repositories Lists</strong></h2>
{/* <Form style={{minWidth: 300}} onSubmit={e => { e.preventDefault(); }}>
<Form.Group>
<Col>
<InputGroup>
Expand All @@ -82,7 +83,7 @@ useEffect(()=>{
</InputGroup>
</Col>
</Form.Group>
</Form>
</Form> */}
<ButtonToolbar className="ms-auto mb-2">
<CreateRepositoryButton variant={"success"} enabled={true} onClick={createRepositoryButtonCallback} />
</ButtonToolbar>
Expand Down
5 changes: 0 additions & 5 deletions src/styles/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,6 @@ html{
right: 0;
}

.main-app {
display: flex;
}


.navbar-brand {
padding: 0;
}
Expand Down
50 changes: 44 additions & 6 deletions src/styles/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,14 @@ a {
color: inherit;
text-decoration: none;
}
.main-app {
display: flex;
}
@media (max-width: 600px) {
.main-app {
display: grid;
}
}
.logo {
margin-left: 20px;
margin-right: -10px;
Expand Down Expand Up @@ -147,6 +155,14 @@ a {
margin-right: 10px;
background-color: #fff;
}
@media (max-width: 600px) {
.sidebar {
height: 60vh;
margin-left: 5rem;
width: 20rem;
border: 2px solid #dbe0fc;
}
}
.sidebar .navbar-expand {
justify-content: center;
}
Expand Down Expand Up @@ -178,6 +194,12 @@ a {
margin: 15px;
width: 100%;
}
@media (max-width: 600px) {
.child {
margin-left: 5rem;
border: 2px solid #dbe0fc;
}
}
.diif-remove span {
background-color: rgba(255, 0, 0, 0.2);
text-decoration: line-through;
Expand All @@ -192,27 +214,43 @@ a {
border-radius: 5px;
}
.welcome {
margin-top: 100px;
display: grid;
justify-content: center;
}
.welcome code {
color: #827a7e;
margin: auto ;
}
.welcome img {
width: 70px;
margin: 0 auto;
}
.welcome h1 {
margin: 0 auto;
font-size: 16px;
margin: 20px auto;
}
.Progress {
width: 50%;
position: absolute;
bottom: 2rem;
left: 25%;
width: 40%;
margin: 10rem auto;
}
.Progress .progress-bar {
background-color: #95a3a7;
}
.Progress .version {
display: block;
width: 102px;
width: 200px;
margin: 0 auto;
}
.topNav {
background-color: #f1f1f3;
border-bottom: 2px solid #dbe0fc;
}
.topNav .navbar-brand {
display: flex;
}
.topNav .navbar-brand .nav-link {
line-height: 30px;
margin-left: 1rem;
font-size: 16px;
}
46 changes: 39 additions & 7 deletions src/styles/index.less
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,13 @@ a {
color: inherit;
text-decoration: none;
}

.main-app {
display: flex;
@media (max-width: 600px) {
display: grid;
}
}
.logo{
margin-left: 20px;
margin-right: -10px;
Expand Down Expand Up @@ -150,6 +157,12 @@ a {
border-right: 2px solid rgb(219, 224, 252);
margin-right: 10px;
background-color: #fff;
@media (max-width: 600px) {
height: 60vh;
margin-left: 5rem;
width: 20rem;
border: 2px solid rgb(219, 224, 252);
}
.navbar-expand {
justify-content: center;
}
Expand Down Expand Up @@ -183,6 +196,10 @@ a {
.child{
margin: 15px;
width: 100%;
@media (max-width: 600px) {
margin-left: 5rem;
border: 2px solid rgb(219, 224, 252);
}
}

.diif-remove{
Expand All @@ -203,28 +220,43 @@ a {
border-radius: 5px;
}
.welcome{

margin-top: 100px;
display: grid;
justify-content: center;
code{
color: #827a7e;
margin: auto ;
}
img{
width: 70px;
margin: 0 auto;
}
h1{
margin: 0 auto;
font-size: 16px;
margin: 20px auto;
}
}
.Progress{
width: 50%;
position: absolute;
bottom: 2rem;
left: 25%;
width: 40%;
margin:10rem auto;
.progress-bar{
background-color: #95a3a7;
}
.version{
display: block;
width: 102px;
width: 200px;
margin: 0 auto;
}
}
.topNav{
background-color: #f1f1f3;
border-bottom: 2px solid rgb(219, 224, 252);
.navbar-brand{
display: flex;
.nav-link{
line-height: 30px;
margin-left: 1rem;
font-size: 16px;
}
}
}

0 comments on commit 6f361a3

Please sign in to comment.