Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FEATURE: Get notified on corpus changes (see #501) && Get notified on changes related to a topic (#152) #549

Draft
wants to merge 1 commit into
base: v7
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions src/components/Header.jsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import React, { Component } from 'react';
import { Link } from 'react-router-dom';
import Authenticated from './Authenticated.jsx';
import Rss from './Rss.jsx';

class Header extends Component {

Expand All @@ -13,8 +14,13 @@ class Header extends Component {
render() {
return (
<header className="row align-items-center">
<div className="col-lg-2 d-none d-lg-block logo"></div>
<h1 className="col-lg-8"><Link to="/">{this.state.user}</Link></h1>
<div className="col-lg-4 d-none d-lg-block logo"></div>
<h1 className="col-lg-4">
<Link to="/">{this.state.user}</Link>
</h1>
<div className="col-lg-2">
<Rss/>
</div>
<div className="col-lg-2">
<Authenticated conf={this.props.conf} />
</div>
Expand Down
47 changes: 47 additions & 0 deletions src/components/Rss.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
import React, { Component } from 'react';
import { Trans } from '@lingui/macro';
import { Link } from 'react-router-dom';

const RssIcon = () => (
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlnsXlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 448 448" xmlSpace="preserve" >
<g>
<g>
<circle cx="64" cy="384" r="64" fill="#ffffff"/>
</g>
</g>
<g>
<g>
<path fill="#ffffff" d="M0,149.344v85.344c117.632,0,213.344,95.68,213.344,213.312h85.312C298.656,283.328,164.672,149.344,0,149.344z"/>
</g>
</g>
<g>
<g>
<path fill="#ffffff" d="M0,0v85.344C200,85.344,362.688,248,362.688,448H448C448,200.96,247.04,0,0,0z"/>
</g>
</g>
</svg>
);

class Rss extends Component {

constructor(props) {
super(props);
this.state = {rss: ''};
}

render() {
return (
<div className="rss-btn">
<Link to="/rss">
<div className="rss-icon">
<RssIcon/>
</div>
<Trans>Flux RSS</Trans>
</Link>
</div>
);
}

}

export default Rss;
Loading