diff --git a/assets/fish-background.svg b/assets/fish-background.svg index 68c3701..ea94376 100644 --- a/assets/fish-background.svg +++ b/assets/fish-background.svg @@ -1,4 +1,4 @@ \ No newline at end of file diff --git a/src/scale-section/style.scss b/src/scale-section/style.scss index 509e5ab..a0272f9 100644 --- a/src/scale-section/style.scss +++ b/src/scale-section/style.scss @@ -9,7 +9,7 @@ border: none; .wp-scale-section-content { - background-color: white; + background-color: #fff; text-align: center; h2 { diff --git a/src/weather/block.json b/src/weather/block.json index 9603d2a..e923c27 100644 --- a/src/weather/block.json +++ b/src/weather/block.json @@ -12,13 +12,9 @@ }, "textdomain": "spearfishing-stuff", "attributes": { - "content": { + "time": { "type": "string", - "default": "Heading" - }, - "height": { - "type": "number", - "default": 300 + "default": "current" } }, "editorScript": "file:./index.js", diff --git a/src/weather/edit.tsx b/src/weather/edit.tsx index 2044e99..afeff1c 100644 --- a/src/weather/edit.tsx +++ b/src/weather/edit.tsx @@ -1,20 +1,30 @@ import { useBlockProps, InspectorControls } from "@wordpress/block-editor"; import ServerSideRender from "@wordpress/server-side-render"; -import { PanelBody } from "@wordpress/components"; +import { PanelBody, RadioControl } from "@wordpress/components"; import "./editor.scss"; import React from "react"; export default function Edit({ attributes, setAttributes }) { const blockProps = useBlockProps(); + const { time } = attributes; return ( <>
{$time['wind_speed']}mph
+ +{$time['wave_height']}m
+ +{$wind_data['direction']} | {$wind_data['direction_from_degree']}°
+{$weather_data['wind_direction']}
{$weather_data['wind_speed']} | {$weather_data['wind_speed_max']}mph
+{$weather_data['wind_temperature']}°celsius
+knots
- {$wind_data['temperature']}° -celsius
-