-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
User credit result/#91
- Loading branch information
Showing
12 changed files
with
92 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import UserCreditResult from '@/app/ui/user/user-credit-result'; | ||
import Button from '@/app/ui/view/atom/button/button'; | ||
import Link from 'next/link'; | ||
import React from 'react'; | ||
|
||
export default function MyResultContainer() { | ||
return ( | ||
<div className="flex flex-col justify-center gap-10"> | ||
<p className="font-bold sm:text-3xl text-2xl ml-1 sm:ml-0">마이페이지</p> | ||
<UserCreditResult /> | ||
<div className="flex justify-center"> | ||
<Link href="/result"> | ||
<Button label="수강현황 자세히 보기" variant="primary" size="xs" /> | ||
</Link> | ||
</div> | ||
</div> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import { getUserInfo } from '@/app/business/user/user.query'; | ||
import books from '@/public/assets/books.png'; | ||
import pencil from '@/public/assets/pencil.png'; | ||
import Image from 'next/image'; | ||
|
||
export default async function UserCreditResult() { | ||
const userInfo = await getUserInfo(); | ||
return ( | ||
<div className="flex justify-between items-center bg-zinc-100 min-h-20 rounded-lg py-1 px-8 gap-3"> | ||
<div className="relative sm:h-20 sm:w-20 h-14 w-14"> | ||
<Image src={pencil} alt="pencil" layout="fill" /> | ||
</div> | ||
<p className="zIndex-1 text-sm md:text-base lg:text-lg"> | ||
{userInfo.studentName}님, 총 기준학점 중 <span className="text-point-blue">{userInfo.takenCredit}</span>학점을 | ||
수강하셨습니다! | ||
</p> | ||
<div className="relative sm:h-20 sm:w-20 h-14 w-14"> | ||
<Image src={books} alt="books" layout="fill" /> | ||
</div> | ||
</div> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.