This commit is contained in:
Patrick Alvin Alcala 2026-03-18 14:35:03 +08:00
parent fa67b238af
commit e4ca8f8ebd
3 changed files with 22 additions and 10 deletions

View file

@ -1,13 +1,23 @@
import type { JSXElement } from 'solid-js' import type { JSXElement } from "solid-js";
import "../styles/Padding.sass";
interface Props { interface Props {
left: number left: number;
right: number right: number;
top: number top: number;
bottom: number bottom: number;
children: JSXElement children: JSXElement;
} }
export default (props: Props) => { export default (props: Props) => {
return <div style={{ padding: `${props.top || 0}rem ${props.right}rem ${props.bottom || 0}rem ${props.left}rem` }}>{props.children}</div> return (
} <div
class="dasig-padding"
style={{
padding: `${props.top || 0}rem ${props.right}rem ${props.bottom || 0}rem ${props.left}rem`,
}}
>
{props.children}
</div>
);
};

View file

@ -0,0 +1,2 @@
.dasig-padding
width: 100%

View file

@ -1,4 +1,4 @@
FROM node:22-alpine AS build FROM node:24.14-alpine AS build
WORKDIR /app WORKDIR /app
COPY package*.json ./ COPY package*.json ./
RUN corepack enable RUN corepack enable
@ -6,7 +6,7 @@ RUN pnpm install
COPY . . COPY . .
RUN pnpm build RUN pnpm build
FROM nginx:alpine AS runtime FROM nginx:stable-alpine AS runtime
COPY ./.deployment/nginx/nginx.conf /etc/nginx/nginx.conf COPY ./.deployment/nginx/nginx.conf /etc/nginx/nginx.conf
COPY --from=build /app/.output/public /usr/share/nginx/html COPY --from=build /app/.output/public /usr/share/nginx/html
EXPOSE 8080 EXPOSE 8080