link some things

This commit is contained in:
Matthias Kretschmann 2022-10-19 20:20:09 +01:00
parent 58b5afd592
commit ed155b0127
Signed by: m
GPG Key ID: 606EEEF3C479A91F
3 changed files with 62 additions and 1 deletions

1
src/images/github.svg Normal file
View File

@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-github"><path d="M9 19c-5 1.5-5-2.5-7-3m14 6v-3.87a3.37 3.37 0 0 0-.94-2.61c3.14-.35 6.44-1.54 6.44-7A5.44 5.44 0 0 0 20 4.77 5.07 5.07 0 0 0 19.91 1S18.73.65 16 2.48a13.38 13.38 0 0 0-7 0C6.27.65 5.09 1 5.09 1A5.07 5.07 0 0 0 5 4.77a5.44 5.44 0 0 0-1.5 3.78c0 5.42 3.3 6.61 6.44 7A3.37 3.37 0 0 0 9 18.13V22"></path></svg>

After

Width:  |  Height:  |  Size: 527 B

View File

@ -5,6 +5,7 @@ import styles from '../styles/Home.module.css'
import { getData } from '../utils/getData' import { getData } from '../utils/getData'
import LogoAsset from '../images/logo.svg' import LogoAsset from '../images/logo.svg'
import CheckAsset from '../images/check.svg' import CheckAsset from '../images/check.svg'
import GithubAsset from '../images/github.svg'
import addresses from '@oceanprotocol/contracts/addresses/address.json' import addresses from '@oceanprotocol/contracts/addresses/address.json'
import { statusApiUri } from '../../app.config' import { statusApiUri } from '../../app.config'
import relativeDate from 'tiny-relative-date' import relativeDate from 'tiny-relative-date'
@ -99,7 +100,15 @@ export default function HomePage(): ReactElement {
)}`} )}`}
> >
<h2 className={styles.titleComponent}> <h2 className={styles.titleComponent}>
{statusIcon(component.status)} {component.name} {statusIcon(component.status)}{' '}
<a
href=""
title="Go to tested endpoint"
target="_blank"
rel="noreferrer"
>
{component.name}
</a>
<code className={styles.version} title="deployed version"> <code className={styles.version} title="deployed version">
{component.version} {component.version}
</code> </code>
@ -116,6 +125,21 @@ export default function HomePage(): ReactElement {
)} )}
</ul> </ul>
) : null} ) : null}
<footer className={styles.links}>
{component.name !== 'data-farming' &&
component.name !== 'cexa' && (
<a
href={`https://github.com/oceanprotocol/${
component.name === 'subgraph' ? 'ocean-' : ''
}${component.name}`}
target="_blank"
rel="noreferrer"
title="Go to GitHub repository"
>
<GithubAsset className={styles.icon} />
</a>
)}
</footer>
</div> </div>
))} ))}
</div> </div>

View File

@ -59,11 +59,45 @@
border-radius: var(--border-radius); border-radius: var(--border-radius);
box-shadow: 0 6px 17px 0 var(--box-shadow-color); box-shadow: 0 6px 17px 0 var(--box-shadow-color);
border: 1px solid var(--border-color); border: 1px solid var(--border-color);
display: flex;
flex-wrap: wrap;
} }
.titleComponent { .titleComponent {
font-size: var(--font-size-large); font-size: var(--font-size-large);
margin: 0; margin: 0;
width: 100%;
}
.titleComponent a {
color: inherit;
}
.titleComponent a:hover,
.titleComponent a:focus {
color: var(--color-primary);
}
.links {
width: calc(100% + 1rem);
margin-top: calc(var(--spacer) / 2);
font-size: var(--font-size-small);
text-align: right;
margin-bottom: -1.2rem;
margin-right: -1rem;
align-self: flex-end;
}
.links svg {
display: inline-block;
stroke: var(--color-secondary);
width: 1.2em;
height: 1.2em;
}
.links a:hover svg,
.links a:focus svg {
stroke: var(--color-primary);
} }
.warning { .warning {
@ -97,6 +131,7 @@
} }
.messages { .messages {
width: 100%;
list-style-type: square; list-style-type: square;
margin-left: 1rem; margin-left: 1rem;
margin-top: calc(var(--spacer) / 4); margin-top: calc(var(--spacer) / 4);
@ -130,6 +165,7 @@
.contracts .titleComponent { .contracts .titleComponent {
display: inline-block; display: inline-block;
width: auto;
} }
.loading { .loading {