mirror of
https://codeberg.org/demostf/frontend.git
synced 2026-06-03 18:24:12 +02:00
This commit is contained in:
parent
f80ae5b948
commit
bdc35d0907
16 changed files with 143 additions and 27 deletions
|
|
@ -29,12 +29,20 @@ export function MapRender(props: MapRenderProps) {
|
|||
const image = `${map_root}images/${mapAlias}.webp`;
|
||||
const background = `url(${image})`;
|
||||
|
||||
console.log(props.cart);
|
||||
|
||||
return (
|
||||
<svg class="map-background" width={props.size.width} height={props.size.height}
|
||||
style={{"background-image": background}}>
|
||||
<defs>
|
||||
<pattern id="diagonalHatchRed" patternUnits="userSpaceOnUse" width="8" height="8"
|
||||
patternTransform="rotate(45 0 0)">
|
||||
<line x1="0" y1="0" x2="0" y2="10" style="stroke:#a75d50; stroke-width:10"/>
|
||||
</pattern>
|
||||
<pattern id="diagonalHatchBlue" patternUnits="userSpaceOnUse" width="8" height="8"
|
||||
patternTransform="rotate(45 0 0)">
|
||||
<line x1="0" y1="0" x2="0" y2="10" style="stroke:#5b818f; stroke-width:8"/>
|
||||
</pattern>
|
||||
|
||||
|
||||
<filter id="sofGlowRed" height="300%" width="300%" x="-75%" y="-75%">
|
||||
<feMorphology operator="dilate" radius="4" in="SourceAlpha" result="thicken"/>
|
||||
<feGaussianBlur in="thicken" stdDeviation="5" result="blurred"/>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue