dv+css布局实现冬季温暖的沙发客厅代码

代码语言:html

所属分类:布局界面

代码描述:dv+css布局实现冬季温暖的沙发客厅代码码

代码标签: dv css 布局 冬季 温暖 沙发 客厅 代码

下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开

<!DOCTYPE html>
<html lang="en" >

<head>
  <meta charset="UTF-8">
  

  
  
<style>
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  background:
    radial-gradient(ellipse at 20% 25%, rgba(255, 200, 120, 0.08) 0%, transparent 50%),
    linear-gradient(180deg, #2b2018 0%, #3a2b21 40%, #4d3a2c 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.scene {
  position: relative;
  width: min(900px, 95vw);
  height: min(675px, 85vh);
}

.window {
  position: absolute;
  top: 0;
  right: 10%;
  width: 30%;
  aspect-ratio: 3/4;
  filter: drop-shadow(0 8px 25px rgba(0, 0, 0, 0.6));
}

.window-wall-recess {
  position: absolute;
  inset: -4%;
  background:
    radial-gradient(ellipse at 40% 40%, #352820 0%, #261c15 100%);
  border-radius: 8px;
  box-shadow:
    inset 6px 6px 20px rgba(0, 0, 0, 0.7),
    inset -3px -3px 12px rgba(80, 60, 45, 0.2);
}

.window-panes {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 30%, #243648 0%, #1a2d3f 50%, #0f1a28 100%);
  border-radius: 4px;
  overflow: hidden;
  box-shadow:
    inset 0 0 50px rgba(0, 0, 0, 0.5),
    0 0 30px rgba(0, 0, 0, 0.4);
}

.night-sky {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 70% 30%, rgba(40, 60, 85, 0.3) 0%, transparent 40%),
    radial-gradient(circle at 20% 70%, rgba(30, 45, 65, 0.2) 0%, transparent 40%);
}

.window-frost {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 15%, rgba(200, 220, 255, 0.03) 0%, transparent 25%),
    radial-gradient(circle at 85% 80%, rgba(200, 220, 255, 0.02) 0%, transparent 30%);
  opacity: 0.6;
}

.window-reflection .........完整代码请登录后点击上方下载按钮下载查看

网友评论0