Skip to content

fix: Added UI changes (Landing Screen) #1039

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -65,11 +65,23 @@
height: 24px;
margin-bottom: 12px;
}

.microphoneAndSendContainer {
display: flex;
flex-direction: column;
align-items: center;
margin-right: 12px;
margin-top: 25px;
}


/* High contrast mode specific styles */
@media screen and (-ms-high-contrast: active), (forced-colors: active) {
.questionInputContainer{
border: 2px solid WindowText;
margin-bottom: 10px;
padding: 5px;
background-color: Window;
color: WindowText;
}
}
16 changes: 16 additions & 0 deletions code/frontend/src/pages/chat/Chat.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -308,3 +308,19 @@
font-size: 12px;
}
}

/* High contrast mode specific styles */
@media screen and (-ms-high-contrast: active), (forced-colors: active) {
.chatContainer {
border: 2px solid WindowText;
padding: 10px;
background-color: Window;
color: WindowText;
}
}

@media screen and (max-width: 1280px) {
.clearChatBroom {
left: -17px !important;
}
}
4 changes: 2 additions & 2 deletions code/frontend/src/pages/chat/Chat.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ const Chat = () => {
setIsRecognizing(true);

recognizerRef.current = await multiLingualSpeechRecognizer(); // Store the recognizer in the ref

recognizerRef.current.recognized = (s, e) => {
if (e.result.reason === ResultReason.RecognizedSpeech) {
const recognized = e.result.text;
Expand Down Expand Up @@ -226,7 +226,7 @@ const Chat = () => {
<div className={`${styles.chatContainer} ${styles.MobileChatContainer}`}>
{!lastQuestionRef.current ? (
<Stack className={styles.chatEmptyState}>
<img src={Azure} className={styles.chatIcon} aria-hidden="true" />
<img src={Azure} className={styles.chatIcon} aria-hidden="true" alt="Azure AI logo"/>
<h1 className={styles.chatEmptyStateTitle}>Start chatting</h1>
<h2 className={styles.chatEmptyStateSubtitle}>
This chatbot is configured to answer your questions
Expand Down
23 changes: 22 additions & 1 deletion code/frontend/src/pages/layout/Layout.module.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
body {
font-size: 16px; /* Use relative units */
line-height: 1.5;
margin: 0;
padding: 0;
}

.header, .footer {
width: 100%;
max-width: 1200px;
padding: 1rem;
box-sizing: border-box;
}

.layout {
display: flex;
flex-direction: column;
Expand Down Expand Up @@ -114,4 +128,11 @@
display: flex;
align-items: center;
color: #242424;
}
}

@media screen and (-ms-high-contrast: active), (forced-colors: active) {

.shareButtonContainer{
border: 2px solid WindowText;
}
}
15 changes: 8 additions & 7 deletions code/frontend/src/pages/layout/Layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ const Layout = () => {
src={Azure}
className={styles.headerIcon}
aria-hidden="true"
alt="Azure AI logo"
/>
<Link to="/" className={styles.headerTitleContainer}>
<h3 className={styles.headerTitle}>Azure AI</h3>
Expand All @@ -52,11 +53,11 @@ const Layout = () => {
</div>
</header>
<Outlet />
<Dialog
<Dialog
onDismiss={handleSharePanelDismiss}
hidden={!isSharePanelOpen}
styles={{

main: [{
selectors: {
['@media (min-width: 480px)']: {
Expand All @@ -77,11 +78,11 @@ const Layout = () => {
>
<Stack horizontal verticalAlign="center" style={{gap: "8px"}}>
<TextField className={styles.urlTextBox} defaultValue={window.location.href} readOnly/>
<div
className={styles.copyButtonContainer}
role="button"
tabIndex={0}
aria-label="Copy"
<div
className={styles.copyButtonContainer}
role="button"
tabIndex={0}
aria-label="Copy"
onClick={handleCopyClick}
onKeyDown={e => e.key === "Enter" || e.key === " " ? handleCopyClick() : null}
>
Expand Down
Loading