Skip to content

Commit

Permalink
Merge pull request #118 from capstone-five-ai/develop
Browse files Browse the repository at this point in the history
v0.1.6
  • Loading branch information
AAminha authored Jun 12, 2024
2 parents 453b5e2 + a3f0be5 commit 68cf7ad
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 15 deletions.
2 changes: 0 additions & 2 deletions src/components/Card/GenerateMethodCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,6 @@ const StyledCard = styled.button`
background: ${({ theme }) => theme.colors.grayScale09};
box-shadow: 0px 0px 8px 0px rgba(189, 189, 189, 0.2);
transition: all 0.5s;
&:hover {
box-shadow: 0px 0px 8px 0px rgba(54, 189, 180, 0.24);
Expand Down
17 changes: 14 additions & 3 deletions src/components/Form/QuizGenerationForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import useToast from '@/hooks/useToast';
import colors from '@/styles/color';
import { QuizType } from '@/types/quiz.type';
import { useEffect, useState } from 'react';
import styled from 'styled-components';
import styled, { css } from 'styled-components';
import DeleteIcon from '../Icon/DeleteIcon';

interface QuizFormProps {
Expand Down Expand Up @@ -118,7 +118,10 @@ function QuizGenerationForm({
</Typography>
<StyledChoiceListContainer>
{quizContent.problemChoices.map((choice, index) => (
<StyledChoiceWrapper key={`${index}`}>
<StyledChoiceWrapper
key={`${index}`}
$warning={showWarning && choice === ''}
>
<RadioButton
value={choice}
checked={quizContent.problemAnswer === `${index + 1}`}
Expand Down Expand Up @@ -188,8 +191,16 @@ const StyledChoiceListContainer = styled.div`
gap: 8px;
`;

const StyledChoiceWrapper = styled.div`
const StyledChoiceWrapper = styled.div<{ $warning: boolean }>`
display: flex;
gap: 12px;
align-items: center;
${({ $warning }) =>
$warning &&
css`
& > input {
margin-bottom: 23px;
}
`}
`;
2 changes: 0 additions & 2 deletions src/components/Navigation/MenuBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,6 @@ const StyledMenuButton = styled.button<{ $isActive: boolean }>`
color: ${({ $isActive, theme }) =>
$isActive ? theme.colors.grayScale02 : theme.colors.grayScale03};
transition: all 0.5s;
&:hover {
color: ${({ theme }) => theme.colors.grayScale02};
${StyledActiveIcon} {
Expand Down
2 changes: 0 additions & 2 deletions src/components/Navigation/TopNavigation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,6 @@ const LogoutButton = styled.button`
${({ theme }) => theme.typography.subtitle};
color: ${({ theme }) => theme.colors.grayScale04};
transition: all 0.5s;
&:hover {
color: ${({ theme }) => theme.colors.grayScale02};
}
Expand Down
13 changes: 9 additions & 4 deletions src/containers/LoginPage/BrandMotion.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { ReactComponent as Logo } from '@/assets/logo/qtudy.svg';
import Typography from '@/components/Typography/Typography';
import styled, { keyframes } from 'styled-components';

function BrandMotion() {
Expand All @@ -13,10 +12,10 @@ function BrandMotion() {
function Brand() {
return (
<Wrapper>
<Typography variant="h4" color="mainMintDark">
<div className="description">
AI가 생성한 퀴즈와 요약으로 효율적인 학습을 돕는
</Typography>
<Logo />
</div>
<Logo width={310.25} />
</Wrapper>
);
}
Expand All @@ -37,6 +36,12 @@ const Wrapper = styled.div`
display: flex;
flex-direction: column;
align-items: center;
.description {
${({ theme }) => theme.typography.h4};
font-size: 18px;
color: ${({ theme }) => theme.colors.mainMintDark};
}
`;

const AnimatedLogo = styled(Brand)`
Expand Down
3 changes: 1 addition & 2 deletions src/pages/SelectServicePage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ const Container = styled.div`
gap: 84px;
height: calc(100vh - 64px);
height: 100vh;
background: ${({ theme }) => theme.colors.grayScale08};
`;

Expand All @@ -102,7 +102,6 @@ const GradationContainer = styled.div`
position: absolute;
bottom: -35px;
right: -62px;
z-index: -1;
`;

const CardContainer = styled.div`
Expand Down

0 comments on commit 68cf7ad

Please sign in to comment.