Skip to content

Commit

Permalink
modifs done asked 03-04
Browse files Browse the repository at this point in the history
  • Loading branch information
jb1011 committed Apr 3, 2024
1 parent 880afd9 commit 377869f
Show file tree
Hide file tree
Showing 15 changed files with 66 additions and 53 deletions.
Binary file modified frontend/assets/favicon.ico
Binary file not shown.
34 changes: 0 additions & 34 deletions frontend/assets/favicon.svg

This file was deleted.

2 changes: 1 addition & 1 deletion frontend/assets/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
color: #111;
}
</style>
<link rel="icon" type="image/png+xml" href="/favicon.svg" />
<link rel="icon" type="image/png+xml" href="/favicon.ico" />
<link
href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap"
rel="stylesheet"
Expand Down
Binary file modified frontend/public/favicon.ico
Binary file not shown.
2 changes: 1 addition & 1 deletion frontend/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ export default class App extends React.Component {

Ago.timeDiff = timeDiff;
//ICI
if (chains.length === 0) {
if (chains.length !== 0) {
return (
<div className="App App-no-telemetry">
<OfflineIndicator status={status} />
Expand Down
5 changes: 3 additions & 2 deletions frontend/src/components/Chain/Chain.css
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.
.Chain {
display: flex;
flex-direction: column;
height: 100%;
justify-content: space-between;
height: 120vh;
width: 100%;
}
/* //ICI */
Expand All @@ -28,7 +29,7 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.
bottom: 0;
left: 0;
right: 0;
top: 300px;
top: 350px;
display: flex;
justify-content: center;
align-items: center;
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/components/Chain/Chain.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ export class Chain extends React.Component<ChainProps, ChainState> {
<div className="Chain-content-container">
<div className="Chain-content">{this.renderContent()}</div>
</div>
{/* <Footer /> */}
<Footer />
</div>
);
}
Expand Down
19 changes: 17 additions & 2 deletions frontend/src/components/Chain/Footer.css
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,23 @@
gap: 10px;
}

@media (max-width: 900px) {
.col-footer {
width: 33%;
}
.img-footer {
width: 35px;
height: 35px;
}
.icons-row-footer {
flex-wrap: wrap;
}
}

.text-footer {
margin: 0;
font-size: 14px;
cursor: pointer;
}

.icons-row-footer {
Expand All @@ -34,7 +48,8 @@
}

.icon-footer {
width: 35px;
height: 35px;
width: 25px;
height: 25px;
color: #666;
cursor: pointer;
}
31 changes: 26 additions & 5 deletions frontend/src/components/Chain/Footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,36 @@ export class Footer extends React.Component {
</div>
<div className="col-footer">
<p className="text-bold text-footer">Products</p>
<p className="text-footer">Starkcet</p>
<p className="text-footer">Starknode</p>
<p
className="text-footer"
onClick={() => window.open('https://starkcet.com/')}
>
Starkcet
</p>
<p
className="text-footer"
onClick={() => window.open('https://kasar.io/')}
>
Starknode
</p>
</div>
<div className="col-footer">
<p className="text-bold text-footer">Contact us</p>
<div className="icons-row-footer">
<FaTwitter className="icon-footer" />
<FaTelegram className="icon-footer" />
<FaGithub className="icon-footer" />
<FaTwitter
onClick={() => window.open('https://twitter.com/kasarLabs')}
className="icon-footer"
/>
<FaTelegram
onClick={() =>
window.open('https://web.telegram.org/k/#@kasarlabs')
}
className="icon-footer"
/>
<FaGithub
onClick={() => window.open('https://github.com/KasarLabs')}
className="icon-footer"
/>
</div>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/components/Chain/Header.css
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
display: flex;
justify-content: center;
align-items: center;
padding-top: 20px;
padding-top: 50px;
padding-bottom: 20px;
gap: 20px;
}
Expand Down
12 changes: 11 additions & 1 deletion frontend/src/components/Chain/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,17 @@ export class Header extends React.Component<
<div className="Column-image">
<p className="text-bold gradient-text">Starknet</p>
<p className="text-gray text-sm">v0.13.1 (JSON-RPC v0.7.1)</p>
<p className="text-gray text-sm">Starknet Mainnet</p>
<p
onClick={() =>
window.open(
'https://docs.starknet.io/documentation/starknet_versions/version_notes/'
)
}
style={{ cursor: 'pointer' }}
className="text-gray text-sm"
>
Mainnet
</p>
</div>
</div>
<div className="Row-icons">
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/components/List/THead.css
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.
*/

.THead {
background: #e6936e;
background: #0c0c4f;
width: 100%;
color: #fff;
}
Expand All @@ -35,7 +35,7 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.

.THeadCell-sorted {
cursor: pointer;
background: #e6936e;
background: #0c0c4f;
color: #fff;
}

Expand Down
2 changes: 1 addition & 1 deletion frontend/src/components/OfflineIndicator.css
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.
bottom: 30px;
right: 30px;
z-index: 10;
background: #e6936e;
background: #0c0c4f;
line-height: 16px;
color: #fff;
font-size: 30px;
Expand Down
Loading

0 comments on commit 377869f

Please sign in to comment.