Skip to content
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

Web Responsive #2

Open
tonioller opened this issue Dec 5, 2024 · 1 comment
Open

Web Responsive #2

tonioller opened this issue Dec 5, 2024 · 1 comment

Comments

@tonioller
Copy link
Member

No description provided.

@tonioller
Copy link
Member Author

Os paso un ejemplo de estilos para la web

styles_user.css

/* Estilos generales */
body {
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
box-sizing: border-box;
}

.container {
display: flex;
flex-direction: row;
height: 100vh;
}

/* Sidebar */
.sidebar {
width: 25%;
background-color: #f4f4f4;
padding: 20px;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}

.sidebar-image {
max-width: 100%;
height: auto;
border-radius: 8px;
}

/* Chat Area */
.chat-area {
width: 75%;
padding: 20px;
display: flex;
flex-direction: column;
}

.chat-box {
flex-grow: 1;
overflow-y: auto;
background: #e9e9e9;
padding: 10px;
border-radius: 8px;
margin-bottom: 10px;
}

.input-area {
display: flex;
gap: 10px;
}

#questionInput {
flex-grow: 1;
padding: 10px;
border-radius: 4px;
border: 1px solid #ccc;
}

button {
padding: 10px 20px;
background-color: #007BFF;
color: white;
border: none;
border-radius: 4px;
cursor: pointer;
}

button:hover {
background-color: #0056b3;
}

/* Media Queries */
@media (max-width: 768px) {
.container {
flex-direction: column;
}

.sidebar {
    width: 100%;
    padding: 10px;
}

.chat-area {
    width: 100%;
    padding: 10px;
}

}

@media (max-width: 480px) {
.chat-box {
font-size: 14px;
padding: 5px;
}

#questionInput {
    font-size: 14px;
}

button {
    font-size: 14px;
    padding: 5px 10px;
}

}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant