Skip to content
Draft
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
2 changes: 1 addition & 1 deletion apps/university-web/next.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const imageRemotePatterns = [
/** @type {import('next').NextConfig} */
const nextConfig = {
assetPrefix: "/university-static",
transpilePackages: ["@solid-connect/ai-inspector"],
transpilePackages: ["@solid-connect/ai-inspector", "@solid-connect/ui"],
reactCompiler: {
compilationMode: "annotation",
},
Expand Down
1 change: 1 addition & 0 deletions apps/university-web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
"@react-google-maps/api": "^2.19.2",
"@sentry/nextjs": "^10.61.0",
"@solid-connect/ai-inspector": "workspace:^",
"@solid-connect/ui": "workspace:^",
"@stomp/stompjs": "^7.1.1",
"@tanstack/react-query": "^5.84.1",
"@tanstack/react-query-devtools": "^5.84.1",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import MobileHeroDetailShell from "@solid-connect/ui/mobile-hero-detail-shell";
import Link from "next/link";

import Image from "@/components/ui/FallbackImage";
Expand All @@ -8,7 +9,6 @@ import { formatLanguageTestName, getLanguageTestLogo } from "@/utils/languageUti
import InfoSection from "./_ui/InfoSection";
import LanguageSection from "./_ui/LanguageSection";
import MapSection from "./_ui/MapSection";
import TitleSection from "./_ui/TitleSection";
import UniversityBtns from "./_ui/UniversityBtns";

interface UniversityDetailProps {
Expand Down Expand Up @@ -48,31 +48,38 @@ const UniversityDetail = ({ university, koreanName, backHref }: UniversityDetail

const UniversityDetailMobile = ({ university, koreanName }: UniversityDetailProps) => {
return (
<div className="relative">
<div className="absolute top-4 z-20 flex w-full justify-between gap-3 px-5">
<UniversityBtns universityId={university.id} />
</div>

<div className="relative -z-10 h-60 w-full bg-gradient-to-b from-k-700 to-k-900">
<MobileHeroDetailShell
actions={<UniversityBtns universityId={university.id} />}
background={
<Image
alt="대학 이미지"
src={normalizeImageUrlToUploadCdn(university.backgroundImageUrl)}
fill
className="object-cover"
fallbackSrc="/svgs/placeholders/image-placeholder.svg"
priority
/>
</div>
<div className="relative z-10 -mt-16 rounded-t-3xl bg-white px-5">
<TitleSection
title={koreanName}
subTitle={university.englishName}
logoUrl={normalizeImageUrlToUploadCdn(university.logoImageUrl)}
}
logo={
<Image
src={normalizeImageUrlToUploadCdn(university.logoImageUrl)}
alt="대학 로고"
width={62}
height={62}
className="size-[62px] rounded-full object-cover"
fallbackSrc="/svgs/placeholders/university-logo-placeholder.svg"
/>
<UniversityStats university={university} />
<UniversityDetailBody university={university} />
<div className="h-48" />
</div>
</div>
}
title={koreanName}
subtitle={university.englishName}
stats={[
{ key: "country", content: university.country },
{ key: "capacity", content: getCapacityLabel(university) },
]}
>
<UniversityDetailBody university={university} />
<div className="h-48" />
</MobileHeroDetailShell>
);
};

Expand Down
2 changes: 1 addition & 1 deletion apps/university-web/tailwind.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ const typographyPlugin = plugin(({ addUtilities, theme }) => {

const config: Config = {
darkMode: ["class"],
content: ["./src/**/*.{js,ts,jsx,tsx,mdx}"],
content: ["./src/**/*.{js,ts,jsx,tsx,mdx}", "../../packages/ui/src/**/*.{js,ts,jsx,tsx,mdx}"],
safelist: [
"ml-0",
"ml-12",
Expand Down
2 changes: 1 addition & 1 deletion apps/web/next.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ if (isProductionRuntime && !universityWebDomain) {

/** @type {import('next').NextConfig} */
const nextConfig = {
transpilePackages: ["@solid-connect/ai-inspector"],
transpilePackages: ["@solid-connect/ai-inspector", "@solid-connect/ui"],
reactCompiler: {
compilationMode: "annotation",
},
Expand Down
1 change: 1 addition & 0 deletions apps/web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
"@react-google-maps/api": "^2.19.2",
"@sentry/nextjs": "^10.61.0",
"@solid-connect/ai-inspector": "workspace:^",
"@solid-connect/ui": "workspace:^",
"@stomp/stompjs": "^7.1.1",
"@tanstack/react-query": "^5.84.1",
"@tanstack/react-query-devtools": "^5.84.1",
Expand Down
Loading
Loading