tahercoolguy's picture
Uploaded starting files
c9abf7d verified
raw
history blame
4.51 kB
:root {
--primary-color: #6366f1;
--secondary-color: #4f46e5;
--background-color: #f8fafc;
--text-color: #1e293b;
--border-color: #e2e8f0;
--hover-color: #818cf8;
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
background-color: var(--background-color);
color: var(--text-color);
line-height: 1.6;
}
#app {
min-height: 100vh;
display: flex;
flex-direction: column;
}
.navbar {
background-color: white;
padding: 1rem 2rem;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
display: flex;
justify-content: space-between;
align-items: center;
}
.logo a {
color: var(--primary-color);
text-decoration: none;
font-size: 1.5rem;
font-weight: bold;
display: flex;
align-items: center;
gap: 0.5rem;
}
.nav-links a {
color: var(--text-color);
text-decoration: none;
padding: 0.5rem 1rem;
border-radius: 0.5rem;
transition: all 0.3s ease;
}
.nav-links a:hover {
background-color: var(--primary-color);
color: white;
}
.container {
max-width: 1200px;
margin: 2rem auto;
padding: 0 1rem;
flex: 1;
}
.title {
text-align: center;
font-size: 2.5rem;
color: var(--primary-color);
margin-bottom: 0.5rem;
}
.subtitle {
text-align: center;
color: var(--text-color);
opacity: 0.8;
margin-bottom: 2rem;
}
.generator-container {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 2rem;
background: white;
padding: 2rem;
border-radius: 1rem;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.input-section {
display: flex;
flex-direction: column;
gap: 1rem;
}
textarea {
width: 100%;
height: 150px;
padding: 1rem;
border: 2px solid var(--border-color);
border-radius: 0.5rem;
resize: none;
font-size: 1rem;
transition: border-color 0.3s ease;
}
textarea:focus {
outline: none;
border-color: var(--primary-color);
}
.char-count {
font-size: 0.9rem;
color: var(--text-color);
opacity: 0.7;
}
.options {
display: flex;
gap: 1rem;
}
select {
flex: 1;
padding: 0.75rem;
border: 2px solid var(--border-color);
border-radius: 0.5rem;
font-size: 1rem;
cursor: pointer;
background-color: white;
}
select:focus {
outline: none;
border-color: var(--primary-color);
}
button {
background-color: var(--primary-color);
color: white;
border: none;
padding: 1rem;
border-radius: 0.5rem;
font-size: 1rem;
cursor: pointer;
transition: all 0.3s ease;
display: flex;
align-items: center;
justify-content: center;
gap: 0.5rem;
}
button:hover {
background-color: var(--hover-color);
}
button:disabled {
background-color: var(--border-color);
cursor: not-allowed;
}
button.generating {
animation: pulse 1.5s infinite;
}
.preview-section {
display: flex;
align-items: center;
justify-content: center;
}
.preview-container {
width: 100%;
aspect-ratio: 1;
border: 2px dashed var(--border-color);
border-radius: 0.5rem;
display: flex;
align-items: center;
justify-content: center;
flex-direction: column;
gap: 1rem;
padding: 1rem;
background-color: #f8fafc;
}
.preview-container.has-image {
border-style: solid;
}
.preview-container img {
max-width: 100%;
max-height: 100%;
border-radius: 0.5rem;
}
.placeholder {
text-align: center;
color: var(--text-color);
opacity: 0.5;
}
.placeholder i {
font-size: 3rem;
margin-bottom: 1rem;
}
.image-actions {
display: flex;
gap: 1rem;
margin-top: 1rem;
}
footer {
text-align: center;
padding: 2rem;
background-color: white;
margin-top: auto;
}
footer a {
color: var(--primary-color);
text-decoration: none;
}
footer a:hover {
text-decoration: underline;
}
@keyframes pulse {
0% { opacity: 1; }
50% { opacity: 0.7; }
100% { opacity: 1; }
}
@media (max-width: 768px) {
.generator-container {
grid-template-columns: 1fr;
}
.title {
font-size: 2rem;
}
.options {
flex-direction: column;
}
}