mirror of
https://github.com/DI0IK/homepage-plus.git
synced 2025-07-08 06:38:46 +00:00
Refactored information widgets, improve widget-boxed style
Signed-off-by: Denis Papec <denis.papec@gmail.com>
This commit is contained in:
parent
c5b6dcc1e0
commit
cd5162e39c
37 changed files with 701 additions and 858 deletions
15
src/components/widgets/widget/resources.jsx
Normal file
15
src/components/widgets/widget/resources.jsx
Normal file
|
@ -0,0 +1,15 @@
|
|||
import ContainerLink from "./container_link";
|
||||
import SingleResource from "./single_resource";
|
||||
import Raw from "./raw";
|
||||
import WidgetLabel from "./widget_label";
|
||||
|
||||
export default function Resources({ options, children, target }) {
|
||||
return <ContainerLink options={options} target={target}>
|
||||
<Raw>
|
||||
<div className="flex flex-row self-center flex-wrap justify-between">
|
||||
{children.filter(child => child && child.type === SingleResource)}
|
||||
</div>
|
||||
{children.filter(child => child && child.type === WidgetLabel)}
|
||||
</Raw>
|
||||
</ContainerLink>;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue