Skip to content

Instantly share code, notes, and snippets.

@oarthursilva
Created March 22, 2021 15:47
Show Gist options
  • Save oarthursilva/f3f6d75ba4d56cf32cb229a22bcb48f0 to your computer and use it in GitHub Desktop.
Save oarthursilva/f3f6d75ba4d56cf32cb229a22bcb48f0 to your computer and use it in GitHub Desktop.
SCN Workilist > Part 1
.App {
text-align: center;
}
.App-logo {
height: 40vmin;
pointer-events: none;
}
@media (prefers-reduced-motion: no-preference) {
.App-logo {
animation: App-logo-spin infinite 20s linear;
}
}
.App-header {
background-color: #282c34;
min-height: 100vh;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
font-size: calc(10px + 2vmin);
color: white;
}
ui5-link {
font-size: calc(10px + 2vmin);
}
.App-link {
color: #61dafb;
}
@keyframes App-logo-spin {
from {
transform: rotate(0deg);
}
to {
transform: rotate(360deg);
}
}
import React from 'react';
import { Avatar, ShellBar, Link } from '@ui5/webcomponents-react';
import logo from './logo.svg';
import './App.css';
export default function App() {
return (
<div className="App">
<ShellBar
primaryTitle="Worklist App"
notificationCount="99"
showNotifications={true}
showProductSwitch={true}
>
<Avatar slot="logo" image={logo} />
<Avatar slot="profile" image="https://github.com/afuscella.png" />
</ShellBar>
<header className="App-header">
<img src={logo} className="App-logo" alt="logo" />
<p>
Edit <code>src/App.tsx</code> and save to reload.
</p>
<Link
className="App-link"
href="https://reactjs.org"
target="_blank"
>
Learn React
</Link>
</header>
</div>
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment