diff --git a/src/app.css b/src/app.css index 545869c..03b05b9 100644 --- a/src/app.css +++ b/src/app.css @@ -15,6 +15,6 @@ body { margin: 0; padding: 0; - background-color: #F2F2F2; + background-color: #F3F4F9; width: 100vw; } \ No newline at end of file diff --git a/src/components/Header.svelte b/src/components/Header.svelte index dbd8301..53c7a31 100644 --- a/src/components/Header.svelte +++ b/src/components/Header.svelte @@ -1,15 +1,14 @@ - -
SMART HOME
+
SMART HOME
diff --git a/src/libs/DeviceDetails.svelte b/src/libs/DeviceDetails.svelte index 20c9e3c..7b406e7 100644 --- a/src/libs/DeviceDetails.svelte +++ b/src/libs/DeviceDetails.svelte @@ -1,5 +1,8 @@
@@ -24,7 +27,11 @@
{log.sensor_value}
{log.battery_life}
{:else} -
door switch
+
door switch
+
+
+
+
{/if} {/each}
@@ -32,65 +39,59 @@
+ .table-wrapper { + display: flex; + justify-content: center; + align-items: center; + margin-top: 20px; + flex-direction: column; + background-color: white; + width: 95%; + border-radius: 4px; + box-shadow: 0px 2px 4px rgba(0, 0, 3, 0.05); + } + .table { + width: 100%; + display: flex; + flex-direction: column; + align-items: center; + } + .table-head-item { + width: 100%; + display: flex; + justify-content: start; + align-items: center; + padding: 5px 10px 10px 10px; + color: #535151; + font-size: 16px; + } + .table-row { + display: flex; + width: 100%; + text-decoration: none; + color: inherit; + } + .table-head { + font-size: 15px; + } + .divider { + width: 100%; + background-color: #f2f2f2; + height: 1px; + } + /* Link bileşeni üzerinde cursor:pointer stilini uygulama */ + :global(.svelte-routing-link) { + display: flex; + width: 100%; + text-decoration: none; + color: inherit; + } + :global(.svelte-routing-link:hover) { + cursor: pointer; + display: flex; + width: 100%; + text-decoration: none; + color: inherit; + background-color: #f3f3f3; + } + diff --git a/src/libs/ui/Button.svelte b/src/libs/ui/Button.svelte new file mode 100644 index 0000000..af15dec --- /dev/null +++ b/src/libs/ui/Button.svelte @@ -0,0 +1,32 @@ + + +
+ {buttonText} +
+ + diff --git a/src/libs/ui/Stepper.svelte b/src/libs/ui/Stepper.svelte new file mode 100644 index 0000000..9e720ec --- /dev/null +++ b/src/libs/ui/Stepper.svelte @@ -0,0 +1,86 @@ + + +
+
e.key === "Enter" && decreaseCounter()} + > + - +
+
{counter}
+
e.key === "Enter" && decreaseCounter()} + > + + +
+
+ +