Skip to content

Commit

Permalink
feat: added impressum
Browse files Browse the repository at this point in the history
  • Loading branch information
larskaesberg committed Feb 19, 2025
1 parent ca69e49 commit 7af01c8
Show file tree
Hide file tree
Showing 4 changed files with 613 additions and 6 deletions.
3 changes: 2 additions & 1 deletion frontend/public/robots.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# https://www.robotstxt.org/robotstxt.html
User-agent: *
Disallow:
Disallow: /preprint
Disallow: /impressum
2 changes: 2 additions & 0 deletions frontend/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,15 @@ import React from 'react';
import {BrowserRouter as Router, Routes, Route} from 'react-router-dom';
import EnhancedPreprintGenerator from './EnhancedPreprintGenerator';
import PreprintViewer from './preprintViewer/PreprintViewer';
import Impressum from "./pages/Impressum";

const App = () => {
return (
<Router>
<Routes>
<Route path="/" element={<EnhancedPreprintGenerator/>}/>
<Route path="/preprint/:title" element={<PreprintViewer/>}/>
<Route path="/impressum" element={<Impressum/>}/>
</Routes>
</Router>
);
Expand Down
19 changes: 14 additions & 5 deletions frontend/src/EnhancedPreprintGenerator.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import {
CircularProgress
} from "@mui/material";
import {Card, CardContent, CardFooter, CardHeader, CardTitle} from "./components/ui/Card";
import {RefreshCw, Wifi, WifiOff} from "lucide-react";
import {InfoIcon, RefreshCw, Wifi, WifiOff} from "lucide-react";
import {Alert, AlertDescription} from "./components/ui/Alert";
import GitHubIcon from '@mui/icons-material/GitHub';
import ArticleIcon from "@mui/icons-material/Article";
Expand Down Expand Up @@ -227,7 +227,15 @@ class EnhancedPreprintGenerator extends Component<AppProps, AppState> {
</CardContent>
<CardFooter className="bg-gray-50 p-4 rounded-b-lg border-t border-gray-200">
<div className="w-full flex justify-between items-center text-sm text-gray-600">
<span>© 2024 GippLab</span>
<a
href="https://github.com/gipplab/preprint_generator"
target="_blank"
rel="noopener noreferrer"
className="flex items-center gap-2 hover:text-indigo-600 transition-colors"
>
<GitHubIcon/>
View on GitHub
</a>
<a
href="https://arxiv.org/abs/2407.03192"
target="_blank"
Expand All @@ -238,14 +246,15 @@ class EnhancedPreprintGenerator extends Component<AppProps, AppState> {
View on arXiv
</a>
<a
href="https://github.com/gipplab/preprint_generator"
href="/impressum"
target="_blank"
rel="noopener noreferrer"
className="flex items-center gap-2 hover:text-indigo-600 transition-colors"
>
<GitHubIcon/>
View on GitHub
<InfoIcon/>
Impressum
</a>

</div>
</CardFooter>
</Card>
Expand Down
Loading

0 comments on commit 7af01c8

Please sign in to comment.