do some shit

This commit is contained in:
Nyx 2025-04-06 02:20:27 -05:00
parent 999360a642
commit 0a272dce5b
3 changed files with 119 additions and 39 deletions

View file

@ -4,7 +4,7 @@ app = Flask(__name__)
@app.route('/') @app.route('/')
def home(): def home():
return render_template('index.j2') return render_template('index.j2', server="everypizza.im dictd 1.13.3/rf on Linux 6.13.7-arch1-1")
@app.route('/style.css') @app.route('/style.css')
def style(): def style():

View file

@ -28,6 +28,7 @@
--color-black: #000; --color-black: #000;
--color-white: #fff; --color-white: #fff;
--spacing: 0.25rem; --spacing: 0.25rem;
--breakpoint-xl: 80rem;
--container-sm: 24rem; --container-sm: 24rem;
--text-sm: 0.875rem; --text-sm: 0.875rem;
--text-sm--line-height: calc(1.25 / 0.875); --text-sm--line-height: calc(1.25 / 0.875);
@ -232,6 +233,9 @@
.row-start-1 { .row-start-1 {
grid-row-start: 1; grid-row-start: 1;
} }
.m-4 {
margin: calc(var(--spacing) * 4);
}
.mx-auto { .mx-auto {
margin-inline: auto; margin-inline: auto;
} }
@ -241,9 +245,15 @@
.me-2 { .me-2 {
margin-inline-end: calc(var(--spacing) * 2); margin-inline-end: calc(var(--spacing) * 2);
} }
.me-4 {
margin-inline-end: calc(var(--spacing) * 4);
}
.mt-2 { .mt-2 {
margin-top: calc(var(--spacing) * 2); margin-top: calc(var(--spacing) * 2);
} }
.mt-3 {
margin-top: calc(var(--spacing) * 3);
}
.mr-2 { .mr-2 {
margin-right: calc(var(--spacing) * 2); margin-right: calc(var(--spacing) * 2);
} }
@ -287,6 +297,9 @@
.w-full { .w-full {
width: 100%; width: 100%;
} }
.max-w-screen-xl {
max-width: var(--breakpoint-xl);
}
.max-w-sm { .max-w-sm {
max-width: var(--container-sm); max-width: var(--container-sm);
} }
@ -317,6 +330,9 @@
.grid-cols-1 { .grid-cols-1 {
grid-template-columns: repeat(1, minmax(0, 1fr)); grid-template-columns: repeat(1, minmax(0, 1fr));
} }
.flex-wrap {
flex-wrap: wrap;
}
.place-content-center { .place-content-center {
place-content: center; place-content: center;
} }
@ -394,6 +410,9 @@
.p-2\.5 { .p-2\.5 {
padding: calc(var(--spacing) * 2.5); padding: calc(var(--spacing) * 2.5);
} }
.p-4 {
padding: calc(var(--spacing) * 4);
}
.px-2 { .px-2 {
padding-inline: calc(var(--spacing) * 2); padding-inline: calc(var(--spacing) * 2);
} }
@ -473,6 +492,10 @@
.underline { .underline {
text-decoration-line: underline; text-decoration-line: underline;
} }
.shadow-sm {
--tw-shadow: 0 1px 3px 0 var(--tw-shadow-color, rgb(0 0 0 / 0.1)), 0 1px 2px -1px var(--tw-shadow-color, rgb(0 0 0 / 0.1));
box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
}
.outline { .outline {
outline-style: var(--tw-outline-style); outline-style: var(--tw-outline-style);
outline-width: 1px; outline-width: 1px;
@ -522,6 +545,13 @@
} }
} }
} }
.hover\:underline {
&:hover {
@media (hover: hover) {
text-decoration-line: underline;
}
}
}
.focus\:z-10 { .focus\:z-10 {
&:focus { &:focus {
z-index: 10; z-index: 10;
@ -591,12 +621,22 @@
outline-color: var(--color-indigo-600); outline-color: var(--color-indigo-600);
} }
} }
.sm\:mt-0 {
@media (width >= 40rem) {
margin-top: calc(var(--spacing) * 0);
}
}
.sm\:size-4 { .sm\:size-4 {
@media (width >= 40rem) { @media (width >= 40rem) {
width: calc(var(--spacing) * 4); width: calc(var(--spacing) * 4);
height: calc(var(--spacing) * 4); height: calc(var(--spacing) * 4);
} }
} }
.sm\:text-center {
@media (width >= 40rem) {
text-align: center;
}
}
.sm\:text-5xl { .sm\:text-5xl {
@media (width >= 40rem) { @media (width >= 40rem) {
font-size: var(--text-5xl); font-size: var(--text-5xl);
@ -609,6 +649,26 @@
line-height: calc(var(--spacing) * 6); line-height: calc(var(--spacing) * 6);
} }
} }
.md\:me-6 {
@media (width >= 48rem) {
margin-inline-end: calc(var(--spacing) * 6);
}
}
.md\:flex {
@media (width >= 48rem) {
display: flex;
}
}
.md\:items-center {
@media (width >= 48rem) {
align-items: center;
}
}
.md\:justify-between {
@media (width >= 48rem) {
justify-content: space-between;
}
}
.lg\:text-6xl { .lg\:text-6xl {
@media (width >= 64rem) { @media (width >= 64rem) {
font-size: var(--text-6xl); font-size: var(--text-6xl);
@ -777,11 +837,6 @@
syntax: "*"; syntax: "*";
inherits: false; inherits: false;
} }
@property --tw-outline-style {
syntax: "*";
inherits: false;
initial-value: solid;
}
@property --tw-shadow { @property --tw-shadow {
syntax: "*"; syntax: "*";
inherits: false; inherits: false;
@ -847,6 +902,11 @@
inherits: false; inherits: false;
initial-value: 0 0 #0000; initial-value: 0 0 #0000;
} }
@property --tw-outline-style {
syntax: "*";
inherits: false;
initial-value: solid;
}
@layer properties { @layer properties {
@supports ((-webkit-hyphens: none) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))) { @supports ((-webkit-hyphens: none) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))) {
*, ::before, ::after, ::backdrop { *, ::before, ::after, ::backdrop {
@ -862,7 +922,6 @@
--tw-gradient-to-position: 100%; --tw-gradient-to-position: 100%;
--tw-font-weight: initial; --tw-font-weight: initial;
--tw-tracking: initial; --tw-tracking: initial;
--tw-outline-style: solid;
--tw-shadow: 0 0 #0000; --tw-shadow: 0 0 #0000;
--tw-shadow-color: initial; --tw-shadow-color: initial;
--tw-shadow-alpha: 100%; --tw-shadow-alpha: 100%;
@ -877,6 +936,7 @@
--tw-ring-offset-width: 0px; --tw-ring-offset-width: 0px;
--tw-ring-offset-color: #fff; --tw-ring-offset-color: #fff;
--tw-ring-offset-shadow: 0 0 #0000; --tw-ring-offset-shadow: 0 0 #0000;
--tw-outline-style: solid;
} }
} }
} }

View file

@ -9,9 +9,9 @@
</head> </head>
<body> <body>
<div class="bg-white dark:bg-gray-950 place-content-center content-center justify-center place-items-center min-h-screen"> <div
<span class="bg-white dark:bg-gray-950 place-content-center content-center justify-center place-items-center min-h-screen">
class="text-4xl dark:text-white"> <span class="text-4xl dark:text-white">
WebDICT WebDICT
<br /> <br />
</span> </span>
@ -46,6 +46,26 @@
<button type="button" <button type="button"
class="text-gray-900 bg-white border border-gray-300 focus:outline-none hover:bg-gray-100 focus:ring-4 focus:ring-gray-100 font-medium rounded-lg text-sm px-5 py-2.5 me-2 mb-2 dark:bg-gray-800 dark:text-white dark:border-gray-600 dark:hover:bg-gray-700 dark:hover:border-gray-600 dark:focus:ring-gray-700">About</button> class="text-gray-900 bg-white border border-gray-300 focus:outline-none hover:bg-gray-100 focus:ring-4 focus:ring-gray-100 font-medium rounded-lg text-sm px-5 py-2.5 me-2 mb-2 dark:bg-gray-800 dark:text-white dark:border-gray-600 dark:hover:bg-gray-700 dark:hover:border-gray-600 dark:focus:ring-gray-700">About</button>
</a> </a>
<footer class="bg-white rounded-lg shadow-sm m-4 dark:bg-gray-800">
<div class="w-full mx-auto max-w-screen-xl p-4 md:flex md:items-center md:justify-between">
<span class="text-sm text-gray-500 sm:text-center dark:text-gray-400">Made with love by <a
href="https://everypizza.im/" class="hover:underline">everypizza.im</a>. This is a free program,
with no warranty. It's licensed under the Unlicese. <br />
</span>
<ul
class="flex flex-wrap items-center mt-3 text-sm font-medium text-gray-500 dark:text-gray-400 sm:mt-0">
<li>
<a href="https://git.everypizza.im/n/webdict" class="hover:underline me-4 md:me-6">Code</a>
</li>
<li>
Server: {{ server }}
</li>
</ul>
</div>
</footer>
</div> </div>
</body> </body>