-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
206 lines (181 loc) · 4.94 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
<!DOCTYPE html>
<html lang="en" dir="rtl">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Stock Tracker - RTL</title>
<style>
body {
font-family: Arial, sans-serif;
margin: 0;
padding: 20px;
direction: rtl; /* Right-to-Left layout */
text-align: right;
background-color: #f9f9f9;
}
.container {
max-width: 600px;
margin: 0 auto;
}
.header {
text-align: right;
margin-bottom: 20px;
}
.header h1 {
font-size: 24px;
margin: 0;
color: #333;
}
.header p {
color: #555;
font-size: 14px;
}
.row-card {
background-color: #fff;
border: 1px solid #ddd;
border-radius: 8px;
padding: 15px;
margin-bottom: 15px;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.row-card div {
margin-bottom: 10px;
}
.row-card label {
display: block;
font-size: 14px;
margin-bottom: 5px;
color: #333;
}
.row-card input[type="text"],
.row-card select,
.row-card input[type="number"] {
width: 100%;
padding: 10px;
border: 1px solid #ccc;
border-radius: 4px;
font-size: 14px;
text-align: right;
}
.row-card select {
background-color: #f9f9f9;
}
.add-button {
margin-top: 20px;
padding: 12px 20px;
border: none;
background-color: #007bff;
color: white;
font-size: 16px;
cursor: pointer;
border-radius: 4px;
width: 100%;
}
.add-button:hover {
background-color: #0056b3;
}
/* Dropdown options with background colors */
option.red {
background-color: #f26868;
}
option.green {
background-color: #08ab08;
}
option.blue {
background-color: #ccccff;
}
option.yellow {
background: linear-gradient(90deg, rgba(131,58,180,1) 0%, rgba(253,29,29,1) 24%, rgba(252,176,69,1) 71%);
}
option.brown-carton {
background-color: #6b4d04;
}
option.brown {
background-color: saddlebrown;
}
/* Mobile adjustments */
@media (max-width: 600px) {
.row-card {
padding: 15px;
margin-bottom: 20px;
}
.add-button {
font-size: 14px;
padding: 14px;
}
}
</style>
</head>
<body>
<div class="container">
<div class="header">
<h1>ניהול מלאי</h1>
<p>עקוב אחר מלאי הפריטים שלך לפי צבע, כמות ותיאור.</p>
</div>
<div id="rows-container">
<!-- Example Row -->
<div class="row-card">
<div>
<label>תיאור פריט</label>
<input type="text" placeholder="לדוגמה: בצל" />
</div>
<div>
<label>צבע/סוג</label>
<select>
<option value="" disabled selected>בחר צבע</option>
<option class="red">אדום</option>
<option class="green">ירוק</option>
<option class="yellow">צבעוני</option>
<option class="blue">כחול</option>
<option class="brown">שופרסל</option>
<option class="brown-carton">קרטון</option>
</select>
</div>
<div>
<label>כמות</label>
<input type="number" placeholder="כמות" />
</div>
<div>
<label>הערות</label>
<input type="text" placeholder="הערות (אופציונלי)" />
</div>
</div>
</div>
<button class="add-button" onclick="addRow()">הוסף שורה</button>
</div>
<script>
function addRow() {
const rowsContainer = document.getElementById('rows-container');
const newRow = document.createElement('div');
newRow.classList.add('row-card');
newRow.innerHTML = `
<div>
<label>תיאור פריט</label>
<input type="text" placeholder="לדוגמה: בצל" />
</div>
<div>
<label>צבע/סוג</label>
<select>
<option value="" disabled selected>בחר צבע</option>
<option class="red">אדום</option>
<option class="blue">כחול</option>
<option class="green">ירוק</option>
<option class="yellow">צבעוני</option>
<option class="brown">שופרסל</option>
<option class="brown-carton">קרטון</option>
</select>
</div>
<div>
<label>כמות</label>
<input type="number" min="1" placeholder="כמות" />
</div>
<div>
<label>הערות</label>
<input type="text" placeholder="הערות (אופציונלי)" />
</div>
`;
rowsContainer.appendChild(newRow);
}
</script>
</body>
</html>