mirror of
https://github.com/BorysLevytskyi/BitwiseCmd.git
synced 2026-01-23 04:04:11 +01:00
Replace custom icons with font awesome
This commit is contained in:
Binary file not shown.
|
Before Width: | Height: | Size: 1.1 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 1.1 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 470 B |
Binary file not shown.
|
Before Width: | Height: | Size: 605 B |
Binary file not shown.
|
Before Width: | Height: | Size: 1.1 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 1.1 KiB |
@@ -6,11 +6,6 @@ code { font-size: 1.2em; font-weight: bold; }
|
||||
|
||||
.header-cmd { color: #c5c5c5 }
|
||||
|
||||
.top-links { position: absolute; right: 10px; top: 10px; list-style-type: none; margin: 0 }
|
||||
.top-links li { float: left; }
|
||||
.top-links a { display: inline-block; padding: 10px 15px}
|
||||
.top-links .icon { margin-right: 5px; }
|
||||
|
||||
.mono { font-family: monospace; font-size: 1.3em }
|
||||
.expressionInput { width: 500px; padding: 3px; border: solid 1px lightgray; }
|
||||
|
||||
@@ -51,19 +46,6 @@ code { font-size: 1.2em; font-weight: bold; }
|
||||
|
||||
.cur { color: lightgray; }
|
||||
|
||||
.icon { width: 16px; height: 16px; display: inline-block; }
|
||||
.light .twitter { background: url('./img/twitter-light.png') }
|
||||
.dark .twitter { background: url('./img/twitter-dark.png') }
|
||||
.midnight .twitter { background: url('./img/twitter-dark.png') }
|
||||
|
||||
.light .feedback { background: url('./img/feedback-light.png') }
|
||||
.dark .feedback { background: url('./img/feedback-dark.png') }
|
||||
.midnight .feedback { background: url('./img/feedback-dark.png') }
|
||||
|
||||
.light .github { background: url('./img/github-light.png') }
|
||||
.dark .github { background: url('./img/github-dark.png') }
|
||||
.midnight .github { background: url('./img/github-dark.png') }
|
||||
|
||||
/* Light */
|
||||
.light { background: #fafafa; }
|
||||
.light a, .light a:visited { color: #222; }
|
||||
|
||||
@@ -6,6 +6,8 @@ import cmd from '../cmd';
|
||||
import log from 'loglevel';
|
||||
import Indicators from './Indicators';
|
||||
import hash from '../../core/hash';
|
||||
import TopLinks from './TopLinks';
|
||||
|
||||
|
||||
type AppRootProps = {
|
||||
appState: AppState,
|
||||
@@ -51,17 +53,7 @@ export default class AppRoot extends React.Component<AppRootProps, AppRootState>
|
||||
<div className="header">
|
||||
<h1>Bitwise<span className="header-cmd">Cmd</span>
|
||||
</h1>
|
||||
<ul className="top-links">
|
||||
<li>
|
||||
<a href="https://github.com/BorisLevitskiy/BitwiseCmd"><i className="icon github"> </i><span className="link-text">Project on GitHub</span></a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="https://twitter.com/BitwiseCmd"><i className="icon twitter"> </i><span className="link-text">Twitter</span></a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="mailto:bitwisecmd@gmail.com?subject=Feedback"><i className="icon feedback"> </i><span className="link-text">Send Feedback</span></a>
|
||||
</li>
|
||||
</ul>
|
||||
<TopLinks />
|
||||
</div>
|
||||
|
||||
<div className="expressionInput-container">
|
||||
|
||||
5
src/shell/components/TopLinks.css
Normal file
5
src/shell/components/TopLinks.css
Normal file
@@ -0,0 +1,5 @@
|
||||
|
||||
.top-links { position: absolute; right: 10px; top: 10px; list-style-type: none; margin: 0 }
|
||||
.top-links li { float: left; }
|
||||
.top-links a { display: inline-block; padding: 10px 15px}
|
||||
.top-links .icon { margin-right: 5px; vertical-align: middle; }
|
||||
21
src/shell/components/TopLinks.tsx
Normal file
21
src/shell/components/TopLinks.tsx
Normal file
@@ -0,0 +1,21 @@
|
||||
import React from 'react';
|
||||
import {FontAwesomeIcon} from '@fortawesome/react-fontawesome';
|
||||
import { faEnvelope } from "@fortawesome/free-solid-svg-icons";
|
||||
import { faTwitter, faGithub} from "@fortawesome/free-brands-svg-icons";
|
||||
import './TopLinks.css';
|
||||
|
||||
function TopLinks() {
|
||||
return <ul className="top-links">
|
||||
<li>
|
||||
<a href="https://github.com/BorisLevitskiy/BitwiseCmd"><FontAwesomeIcon className="icon" icon={faGithub} size="lg" />Project on GitHub</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="https://twitter.com/BitwiseCmd"><FontAwesomeIcon className="icon" icon={faTwitter} size="lg" /><span className="link-text">Twitter</span></a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="mailto:bitwisecmd@gmail.com?subject=Feedback"><FontAwesomeIcon className="icon" icon={faEnvelope} size="lg" /><span className="link-text">Send Feedback</span></a>
|
||||
</li>
|
||||
</ul>;
|
||||
}
|
||||
|
||||
export default TopLinks;
|
||||
Reference in New Issue
Block a user