Skip to content

Commit

Permalink
feat: Add ALPHA badge, close #52
Browse files Browse the repository at this point in the history
  • Loading branch information
annelhote committed Jan 18, 2024
1 parent 6415693 commit 701b2c5
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 0 deletions.
12 changes: 12 additions & 0 deletions client/src/components/beta/index.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
// https://frontendresource.com/css-badges/
import './index.scss';

export default function Beta() {
return (
<div className="wrapper">
<div className="badge">
ALPHA
</div>
</div>
);
}
22 changes: 22 additions & 0 deletions client/src/components/beta/index.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
.wrapper {
left: 10px;
position: relative;
top: -130px;
z-index: calc(var(--ground) + 600);
}

.badge {
background: #e1000f;
box-shadow: inset 0px 0px 0px 4px rgba(255, 255, 255, 0.34);
color: #FFF;
font-family: sans-serif;
font-size: 20px;
height: 50px;
left: -70px;
line-height: 50px;
position: relative;
text-align: center;
top: -2px;
transform: rotate(-45deg);
width: 200px;
}
2 changes: 2 additions & 0 deletions client/src/pages/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import useWebSocket from 'react-use-websocket';
import Actions from './actions';
import AffiliationsTab from './affiliationsTab';
import StepProgress from '../components/step-progress';
import Beta from '../components/beta';
import DatasetsTab from './datasetsTab';
import Filters from './filters';
import PublicationsTab from './publicationsTab';
Expand Down Expand Up @@ -140,6 +141,7 @@ export default function Home() {

return (
<>
<Beta />
<Container className="fr-my-5w" as="section" fluid>
<Row className="fr-px-5w">
<Col>
Expand Down

0 comments on commit 701b2c5

Please sign in to comment.