forked from com-lihaoyi/mill
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.css
90 lines (77 loc) · 1.35 KB
/
App.css
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
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Arial', sans-serif;
}
body {
background: #f4f4f4;
height: 100vh;
display: flex;
justify-content: center;
align-items: center;
}
.app-container {
background: #fff;
border-radius: 12px;
padding: 40px;
width: 400px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
text-align: center;
}
h1 {
margin-bottom: 20px;
font-size: 1.8rem;
color: #333;
}
.analysis-form {
display: flex;
flex-direction: column;
gap: 10px;
}
textarea {
width: 100%;
height: 120px;
padding: 10px;
font-size: 1rem;
border: 1px solid #ccc;
border-radius: 8px;
resize: none;
outline: none;
}
textarea:focus {
border-color: #007bff;
}
button {
padding: 10px;
background: #007bff;
color: #fff;
border: none;
border-radius: 8px;
cursor: pointer;
font-size: 1rem;
}
button:hover {
background: #0056b3;
}
button:disabled {
background: #b0c4de;
cursor: not-allowed;
}
.result-container {
margin-top: 20px;
padding: 15px;
border-radius: 8px;
color: #fff;
font-weight: bold;
}
/* Sentiment-based styles */
.result-container.positive {
background-color: #28a745; /* Green for positive */
}
.result-container.negative {
background-color: #dc3545; /* Red for negative */
}
.result-container.neutral {
background-color: #007bff; /* Blue for neutral */
}