rr19tech commited on
Commit
6caf7bd
·
verified ·
1 Parent(s): ea0cf2f

Updated stylesheet

Browse files
Files changed (1) hide show
  1. style.css +77 -19
style.css CHANGED
@@ -1,28 +1,86 @@
1
- body {
2
- padding: 2rem;
3
- font-family: -apple-system, BlinkMacSystemFont, "Arial", sans-serif;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4
  }
5
 
6
- h1 {
7
- font-size: 16px;
8
- margin-top: 0;
 
 
9
  }
10
 
11
- p {
12
- color: rgb(107, 114, 128);
13
- font-size: 15px;
14
- margin-bottom: 10px;
15
- margin-top: 5px;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
16
  }
17
 
18
- .card {
19
- max-width: 620px;
20
- margin: 0 auto;
21
- padding: 16px;
22
- border: 1px solid lightgray;
23
- border-radius: 16px;
 
 
 
 
 
24
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
25
 
26
- .card p:last-child {
27
- margin-bottom: 0;
 
28
  }
 
1
+ .ai-assistant-container {
2
+ /* Fixed positioning makes it float relative to the browser window */
3
+ position: fixed;
4
+ bottom: 20px; /* Adjust vertical position */
5
+ right: 20px; /* Adjust horizontal position */
6
+ z-index: 1000; /* Ensures it stays above other content */
7
+
8
+ /* Layout for image and text */
9
+ display: flex;
10
+ align-items: flex-end; /* Aligns items to the bottom */
11
+ gap: 10px; /* Space between the image and the chat bubble */
12
+
13
+ /* Optional: Add a smooth transition for opening/closing animations */
14
+ transition: transform 0.3s ease-in-out;
15
+ }
16
+
17
+ /* Positioning for Agent 1 (bottom one) */
18
+ #aiAssistant {
19
+ right: 20px;
20
+ bottom: 20px; /* Distance from the bottom of the viewport */
21
  }
22
 
23
+ /* Positioning for Agent 2 (top one, stacked above Agent 1) */
24
+ #agenticLoop {
25
+ right: 20px;
26
+ /* This calculation places it 200px (height) + 20px (margin) above agent 1 */
27
+ bottom: 140px;
28
  }
29
 
30
+ .assistant-avatar {
31
+ width: 60px; /* Adjust size of the avatar */
32
+ height: 60px;
33
+ border-radius: 50%; /* Makes the image circular */
34
+ box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
35
+ cursor: pointer; /* Indicates it's interactive */
36
+ }
37
+
38
+ .chat-bubble {
39
+ /* Styling for the text area appearance */
40
+ background-color: #fff;
41
+ padding: 15px;
42
+ border-radius: 20px;
43
+ box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
44
+ max-width: 250px;
45
+ position: relative;
46
+
47
+ /* Initially hide the text area */
48
+ display: none;
49
  }
50
 
51
+ /* CSS pseudo-element for the chat bubble "tail" */
52
+ .chat-bubble::after {
53
+ content: "";
54
+ position: absolute;
55
+ bottom: 10px;
56
+ right: -8px; /* Position the tail near the avatar */
57
+ width: 0;
58
+ height: 0;
59
+ border-top: 10px solid transparent;
60
+ border-left: 10px solid #fff;
61
+ border-bottom: 10px solid transparent;
62
  }
63
+ .networkContainer {
64
+ display: flex;
65
+ align-items: center;
66
+ justify-content: space-around;
67
+ }
68
+ .item {
69
+ /* Add some styling to see the boxes */
70
+
71
+ color: white;
72
+ padding: 3px;
73
+ border: 1px solid #fff;
74
+ flex: 1; /* Optional: Distributes available space equally among items */
75
+ }
76
+ .rotate-svg {
77
+ /* Ensure the rotation is around the element's center */
78
+ transform-origin: center center;
79
+ /* Define the transition effect */
80
+ transition: transform 1s ease;
81
+ }
82
 
83
+ /* Apply the rotation when the container is hovered */
84
+ .item:active .rotate-svg {
85
+ transform: rotate(360deg);
86
  }