Skip to content

Commit 45296e2

Browse files
committed
Fix build
1 parent ccd60aa commit 45296e2

File tree

8 files changed

+105
-222
lines changed

8 files changed

+105
-222
lines changed

next.config.mjs

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,6 @@ const nextConfig = {
1515
},
1616
]
1717
},
18-
serverRuntimeConfig: {
19-
backendHost: process.env.NEXT_PUBLIC_BACKEND_HOST || 'localhost',
20-
backendPort: process.env.NEXT_PUBLIC_BACKEND_PORT || '8000',
21-
},
22-
publicRuntimeConfig: {
23-
backendHost: process.env.NEXT_PUBLIC_BACKEND_HOST || 'localhost',
24-
backendPort: process.env.NEXT_PUBLIC_BACKEND_PORT || '8000',
25-
},
2618
}
2719

2820
// Handle rewrites differently for static export

package-lock.json

Lines changed: 11 additions & 19 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
"version": "0.1.0",
44
"private": true,
55
"scripts": {
6-
"dev": "next dev",
7-
"dev-https": "next dev --experimental-https",
6+
"dev": "TURBOPACK=0 next dev",
7+
"dev-https": "TURBOPACK=0 next dev --experimental-https",
88
"build": "next build",
99
"start": "next start",
1010
"lint": "next lint"
@@ -21,6 +21,7 @@
2121
"html-react-parser": "^5.1.16",
2222
"lodash": "^4.17.21",
2323
"next": "^16.1.1",
24+
"next-themes": "^0.4.6",
2425
"react": "^19",
2526
"react-dom": "^19",
2627
"react-icons": "^5.5.0"

src/app/about/page.tsx

Lines changed: 24 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,55 +1,44 @@
11
'use client';
22

33
import React, { memo } from 'react';
4-
import { Box, Container, Flex, Heading, Text, Image, VStack, Link } from '@chakra-ui/react';
5-
import NextLink from 'next/link';
64
import Header from '../components/header';
75

86
const basePath = process.env.NEXT_PUBLIC_BASE_PATH || '';
97

108
const About: React.FC = () => {
119
return (
12-
<Box minHeight="100vh">
10+
<div className="min-h-screen">
1311
<Header />
14-
<Box
15-
bgGradient="linear(to-r, brand.magenta, brand.cobalt)"
16-
position="relative"
17-
overflow="hidden"
18-
minHeight="calc(100vh - 80px)"
19-
pt={{ base: "80px", md: "100px" }}
12+
<div
13+
className="relative overflow-hidden min-h-[calc(100vh-80px)] pt-20 md:pt-[100px]"
14+
style={{
15+
background: 'linear-gradient(to right, #EB088A, #313CFF)'
16+
}}
2017
>
21-
<Container maxW="1200px" position="relative" zIndex={1}>
22-
<VStack gap={8} alignItems="center" color="white" textAlign="center">
23-
<Heading as="h1" size="2xl" fontFamily="'Karbon', 'Open Sans', sans-serif" fontWeight="semibold">About the template</Heading>
24-
<Text fontSize="xl" maxW="800px" fontFamily="'Open Sans', sans-serif">
25-
This template is a starting point for building a website with Next.js and Chakra UI, following the Vector Institute brand guidelines.
26-
</Text>
27-
<Flex gap={8} alignItems="center" flexWrap="wrap" justifyContent="center">
18+
<div className="max-w-[1200px] mx-auto px-4 relative z-10 py-12">
19+
<div className="flex flex-col gap-8 items-center text-white text-center">
20+
<h1 className="text-4xl font-semibold font-['Karbon','Open_Sans',sans-serif]">
21+
About the template
22+
</h1>
23+
<p className="text-xl max-w-[800px] font-['Open_Sans',sans-serif]">
24+
This template is a starting point for building a website with Next.js and Tailwind CSS, following the Vector Institute brand guidelines.
25+
</p>
26+
<div className="flex gap-8 items-center flex-wrap justify-center">
2827
<a href="https://vectorinstitute.ai" target="_blank" rel="noopener noreferrer">
29-
<Image
28+
<img
3029
src={`${basePath}/images/vector-logo.png`}
3130
alt="Vector Institute"
32-
width={150}
33-
height={40}
34-
objectFit="contain"
31+
className="w-[150px] h-10 object-contain"
3532
/>
3633
</a>
37-
</Flex>
38-
</VStack>
39-
</Container>
40-
<Box
41-
position="absolute"
42-
top={{ base: "60%", md: "40%" }}
43-
right={{ base: "-20%", md: "-5%" }}
44-
width={{ base: "120%", md: "70%" }}
45-
height={{ base: "100%", md: "140%" }}
46-
bg="white"
47-
borderTopLeftRadius={{ base: "30%", md: "50%" }}
48-
transform={{ base: "rotate(-5deg)", md: "rotate(-10deg)" }}
49-
boxShadow="0 -4px 30px rgba(0, 0, 0, 0.1)"
34+
</div>
35+
</div>
36+
</div>
37+
<div
38+
className="absolute top-[60%] md:top-[40%] -right-[20%] md:-right-[5%] w-[120%] md:w-[70%] h-full md:h-[140%] bg-white rounded-tl-[30%] md:rounded-tl-[50%] rotate-[-5deg] md:rotate-[-10deg] shadow-[0_-4px_30px_rgba(0,0,0,0.1)]"
5039
/>
51-
</Box>
52-
</Box>
40+
</div>
41+
</div>
5342
);
5443
}
5544

0 commit comments

Comments
 (0)