Reorganising

This commit is contained in:
Gnarwhal 2024-09-19 05:34:28 +01:00
parent 0b544fc507
commit 24dab2d928
Signed by: Gnarwhal
GPG key ID: 80DB5B37E4C96776
13 changed files with 12 additions and 6 deletions

View file

@ -1,6 +1,6 @@
import { style } from '@vanilla-extract/css'; import { style } from '@vanilla-extract/css';
import * as colors from '../colors.css'; import * as colors from '../../colors.css';
export const download_tty = style({ export const download_tty = style({
display: 'block', display: 'block',

View file

@ -1,6 +1,6 @@
import { style } from '@vanilla-extract/css' import { style } from '@vanilla-extract/css'
import * as colors from '../../colors.css' import * as colors from '../../../colors.css'
export const group = style({ export const group = style({
display: 'flex', display: 'flex',
@ -9,7 +9,6 @@ export const group = style({
lineHeight: '1.4em', lineHeight: '1.4em',
whiteSpace: 'pre', whiteSpace: 'pre',
tabSize: 4, tabSize: 4,
overflowX: 'scroll',
'@media': { '@media': {
'screen and (min-width: 768px)': { 'screen and (min-width: 768px)': {
fontSize: '1.1em', fontSize: '1.1em',

View file

@ -107,3 +107,7 @@ export const download_tty_group = style({
}, },
}); });
export const wrapper = style({
overflowX: 'scroll',
paddingBottom: '1em',
});

View file

@ -1,8 +1,8 @@
import type { Metadata } from 'next'; import type { Metadata } from 'next';
import Image from 'next/image'; import Image from 'next/image';
import DownloadTTY from './download_tty'; import DownloadTTY from './components/download_tty';
import Content from './content'; import Content from './components/content';
import * as style from './page.css'; import * as style from './page.css';
import download_image_dark from './download_dark.svg'; import download_image_dark from './download_dark.svg';
import download_image_light from './download_light.svg'; import download_image_light from './download_light.svg';
@ -68,7 +68,10 @@ export default async function Page({
<div className={style.download_tty_group}> <div className={style.download_tty_group}>
{download_ttys.map((text, index) => <DownloadTTY key={index} text={text} />)} {download_ttys.map((text, index) => <DownloadTTY key={index} text={text} />)}
</div> </div>
<Content src={`${root}${path}`} />
<div className={style.wrapper}>
<Content src={`${root}${path}`} />
</div>
</div> </div>
</div> </div>
); );