Add branding now that I have a name and fix styles
This commit is contained in:
@@ -12,15 +12,15 @@ export default class Home extends React.Component {
|
||||
<div className="twelve columns">
|
||||
<h4>Usage</h4>
|
||||
<p>
|
||||
Notify is a Bash function / alias that will send a notification to a tab in your browser when it's ran:
|
||||
Notica is a Bash function / alias that will send a notification to a tab in your browser when it's ran:
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<div className="row">
|
||||
<div className="five columns">
|
||||
<p><code>$ make all; notify Code is done compiling!</code></p>
|
||||
<div className="six columns">
|
||||
<p><code>$ make all; notica Code is done compiling!</code></p>
|
||||
<p>
|
||||
This will wait until the first command completes before running Notify. That way you can go do other things while your long task runs.
|
||||
This will wait until the first command completes before running Notica. That way you can go do other things while your long task runs. Then you will recieve a notification.
|
||||
</p>
|
||||
</div>
|
||||
<div className="six columns">
|
||||
@@ -30,23 +30,23 @@ export default class Home extends React.Component {
|
||||
<div className="row">
|
||||
<div className="twelve columns">
|
||||
<h4>Setup</h4>
|
||||
<p>Curl is required to use Notify.</p>
|
||||
<p>Curl is required to use Notica.</p>
|
||||
<p>Add this line to your <code>.bashrc</code> file:</p>
|
||||
<p>
|
||||
<code>
|
||||
notify() { curl --data "$@" https://notify.com/{id} }
|
||||
notica() { curl --data "$@" https://notica.us/{id} }
|
||||
</code>
|
||||
</p>
|
||||
<p>Source your <code>.bashrc</code> file to apply the changes:</p>
|
||||
<p><code>$ source .bashrc</code></p>
|
||||
<p>Now, open this link in a new tab:</p>
|
||||
<p><a target="_blank" href={"https://notify.com/"+id}>https://notify.com/{id}</a></p>
|
||||
<p><a target="_blank" href={"https://notica.us/"+id}>https://notica.us/{id}</a></p>
|
||||
<p>All done! Bookmark that link so you can find it later since it's unique to you.</p>
|
||||
|
||||
<h4>One-Line Setup</h4>
|
||||
<p>
|
||||
<code>
|
||||
$ echo 'notify() { curl --data "$@" https://notify.com/{id} }' >> ~/.bashrc && source ~/.bashrc
|
||||
$ echo 'notica() { curl --data "$@" https://notica.us/{id} }' >> ~/.bashrc && source ~/.bashrc
|
||||
</code>
|
||||
</p>
|
||||
</div>
|
||||
|
@@ -4,6 +4,7 @@ import Home from './Home';
|
||||
import NotifPage from './NotifPage';
|
||||
import Error from './Error';
|
||||
import Shortid from 'shortid';
|
||||
import { Router, Route, Link } from 'react-router';
|
||||
|
||||
export default class Site extends React.Component {
|
||||
render(){
|
||||
@@ -24,10 +25,12 @@ export default class Site extends React.Component {
|
||||
<div>
|
||||
<div className="hero">
|
||||
<div className="title">
|
||||
<h1>Notify</h1>
|
||||
<Link to={'/'}>
|
||||
Notica
|
||||
</Link>
|
||||
</div>
|
||||
<div className="tagline">
|
||||
Send a browser notification from your terminal. No installation.
|
||||
Send a browser notification from your terminal. No installation. No registration.
|
||||
</div>
|
||||
</div>
|
||||
{page}
|
||||
|
Reference in New Issue
Block a user