Упростил стиль hero-карточки
This commit is contained in:
parent
4a130bfda3
commit
fbb3b6c860
8 changed files with 17 additions and 46 deletions
16
src/app.css
16
src/app.css
|
|
@ -26,11 +26,15 @@
|
||||||
src: url('/fonts/Disket-Mono-Bold.ttf');
|
src: url('/fonts/Disket-Mono-Bold.ttf');
|
||||||
}
|
}
|
||||||
|
|
||||||
.no-x-scroll {
|
.hero {
|
||||||
max-width: 100%;
|
@apply bg-[url('/common/background-day.webp')] dark:bg-[url('/common/background-night.webp')] bg-cover bg-fixed text-slate-50;
|
||||||
overflow-x: hidden;
|
text-shadow: 0 0 15px rgba(0, 0, 0, 0.25);
|
||||||
}
|
|
||||||
|
|
||||||
.hero-background {
|
h1 {
|
||||||
@apply bg-[url('/common/background-day.webp')] dark:bg-[url('/common/background-night.webp')] bg-cover bg-fixed;
|
@apply font-disket text-4xl font-bold sm:text-6xl md:text-8xl;
|
||||||
|
}
|
||||||
|
|
||||||
|
h2 {
|
||||||
|
@apply font-sans text-xl font-bold sm:text-2xl md:text-4xl;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -7,7 +7,7 @@
|
||||||
</svelte:head>
|
</svelte:head>
|
||||||
|
|
||||||
<section
|
<section
|
||||||
class="hero-background flex h-screen shrink-0 flex-col items-center justify-center gap-12 overflow-hidden p-4"
|
class="hero flex h-screen shrink-0 flex-col items-center justify-center gap-12 overflow-hidden p-4"
|
||||||
>
|
>
|
||||||
<div class="flex flex-nowrap flex-col gap-5">
|
<div class="flex flex-nowrap flex-col gap-5">
|
||||||
<div class="flex flex-nowrap flex-col gap-3 items-center justify-center lg:flex-row lg:flex-nowrap">
|
<div class="flex flex-nowrap flex-col gap-3 items-center justify-center lg:flex-row lg:flex-nowrap">
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,7 @@
|
||||||
</svelte:head>
|
</svelte:head>
|
||||||
|
|
||||||
<section
|
<section
|
||||||
class="flex shrink-0 flex-col items-center justify-center gap-5 overflow-hidden p-4 hero-background"
|
class="flex shrink-0 flex-col items-center justify-center gap-5 overflow-hidden p-4 hero"
|
||||||
>
|
>
|
||||||
<div
|
<div
|
||||||
class="flex flex-col flex-nowrap items-center justify-center gap-3 lg:flex-row lg:flex-nowrap"
|
class="flex flex-col flex-nowrap items-center justify-center gap-3 lg:flex-row lg:flex-nowrap"
|
||||||
|
|
@ -58,7 +58,7 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div
|
<div
|
||||||
class="font-disket text-center text-4xl font-bold text-slate-50 [text-shadow:_0_0_15px_rgba(0,0,0,0.25)] sm:text-6xl md:text-8xl lg:text-left"
|
class="text-center font-bold lg:text-left"
|
||||||
>
|
>
|
||||||
<h1>TEA</h1>
|
<h1>TEA</h1>
|
||||||
<h1>SANCTUARY</h1>
|
<h1>SANCTUARY</h1>
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<section
|
<section
|
||||||
class="flex shrink-0 flex-col items-center justify-center gap-5 overflow-hidden p-4 hero-background"
|
class="flex shrink-0 flex-col items-center justify-center gap-5 overflow-hidden p-4 hero"
|
||||||
>
|
>
|
||||||
<div
|
<div
|
||||||
class="flex flex-col flex-nowrap items-center justify-center gap-3 lg:flex-row lg:flex-nowrap"
|
class="flex flex-col flex-nowrap items-center justify-center gap-3 lg:flex-row lg:flex-nowrap"
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<section
|
<section
|
||||||
class="flex shrink-0 flex-col items-center justify-center gap-5 overflow-hidden p-4 hero-background"
|
class="flex shrink-0 flex-col items-center justify-center gap-5 overflow-hidden p-4 hero"
|
||||||
>
|
>
|
||||||
<div
|
<div
|
||||||
class="flex flex-col flex-nowrap items-center justify-center gap-3 lg:flex-row lg:flex-nowrap"
|
class="flex flex-col flex-nowrap items-center justify-center gap-3 lg:flex-row lg:flex-nowrap"
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<section
|
<section
|
||||||
class="flex shrink-0 flex-col items-center justify-center gap-5 overflow-hidden p-4 hero-background"
|
class="flex shrink-0 flex-col items-center justify-center gap-5 overflow-hidden p-4 hero"
|
||||||
>
|
>
|
||||||
<div
|
<div
|
||||||
class="flex flex-col flex-nowrap items-center justify-center gap-3 lg:flex-row lg:flex-nowrap"
|
class="flex flex-col flex-nowrap items-center justify-center gap-3 lg:flex-row lg:flex-nowrap"
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<section
|
<section
|
||||||
class="flex shrink-0 flex-col items-center justify-center gap-5 overflow-hidden p-4 hero-background"
|
class="flex shrink-0 flex-col items-center justify-center gap-5 overflow-hidden p-4 hero"
|
||||||
>
|
>
|
||||||
<div
|
<div
|
||||||
class="flex flex-col flex-nowrap items-center justify-center gap-3 lg:flex-row lg:flex-nowrap"
|
class="flex flex-col flex-nowrap items-center justify-center gap-3 lg:flex-row lg:flex-nowrap"
|
||||||
|
|
|
||||||
|
|
@ -1,45 +1,12 @@
|
||||||
import plugin from 'tailwindcss/plugin';
|
|
||||||
|
|
||||||
/** @type {import('tailwindcss').Config} */
|
/** @type {import('tailwindcss').Config} */
|
||||||
export default {
|
export default {
|
||||||
content: ['./src/**/*.{html,js,svelte,ts}'],
|
content: ['./src/**/*.{html,js,svelte,ts}'],
|
||||||
theme: {
|
theme: {
|
||||||
// colors: {
|
|
||||||
// white: '#FFFFFF',
|
|
||||||
// transparentblue: '#2447f779',
|
|
||||||
// blue: '#2446f7',
|
|
||||||
// black: '#000000',
|
|
||||||
// transparentblack1: '#000000BB',
|
|
||||||
// transparentblack0: '#00000011',
|
|
||||||
// darkblue: '#091856',
|
|
||||||
// navyblue: '#0f2898',
|
|
||||||
// gray: '#e2e2e2',
|
|
||||||
// lightblue: '#0092ff',
|
|
||||||
// transparent: 'transparent'
|
|
||||||
// },
|
|
||||||
extend: {
|
extend: {
|
||||||
fontFamily: {
|
fontFamily: {
|
||||||
sans: ['Lineyka', 'sans-serif'],
|
sans: ['Lineyka', 'sans-serif'],
|
||||||
disket: ['Disket Mono', 'monospace'],
|
disket: ['Disket Mono', 'monospace'],
|
||||||
},
|
},
|
||||||
// height: {
|
|
||||||
// // 64 px for navbar
|
|
||||||
// screen: 'calc(100vh - 64px)'
|
|
||||||
// },
|
|
||||||
// dropShadow: {
|
|
||||||
// md: '0px 0px 2px #091856',
|
|
||||||
// hover: '0px 6px 2px #091856'
|
|
||||||
// },
|
|
||||||
// backgroundImage: {
|
|
||||||
// pixel: "url('/common/pixel-overlay.png')",
|
|
||||||
// 'pixel-dark': "url('/common/pixel-overlay-dark.png')",
|
|
||||||
// 'pixel-white': "url('/common/pixel-overlay-white.png')",
|
|
||||||
// 'pixel-large': "url('/common/pixel-overlay-large.png')"
|
|
||||||
// },
|
|
||||||
// backgroundSize: {
|
|
||||||
// pixel: '7px',
|
|
||||||
// 'pixel-lg': '14px'
|
|
||||||
// },
|
|
||||||
typography: {
|
typography: {
|
||||||
DEFAULT: {
|
DEFAULT: {
|
||||||
css: {
|
css: {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue