<template>
  <div class="weather-tips">
    <div class="title">{{ title }}</div>
    <div class="content">{{ measure }}</div>
  </div>
</template>

<script setup lang="ts">
  defineProps<{
    title: string | undefined;
    measure: string | undefined;
  }>();
</script>

<style scoped lang="scss">
  .weather-tips {
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 12px 9px 12px 12px;
  }

  .title {
    font-size: 16px;
    color: #303133;
    margin-bottom: 7px;
  }

  .content {
    height: 142px;
    font-size: 14px;
    color: #606266;
    overflow: auto;
    white-space: pre-line;
  }
</style>
