Refactor some of the filenames, and random hallucination CSS

This commit is contained in:
2025-10-08 13:56:27 +01:00
parent ad8e552177
commit ef6f47582c
5 changed files with 140 additions and 198 deletions

View File

@@ -1,46 +1,3 @@
:root {
--background: #ffffff;
--foreground: #171717;
}
@media (prefers-color-scheme: dark) {
:root {
--background: #0a0a0a;
--foreground: #ededed;
}
}
html,
body {
max-width: 100vw;
overflow-x: hidden;
}
body {
color: var(--foreground);
background: var(--background);
font-family: Arial, Helvetica, sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
* {
box-sizing: border-box;
padding: 0;
margin: 0;
}
a {
color: inherit;
text-decoration: none;
}
@media (prefers-color-scheme: dark) {
html {
color-scheme: dark;
}
}
.footnote-ref {
cursor: pointer;
color: blue;

View File

@@ -1,19 +1,8 @@
import type { Metadata } from "next";
import { Geist, Geist_Mono } from "next/font/google";
import Link from 'next/link';
import "./globals.css";
import "bootstrap/dist/css/bootstrap.min.css";
const geistSans = Geist({
variable: "--font-geist-sans",
subsets: ["latin"],
});
const geistMono = Geist_Mono({
variable: "--font-geist-mono",
subsets: ["latin"],
});
export const metadata: Metadata = {
title: "Spectrum Next Registers",
description: "A platform for exploring the Spectrum Next registers",
@@ -26,7 +15,7 @@ export default function RootLayout({
}>) {
return (
<html lang="en">
<body className={`${geistSans.variable} ${geistMono.variable}`}>
<body>
<nav className="navbar navbar-expand-lg navbar-dark bg-dark sticky-top">
<div className="container-fluid">
<Link className="navbar-brand" href="/">Next Explorer</Link>

View File

@@ -1,167 +1,163 @@
.page {
--gray-rgb: 0, 0, 0;
--gray-alpha-200: rgba(var(--gray-rgb), 0.08);
--gray-alpha-100: rgba(var(--gray-rgb), 0.05);
/*.page {*/
/* --gray-rgb: 0, 0, 0;*/
/* --gray-alpha-200: rgba(var(--gray-rgb), 0.08);*/
/* --gray-alpha-100: rgba(var(--gray-rgb), 0.05);*/
--button-primary-hover: #383838;
--button-secondary-hover: #f2f2f2;
/* --button-primary-hover: #383838;*/
/* --button-secondary-hover: #f2f2f2;*/
display: grid;
grid-template-rows: 20px 1fr 20px;
align-items: center;
justify-items: center;
min-height: 100svh;
padding: 80px;
gap: 64px;
font-family: var(--font-geist-sans);
}
/* display: grid;*/
/* grid-template-rows: 20px 1fr 20px;*/
/* align-items: center;*/
/* justify-items: center;*/
/* min-height: 100svh;*/
/* padding: 80px;*/
/* gap: 64px;*/
/*}*/
@media (prefers-color-scheme: dark) {
.page {
--gray-rgb: 255, 255, 255;
--gray-alpha-200: rgba(var(--gray-rgb), 0.145);
--gray-alpha-100: rgba(var(--gray-rgb), 0.06);
/*@media (prefers-color-scheme: dark) {*/
/* .page {*/
/* --gray-rgb: 255, 255, 255;*/
/* --gray-alpha-200: rgba(var(--gray-rgb), 0.145);*/
/* --gray-alpha-100: rgba(var(--gray-rgb), 0.06);*/
--button-primary-hover: #ccc;
--button-secondary-hover: #1a1a1a;
}
}
/* --button-primary-hover: #ccc;*/
/* --button-secondary-hover: #1a1a1a;*/
/* }*/
/*}*/
.main {
display: flex;
flex-direction: column;
gap: 32px;
grid-row-start: 2;
}
/*.main {*/
/* display: flex;*/
/* flex-direction: column;*/
/* gap: 32px;*/
/* grid-row-start: 2;*/
/*}*/
.main ol {
font-family: var(--font-geist-mono);
padding-left: 0;
margin: 0;
font-size: 14px;
line-height: 24px;
letter-spacing: -0.01em;
list-style-position: inside;
}
/*.main ol {*/
/* padding-left: 0;*/
/* margin: 0;*/
/* font-size: 14px;*/
/* line-height: 24px;*/
/* letter-spacing: -0.01em;*/
/* list-style-position: inside;*/
/*}*/
.main li:not(:last-of-type) {
margin-bottom: 8px;
}
/*.main li:not(:last-of-type) {*/
/* margin-bottom: 8px;*/
/*}*/
.main code {
font-family: inherit;
background: var(--gray-alpha-100);
padding: 2px 4px;
border-radius: 4px;
font-weight: 600;
}
/*.main code {*/
/* font-family: inherit;*/
/* background: var(--gray-alpha-100);*/
/* padding: 2px 4px;*/
/* border-radius: 4px;*/
/* font-weight: 600;*/
/*}*/
.ctas {
display: flex;
gap: 16px;
}
/*.ctas {*/
/* display: flex;*/
/* gap: 16px;*/
/*}*/
.ctas a {
appearance: none;
border-radius: 128px;
height: 48px;
padding: 0 20px;
border: 1px solid transparent;
transition:
background 0.2s,
color 0.2s,
border-color 0.2s;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
font-size: 16px;
line-height: 20px;
font-weight: 500;
}
/*.ctas a {*/
/* appearance: none;*/
/* border-radius: 128px;*/
/* height: 48px;*/
/* padding: 0 20px;*/
/* border: 1px solid transparent;*/
/* transition:*/
/* background 0.2s,*/
/* color 0.2s,*/
/* border-color 0.2s;*/
/* cursor: pointer;*/
/* display: flex;*/
/* align-items: center;*/
/* justify-content: center;*/
/* font-size: 16px;*/
/* line-height: 20px;*/
/* font-weight: 500;*/
/*}*/
a.primary {
background: var(--foreground);
color: var(--background);
gap: 8px;
}
/*a.primary {*/
/* gap: 8px;*/
/*}*/
a.secondary {
border-color: var(--gray-alpha-200);
min-width: 158px;
}
/*a.secondary {*/
/* border-color: var(--gray-alpha-200);*/
/* min-width: 158px;*/
/*}*/
.footer {
grid-row-start: 3;
display: flex;
gap: 24px;
}
/*.footer {*/
/* grid-row-start: 3;*/
/* display: flex;*/
/* gap: 24px;*/
/*}*/
.footer a {
display: flex;
align-items: center;
gap: 8px;
}
/*.footer a {*/
/* display: flex;*/
/* align-items: center;*/
/* gap: 8px;*/
/*}*/
.footer img {
flex-shrink: 0;
}
/*.footer img {*/
/* flex-shrink: 0;*/
/*}*/
/* Enable hover only on non-touch devices */
@media (hover: hover) and (pointer: fine) {
a.primary:hover {
background: var(--button-primary-hover);
border-color: transparent;
}
/*!* Enable hover only on non-touch devices *!*/
/*@media (hover: hover) and (pointer: fine) {*/
/* a.primary:hover {*/
/* background: var(--button-primary-hover);*/
/* border-color: transparent;*/
/* }*/
a.secondary:hover {
background: var(--button-secondary-hover);
border-color: transparent;
}
/* a.secondary:hover {*/
/* background: var(--button-secondary-hover);*/
/* border-color: transparent;*/
/* }*/
.footer a:hover {
text-decoration: underline;
text-underline-offset: 4px;
}
}
/* .footer a:hover {*/
/* text-decoration: underline;*/
/* text-underline-offset: 4px;*/
/* }*/
/*}*/
@media (max-width: 600px) {
.page {
padding: 32px;
padding-bottom: 80px;
}
/*@media (max-width: 600px) {*/
/* .page {*/
/* padding: 32px;*/
/* padding-bottom: 80px;*/
/* }*/
.main {
align-items: center;
}
/* .main {*/
/* align-items: center;*/
/* }*/
.main ol {
text-align: center;
}
/* .main ol {*/
/* text-align: center;*/
/* }*/
.ctas {
flex-direction: column;
}
/* .ctas {*/
/* flex-direction: column;*/
/* }*/
.ctas a {
font-size: 14px;
height: 40px;
padding: 0 16px;
}
/* .ctas a {*/
/* font-size: 14px;*/
/* height: 40px;*/
/* padding: 0 16px;*/
/* }*/
a.secondary {
min-width: auto;
}
/* a.secondary {*/
/* min-width: auto;*/
/* }*/
.footer {
flex-wrap: wrap;
align-items: center;
justify-content: center;
}
}
/* .footer {*/
/* flex-wrap: wrap;*/
/* align-items: center;*/
/* justify-content: center;*/
/* }*/
/*}*/
@media (prefers-color-scheme: dark) {
.logo {
filter: invert();
}
}
/*@media (prefers-color-scheme: dark) {*/
/* .logo {*/
/* filter: invert();*/
/* }*/
/*}*/

View File

@@ -3,7 +3,7 @@ import path from 'path';
import { notFound } from 'next/navigation';
import Link from 'next/link';
import { Register, RegisterAccess } from '../../registers/types';
import RegisterDetail from '../RegisterDetail';
import RegisterDetail from '@/app/registers/RegisterDetail';
import {Container, Row} from "react-bootstrap";
async function parseNextReg(fileContent: string): Promise<Register[]> {

View File

@@ -1,6 +1,6 @@
import { promises as fs } from 'fs';
import path from 'path';
import RegisterBrowser from './RegisterBrowser';
import RegisterBrowser from '@/app/registers/RegisterBrowser';
import { Register, RegisterAccess } from './types';
/**