aboutsummaryrefslogtreecommitdiffstats
path: root/src/app/about
diff options
context:
space:
mode:
authorPinapelz <yukais@pinapelz.com>2026-04-15 23:45:04 -0700
committerPinapelz <yukais@pinapelz.com>2026-04-15 23:45:04 -0700
commit30d2ca8480caea1ce76cc1ec29d454e3a669c638 (patch)
treecf4e846151601d568d12f2ec7b1f4c003282325e /src/app/about
parent6b168927b8995d428d243052e93713a2ab86cff9 (diff)
refactor: move styled components to their own style.ts file
Diffstat (limited to 'src/app/about')
-rw-r--r--src/app/about/page.styles.ts61
-rw-r--r--src/app/about/page.tsx62
2 files changed, 62 insertions, 61 deletions
diff --git a/src/app/about/page.styles.ts b/src/app/about/page.styles.ts
new file mode 100644
index 0000000..06d0cd3
--- /dev/null
+++ b/src/app/about/page.styles.ts
@@ -0,0 +1,61 @@
+import styled, { createGlobalStyle } from "styled-components";
+
+export const GlobalStyle = createGlobalStyle`
+ body {
+ font-family: 'Roboto', sans-serif;
+ }
+`;
+
+export const Container = styled.div`
+ display: flex;
+ flex-direction: column;
+ align-items: left;
+ padding: 20px;
+ background-color: #f9f9f9;
+ color: #333;
+`;
+
+export const Title = styled.h1`
+ font-size: 2.5em;
+ margin-bottom: 0.5em;
+ font-weight: 700;
+`;
+
+export const Subtitle = styled.h2`
+ font-size: 1.5em;
+ margin-bottom: 1em;
+ font-weight: 600;
+`;
+
+export const Paragraph = styled.p`
+ font-size: 1.2em;
+ line-height: 1.6;
+ margin-bottom: 2em;
+ text-align: left;
+ font-weight: 450;
+`;
+
+export const Preformatted = styled.pre`
+ font-size: 1em;
+ background-color: #eaeaea;
+ padding: 10px;
+ border-radius: 5px;
+ white-space: pre-wrap;
+ word-wrap: break-word;
+`;
+
+export const BackLink = styled.a`
+ font-size: 1em;
+ color: #007bff;
+ text-decoration: none;
+ &:hover {
+ text-decoration: underline;
+ }
+`;
+
+export const Video = styled.video`
+ width: 100%;
+ max-width: 600px;
+ margin: 20px 0;
+ border-radius: 10px;
+`;
diff --git a/src/app/about/page.tsx b/src/app/about/page.tsx
index e75c6f8..ba24f53 100644
--- a/src/app/about/page.tsx
+++ b/src/app/about/page.tsx
@@ -1,66 +1,6 @@
"use client";
import React from "react";
-import styled, { createGlobalStyle } from "styled-components";
-
-const GlobalStyle = createGlobalStyle`
- body {
- font-family: 'Roboto', sans-serif;
- }
-`;
-
-const Container = styled.div`
- display: flex;
- flex-direction: column;
- align-items: left;
- padding: 20px;
- background-color: #f9f9f9;
- color: #333;
-`;
-
-const Title = styled.h1`
- font-size: 2.5em;
- margin-bottom: 0.5em;
- font-weight: 700;
-`;
-
-const Subtitle = styled.h2`
- font-size: 1.5em;
- margin-bottom: 1em;
- font-weight: 600;
-`;
-
-const Paragraph = styled.p`
- font-size: 1.2em;
- line-height: 1.6;
- margin-bottom: 2em;
- text-align: left;
- font-weight: 450;
-`;
-
-const Preformatted = styled.pre`
- font-size: 1em;
- background-color: #eaeaea;
- padding: 10px;
- border-radius: 5px;
- white-space: pre-wrap;
- word-wrap: break-word;
-`;
-
-const BackLink = styled.a`
- font-size: 1em;
- color: #007bff;
- text-decoration: none;
- &:hover {
- text-decoration: underline;
- }
-`;
-
-const Video = styled.video`
- width: 100%;
- max-width: 600px;
- margin: 20px 0;
- border-radius: 10px;
-`;
+import { GlobalStyle, Container, Title, Subtitle, Paragraph, Preformatted, BackLink, Video } from "./page.styles";
const lyrics = `[ti:CRUSH]
[al:CRUSH]
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage