Initial community commit
This commit is contained in:
25
Src/external_dependencies/openmpt-trunk/include/premake/website/src/components/Grid.js
vendored
Normal file
25
Src/external_dependencies/openmpt-trunk/include/premake/website/src/components/Grid.js
vendored
Normal file
@@ -0,0 +1,25 @@
|
||||
import React from 'react';
|
||||
|
||||
const Column = ({ children }) =>
|
||||
<div className="col">
|
||||
{children}
|
||||
</div>;
|
||||
|
||||
|
||||
const Container = ({ children, className }) =>
|
||||
<div className={`container ${className ?? ""}`}>
|
||||
{children}
|
||||
</div>;
|
||||
|
||||
|
||||
const Row = ({ children }) =>
|
||||
<div className="row">
|
||||
{children}
|
||||
</div>;
|
||||
|
||||
|
||||
export {
|
||||
Column,
|
||||
Container,
|
||||
Row
|
||||
};
|
||||
23
Src/external_dependencies/openmpt-trunk/include/premake/website/src/components/Sponsors.js
vendored
Normal file
23
Src/external_dependencies/openmpt-trunk/include/premake/website/src/components/Sponsors.js
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
import React from 'react';
|
||||
|
||||
|
||||
export default function Sponsors() {
|
||||
const containerRef = React.useRef();
|
||||
|
||||
React.useEffect(() => {
|
||||
const script = document.createElement('script');
|
||||
script.id = 'opencollective-script';
|
||||
script.src = 'https://opencollective.com/premake/banner.js';
|
||||
script.async = true;
|
||||
containerRef.current.appendChild(script);
|
||||
|
||||
return () => {
|
||||
// Short-circuit "load once" check in OpenCollective script
|
||||
window.OC = null;
|
||||
}
|
||||
}, [containerRef]);
|
||||
|
||||
return (
|
||||
<div ref={containerRef} />
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user