Skip to content

Commit b8e6369

Browse files
authored
Merge pull request #407 from DefangLabs/linda-style-css
Add CSS styling
2 parents 9a83c6f + 22a21e6 commit b8e6369

File tree

2 files changed

+77
-0
lines changed

2 files changed

+77
-0
lines changed

samples/managed-llm-provider/app/static/index.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
<html>
22
<head>
33
<title>Ask the AI Model</title>
4+
<link rel="stylesheet" href="./static/style.css">
45
<script type="text/javascript" src="./static/app.js"></script>
56
</head>
67
<body>
Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
body {
2+
font-family: Arial, sans-serif;
3+
background: #f7f9fa;
4+
margin: 0;
5+
padding: 0 0 40px 0;
6+
}
7+
h1 {
8+
color: #2d3a4b;
9+
text-align: center;
10+
margin-top: 40px;
11+
}
12+
form {
13+
background: #fff;
14+
max-width: 600px;
15+
margin: 30px auto 0 auto;
16+
padding: 30px 30px 20px 30px;
17+
border-radius: 10px;
18+
box-shadow: 0 2px 12px rgba(44,62,80,0.08);
19+
display: flex;
20+
flex-direction: column;
21+
align-items: center;
22+
}
23+
textarea {
24+
width: 100%;
25+
max-width: 540px;
26+
font-size: 1.1em;
27+
padding: 12px;
28+
border: 1px solid #cfd8dc;
29+
border-radius: 6px;
30+
resize: vertical;
31+
transition: border 0.2s;
32+
box-sizing: border-box;
33+
}
34+
textarea:focus {
35+
border: 1.5px solid #1976d2;
36+
outline: none;
37+
background: #f0f7ff;
38+
}
39+
input[type="submit"] {
40+
margin-top: 18px;
41+
background: #1976d2;
42+
color: #fff;
43+
border: none;
44+
border-radius: 6px;
45+
padding: 10px 28px;
46+
font-size: 1.1em;
47+
cursor: pointer;
48+
transition: background 0.2s;
49+
}
50+
input[type="submit"]:hover {
51+
background: #125ea7;
52+
}
53+
hr {
54+
margin: 40px auto 30px auto;
55+
max-width: 600px;
56+
border: none;
57+
border-top: 1.5px solid #e0e4e8;
58+
}
59+
h2 {
60+
color: #2d3a4b;
61+
text-align: center;
62+
margin-bottom: 10px;
63+
}
64+
#reply {
65+
max-width: 600px;
66+
min-height: 40px;
67+
margin: 0 auto;
68+
background: #f0f4f8;
69+
border-radius: 8px;
70+
padding: 18px 22px;
71+
font-size: 1.08em;
72+
color: #374151;
73+
box-shadow: 0 1px 4px rgba(44,62,80,0.04);
74+
white-space: pre-wrap;
75+
word-break: break-word;
76+
}

0 commit comments

Comments
 (0)