+ );
+}
diff --git a/src/app/airstrip_one/0/ministry_of_truth/components/Input.tsx b/src/app/airstrip_one/0/ministry_of_truth/components/Input.tsx
index c36f302..6317a1a 100644
--- a/src/app/airstrip_one/0/ministry_of_truth/components/Input.tsx
+++ b/src/app/airstrip_one/0/ministry_of_truth/components/Input.tsx
@@ -1,6 +1,6 @@
'use client'
-import { useLayoutEffect, useRef } from 'react';
+import { useRef, useEffect, useLayoutEffect } from 'react';
import { useSearchParams } from 'next/navigation';
import comic_sans from '../../../../comic.ts';
@@ -25,6 +25,19 @@ export default function Input() {
?? 'At the apex of the pyramid comes Big Brother. Big Brother is infallible and all-powerful. Every success, every achievement, every victory, every scientific discovery, all knowledge, all wisdom, all happiness, all virtue, are held to issue directly from his leadership and inspiration.'
);
+ useEffect(() => {
+ function resize_handler() {
+ input_ref.current!.style.height = "";
+ input_ref.current!.style.height = `${input_ref.current!.scrollHeight}px`;
+ }
+
+ window.addEventListener("resize", resize_handler);
+
+ return () => {
+ window.removeEventListener("resize", resize_handler);
+ };
+ });
+
useLayoutEffect(() => {
set_message(message);
});
diff --git a/src/app/airstrip_one/0/ministry_of_truth/layout.tsx b/src/app/airstrip_one/0/ministry_of_truth/layout.tsx
index 1945c94..a9ebaa3 100644
--- a/src/app/airstrip_one/0/ministry_of_truth/layout.tsx
+++ b/src/app/airstrip_one/0/ministry_of_truth/layout.tsx
@@ -1,10 +1,10 @@
-import { Metadata } from 'next'
-
-export const metadata: Metadata = {
- title: 'The Ministry of Truth',
- description: 'The Ministry of Truth',
-}
-
-export default function Layout({ children }: { children: React.ReactNode }) {
- return <>{children}>
+import { Metadata } from 'next'
+
+export const metadata: Metadata = {
+ title: 'The Ministry of Truth',
+ description: 'The Ministry of Truth',
+}
+
+export default function Layout({ children }: { children: React.ReactNode }) {
+ return <>{children}>
}
\ No newline at end of file
diff --git a/src/app/airstrip_one/0/ministry_of_truth/page.css.ts b/src/app/airstrip_one/0/ministry_of_truth/page.css.ts
index d949bc2..7f10168 100644
--- a/src/app/airstrip_one/0/ministry_of_truth/page.css.ts
+++ b/src/app/airstrip_one/0/ministry_of_truth/page.css.ts
@@ -1,29 +1,13 @@
-import { keyframes, style } from "@vanilla-extract/css";
-
-export const center_vertical = style({
- boxSizing: 'border-box',
- position: 'relative',
- display: 'flex',
- flexDirection: 'column',
- alignItems: 'center',
- margin: 'auto',
- width: '100%',
- border: '0.3em solid purple',
- '@media': {
- 'screen and (min-width: 768px)': {
- width: '50%',
- }
- }
-});
-
-export const border = style({
- width: '61%',
- marginBottom: '4em',
- border: '0.3em solid purple',
-});
-
-export const big_brother_style = style({
- display: 'block',
- width: '100%',
- height: 'auto',
-});
+import { keyframes, style } from "@vanilla-extract/css";
+
+export const border = style({
+ width: '61%',
+ marginBottom: '4em',
+ border: '0.3em solid purple',
+});
+
+export const big_brother_style = style({
+ display: 'block',
+ width: '100%',
+ height: 'auto',
+});
diff --git a/src/app/airstrip_one/0/ministry_of_truth/page.tsx b/src/app/airstrip_one/0/ministry_of_truth/page.tsx
index 0a86ba5..f797f7b 100644
--- a/src/app/airstrip_one/0/ministry_of_truth/page.tsx
+++ b/src/app/airstrip_one/0/ministry_of_truth/page.tsx
@@ -1,26 +1,17 @@
-import React from 'react';
-import Image from 'next/image';
-import BeegText from '../components/BeegText';
-import Marquee from '../components/Marquee';
-import Input from './components/Input';
-import {
- center_vertical,
- border,
- big_brother_style,
-} from './page.css';
-
-export default function Home() {
- return (
-
-
- THE MINISTRY OF TRUTH
-
-
-
-
-
-
-
-
- );
-}
+import React from 'react';
+import Image from 'next/image';
+import BeegText from '../components/BeegText';
+import Input from './components/Input';
+import * as style from './page.css';
+
+export default function Home() {
+ return <>
+ THE MINISTRY OF TRUTH
+