SamiKoen commited on
Commit
ea141bf
·
1 Parent(s): 5127c7a

Replace bg image with pure-CSS dual monitors (Apple Studio Display style)

Browse files
Files changed (2) hide show
  1. static/index.html +89 -26
  2. static/monitors.jpg +0 -3
static/index.html CHANGED
@@ -88,38 +88,60 @@
88
  text-transform: uppercase;
89
  }
90
 
91
- /* Cift monitor sahnesi — gercek gorsel + 2 ekran inseti */
92
  .stage {
93
- position: relative;
94
- width: 100%;
95
- aspect-ratio: 1920 / 1080;
96
- background: url('/static/monitors.jpg') no-repeat center / 100% 100%;
 
97
  }
 
 
98
  .screen {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
99
  position: absolute;
 
 
 
 
 
 
 
 
 
 
 
100
  overflow: hidden;
 
101
  background: #000;
 
102
  }
103
- /* Olculer (1920x1080 referansli):
104
- Sol ekran : x=109..914 y=222..841 -> %5.677 / %20.556 / w%41.927 / h%57.315
105
- Sag ekran : x=1005..1810 y=222..841 -> %52.344 / %20.556 / w%41.927 / h%57.315 */
106
- .screen.left { left: 5.677%; top: 20.556%; width: 41.927%; height: 57.315%; }
107
- .screen.right { left: 52.344%; top: 20.556%; width: 41.927%; height: 57.315%; }
108
-
109
- .screen img {
110
  width: 100%;
111
  height: 100%;
112
  object-fit: cover;
113
  display: block;
114
- transition: transform 0.18s ease-out, filter 0.25s, opacity 0.3s;
115
  }
116
- .screen.right img { object-fit: contain; background: #ffffff; }
 
117
  .screen.right .empty {
118
- width: 100%;
119
- height: 100%;
120
- display: flex;
121
- align-items: center;
122
- justify-content: center;
123
  background: #ffffff;
124
  color: var(--ink-mute);
125
  font-family: 'Rajdhani', sans-serif;
@@ -129,8 +151,39 @@
129
  text-align: center;
130
  padding: 0 24px;
131
  }
132
- /* Ekran etrafinda hafif glow (asistan konusurken) */
133
- .screen.left.active { box-shadow: 0 0 0 3px var(--trek-red), 0 0 30px rgba(205,31,42,0.45); }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
134
 
135
  /* Alt bant icerikleri */
136
  .status {
@@ -254,12 +307,22 @@
254
 
255
  <!-- IKILI MONITOR SAHNESI -->
256
  <div class="stage">
257
- <div class="screen left" id="leftScreen">
258
- <img id="avatarImg" src="/static/assistant.png" alt="Trek Asistan" />
 
 
 
 
 
259
  </div>
260
- <div class="screen right" id="rightScreen">
261
- <div class="empty" id="productEmpty">Henüz Ürün Yok</div>
262
- <img id="productImg" alt="" style="display:none;" />
 
 
 
 
 
263
  </div>
264
  </div>
265
 
 
88
  text-transform: uppercase;
89
  }
90
 
91
+ /* Cift monitor sahnesi — saf CSS cizim */
92
  .stage {
93
+ display: grid;
94
+ grid-template-columns: 1fr 1fr;
95
+ gap: 56px;
96
+ align-items: start;
97
+ justify-items: center;
98
  }
99
+ .monitor { width: 100%; max-width: 640px; }
100
+
101
  .screen {
102
+ position: relative;
103
+ aspect-ratio: 16 / 10;
104
+ background: #0a0b0d;
105
+ border-radius: 10px;
106
+ padding: 14px;
107
+ box-shadow:
108
+ 0 24px 50px rgba(0,0,0,0.18),
109
+ 0 6px 14px rgba(0,0,0,0.10),
110
+ inset 0 0 0 1px rgba(255,255,255,0.04);
111
+ transition: box-shadow 0.3s;
112
+ }
113
+ .screen::before {
114
+ /* Kamera deligi */
115
+ content: '';
116
  position: absolute;
117
+ top: 5px;
118
+ left: 50%;
119
+ transform: translateX(-50%);
120
+ width: 5px;
121
+ height: 5px;
122
+ background: #1c1e22;
123
+ border-radius: 50%;
124
+ }
125
+ .screen-inner {
126
+ width: 100%;
127
+ height: 100%;
128
  overflow: hidden;
129
+ border-radius: 2px;
130
  background: #000;
131
+ position: relative;
132
  }
133
+ .screen-inner img {
 
 
 
 
 
 
134
  width: 100%;
135
  height: 100%;
136
  object-fit: cover;
137
  display: block;
138
+ transition: transform 0.18s ease-out, filter 0.25s;
139
  }
140
+ .screen.right .screen-inner { background: #ffffff; }
141
+ .screen.right .screen-inner img { object-fit: contain; }
142
  .screen.right .empty {
143
+ position: absolute; inset: 0;
144
+ display: flex; align-items: center; justify-content: center;
 
 
 
145
  background: #ffffff;
146
  color: var(--ink-mute);
147
  font-family: 'Rajdhani', sans-serif;
 
151
  text-align: center;
152
  padding: 0 24px;
153
  }
154
+ .screen.left.active {
155
+ box-shadow:
156
+ 0 0 0 2px var(--trek-red),
157
+ 0 0 30px rgba(205,31,42,0.45),
158
+ 0 24px 50px rgba(0,0,0,0.18);
159
+ }
160
+ /* Stand (boyun + taban) */
161
+ .stand {
162
+ width: 38%;
163
+ margin: 0 auto;
164
+ display: flex;
165
+ flex-direction: column;
166
+ align-items: center;
167
+ }
168
+ .stand .neck {
169
+ width: 35%;
170
+ height: 32px;
171
+ background: linear-gradient(180deg, #cfd2d7 0%, #a4a8af 100%);
172
+ border-radius: 0 0 6px 6px;
173
+ box-shadow: inset 0 -2px 4px rgba(0,0,0,0.12);
174
+ }
175
+ .stand .base {
176
+ width: 100%;
177
+ height: 14px;
178
+ margin-top: -2px;
179
+ background: linear-gradient(180deg, #d4d7dc 0%, #9aa0a8 100%);
180
+ border-radius: 50%;
181
+ box-shadow: 0 14px 22px rgba(0,0,0,0.16);
182
+ }
183
+
184
+ @media (max-width: 900px) {
185
+ .stage { grid-template-columns: 1fr; gap: 28px; }
186
+ }
187
 
188
  /* Alt bant icerikleri */
189
  .status {
 
307
 
308
  <!-- IKILI MONITOR SAHNESI -->
309
  <div class="stage">
310
+ <div class="monitor">
311
+ <div class="screen left" id="leftScreen">
312
+ <div class="screen-inner">
313
+ <img id="avatarImg" src="/static/assistant.png" alt="Trek Asistan" />
314
+ </div>
315
+ </div>
316
+ <div class="stand"><div class="neck"></div><div class="base"></div></div>
317
  </div>
318
+ <div class="monitor">
319
+ <div class="screen right" id="rightScreen">
320
+ <div class="screen-inner">
321
+ <div class="empty" id="productEmpty">Henüz Ürün Yok</div>
322
+ <img id="productImg" alt="" style="display:none;" />
323
+ </div>
324
+ </div>
325
+ <div class="stand"><div class="neck"></div><div class="base"></div></div>
326
  </div>
327
  </div>
328
 
static/monitors.jpg DELETED

Git LFS Details

  • SHA256: 147adcd2e2a89989029b2d701e86a545daf29b918807ef1f7eff60c092b382ea
  • Pointer size: 130 Bytes
  • Size of remote file: 37 kB