dgx-spark-playbooks/nvidia/multi-agent-chatbot/assets/frontend/src/styles/WelcomeSection.module.css
2025-10-04 21:21:42 +00:00

218 lines
4.4 KiB
CSS

/*
# SPDX-FileCopyrightText: Copyright (c) 1993-2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
*/
.welcomeContainer {
position: absolute;
left: 50%;
top: 45%;
transform: translate(-50%, -50%);
text-align: center;
max-width: 900px;
width: 100%;
padding: 20px;
z-index: 10;
opacity: 1;
}
.welcomeMessage {
font-size: 42px;
font-weight: 200;
color: #1f2937;
max-width: 800px;
letter-spacing: -0.5px;
background: linear-gradient(45deg, #76B900, #669f00);
background-clip: text;
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
margin: 0 auto 40px auto;
opacity: 0;
animation: fadeInUp 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}
:global(.dark) .welcomeMessage {
color: #e5e7eb;
background: linear-gradient(45deg, #76B900, #9be024);
background-clip: text;
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}
.agentCards {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 24px;
width: 100%;
max-width: 600px;
margin: 0 auto;
}
.agentCard {
background: white;
border-radius: 12px;
padding: 24px;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
transition: all 0.3s ease;
cursor: pointer;
text-align: center;
border: 1px solid rgba(118, 185, 0, 0.1);
opacity: 0;
transform: translateY(30px);
}
.agentCard.animate1 {
animation: fadeInUp 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
animation-delay: 0.3s;
}
.agentCard.animate2 {
animation: fadeInUp 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
animation-delay: 0.4s;
}
.agentCard.animate3 {
animation: fadeInUp 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
animation-delay: 0.6s;
}
.agentCard.animate4 {
animation: fadeInUp 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
animation-delay: 0.7s;
}
.agentCard.animate1:hover,
.agentCard.animate2:hover,
.agentCard.animate3:hover,
.agentCard.animate4:hover {
transform: translateY(-4px);
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
border-color: rgba(118, 185, 0, 0.3);
}
:global(.dark) .agentCard {
background: #1f2937;
border-color: rgba(118, 185, 0, 0.2);
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}
:global(.dark) .agentCard:hover {
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
border-color: rgba(118, 185, 0, 0.4);
}
.agentIcon {
width: 48px;
height: 48px;
margin: 0 auto 16px auto;
background: linear-gradient(45deg, #76B900, #669f00);
border-radius: 12px;
display: flex;
align-items: center;
justify-content: center;
color: white;
}
.agentTitle {
font-size: 16px;
font-weight: 600;
color: #1f2937;
margin: 0 0 8px 0;
line-height: 1.2;
}
:global(.dark) .agentTitle {
color: #e5e7eb;
}
.agentSubtitle {
font-size: 14px;
font-weight: 400;
color: #6b7280;
margin: 0;
line-height: 1.2;
}
:global(.dark) .agentSubtitle {
color: #9ca3af;
}
@media (max-width: 640px) {
.agentCards {
grid-template-columns: 1fr;
gap: 16px;
max-width: 400px;
}
.welcomeContainer {
max-width: 95%;
padding: 16px;
}
.welcomeMessage {
font-size: 32px;
margin-bottom: 32px;
}
.agentCard {
padding: 20px;
}
}
@keyframes fadeInUp {
0% {
opacity: 0;
transform: translateY(30px);
}
100% {
opacity: 1;
transform: translateY(0);
}
}
@keyframes welcomeBubble {
0% {
opacity: 0;
transform: translate(-50%, 30px) scale(0.8);
filter: blur(10px);
}
60% {
opacity: 0.8;
filter: blur(0px);
}
100% {
opacity: 1;
transform: translate(-50%, -50%) scale(1);
filter: blur(0px);
}
}
@keyframes welcomeDisappear {
0% {
opacity: 1;
transform: translate(-50%, -50%) scale(1);
filter: blur(0px);
}
100% {
opacity: 0;
transform: translate(-50%, -80px) scale(0.9);
filter: blur(10px);
}
}
.welcomeMessage.hide {
animation: welcomeDisappear 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}