init landing page template

This commit is contained in:
Pavel Sviderski
2025-01-10 12:39:21 +10:00
parent 2a898b3eee
commit 18ec186e81
9 changed files with 6349 additions and 0 deletions
+46
View File
@@ -0,0 +1,46 @@
.form-input:focus,
.form-textarea:focus,
.form-multiselect:focus,
.form-select:focus,
.form-checkbox:focus,
.form-radio:focus {
@apply ring-0;
}
/* Hamburger button */
.hamburger svg>*:nth-child(1),
.hamburger svg>*:nth-child(2),
.hamburger svg>*:nth-child(3) {
transform-origin: center;
transform: rotate(0deg);
}
.hamburger svg>*:nth-child(1) {
transition: y 0.1s 0.25s ease-in, transform 0.22s cubic-bezier(0.55, 0.055, 0.675, 0.19), opacity 0.1s ease-in;
}
.hamburger svg>*:nth-child(2) {
transition: transform 0.22s cubic-bezier(0.55, 0.055, 0.675, 0.19);
}
.hamburger svg>*:nth-child(3) {
transition: y 0.1s 0.25s ease-in, transform 0.22s cubic-bezier(0.55, 0.055, 0.675, 0.19), width 0.1s 0.25s ease-in;
}
.hamburger.active svg>*:nth-child(1) {
opacity: 0;
y: 11;
transform: rotate(225deg);
transition: y 0.1s ease-out, transform 0.22s 0.12s cubic-bezier(0.215, 0.61, 0.355, 1), opacity 0.1s 0.12s ease-out;
}
.hamburger.active svg>*:nth-child(2) {
transform: rotate(225deg);
transition: transform 0.22s 0.12s cubic-bezier(0.215, 0.61, 0.355, 1);
}
.hamburger.active svg>*:nth-child(3) {
y: 11;
transform: rotate(135deg);
transition: y 0.1s ease-out, transform 0.22s 0.12s cubic-bezier(0.215, 0.61, 0.355, 1), width 0.1s ease-out;
}
@@ -0,0 +1,106 @@
/* Typography */
.h1 {
@apply text-5xl font-bold;
}
.h2 {
@apply text-4xl font-bold;
}
.h3 {
@apply text-3xl font-bold;
}
.h4 {
@apply text-2xl font-bold;
}
@screen md {
.h1 {
@apply text-6xl;
}
.h2 {
@apply text-5xl;
}
.h3 {
@apply text-4xl;
}
}
/* Buttons */
.btn,
.btn-sm {
@apply text-sm font-medium inline-flex items-center justify-center border border-transparent rounded-md tracking-normal transition;
}
.btn {
@apply px-4 py-2;
}
.btn-sm {
@apply px-2 py-1;
}
/* Forms */
input[type="search"]::-webkit-search-decoration,
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-results-button,
input[type="search"]::-webkit-search-results-decoration {
-webkit-appearance: none;
}
.form-input,
.form-textarea,
.form-multiselect,
.form-select,
.form-checkbox,
.form-radio {
@apply bg-white border border-zinc-200 focus:border-zinc-400 shadow shadow-black/5;
}
.form-input,
.form-textarea,
.form-multiselect,
.form-select,
.form-checkbox {
@apply rounded;
}
.form-input,
.form-textarea,
.form-multiselect,
.form-select {
@apply text-zinc-600 text-sm px-4 py-2;
}
.form-input,
.form-textarea {
@apply placeholder-zinc-400;
}
.form-select {
@apply pr-10;
}
.form-checkbox,
.form-radio {
@apply text-zinc-800;
}
.form-checkbox {
@apply rounded-sm;
}
/* Chrome, Safari and Opera */
.no-scrollbar::-webkit-scrollbar {
display: none;
}
.no-scrollbar {
-ms-overflow-style: none;
/* IE and Edge */
scrollbar-width: none;
/* Firefox */
}
+15
View File
@@ -0,0 +1,15 @@
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500&family=Inter+Tight:ital,wght@0,500;0,600;0,700;1,700&display=fallback');
@import 'tailwindcss/base';
@import 'tailwindcss/components';
/* Additional styles */
@import 'additional-styles/utility-patterns.css';
@import 'additional-styles/theme.css';
@import 'tailwindcss/utilities';
/* See Alpine.js: https://github.com/alpinejs/alpine#x-cloak */
[x-cloak=""] {
display: none;
}
+1933
View File
File diff suppressed because it is too large Load Diff
File diff suppressed because one or more lines are too long
+1031
View File
File diff suppressed because it is too large Load Diff
+16
View File
@@ -0,0 +1,16 @@
{
"name": "gray-html",
"description": "Gray HTML template - Cruip.com",
"version": "1.0.0",
"homepage": "https://cruip.com",
"author": "Pasquale Vitiello",
"license": "https://cruip.com/terms/",
"scripts": {
"dev": "npx tailwindcss -i ./css/style.css -o ./style.css --watch",
"build": "npx tailwindcss -i ./css/style.css -o ./style.css"
},
"devDependencies": {
"@tailwindcss/forms": "^0.5.7",
"tailwindcss": "^3.3.6"
}
}
+3153
View File
File diff suppressed because it is too large Load Diff
+44
View File
@@ -0,0 +1,44 @@
module.exports = {
content: [
'./**/*.html',
'./js/**/*.js',
],
theme: {
extend: {
fontFamily: {
inter: ['Inter', 'sans-serif'],
'inter-tight': ['Inter Tight', 'sans-serif']
},
fontSize: {
xs: ['0.75rem', { lineHeight: '1.5' }],
sm: ['0.875rem', { lineHeight: '1.5715' }],
base: ['1rem', { lineHeight: '1.5', letterSpacing: '-0.017em' }],
lg: ['1.125rem', { lineHeight: '1.5', letterSpacing: '-0.017em' }],
xl: ['1.25rem', { lineHeight: '1.5', letterSpacing: '-0.017em' }],
'2xl': ['1.5rem', { lineHeight: '1.415', letterSpacing: '-0.017em' }],
'3xl': ['2rem', { lineHeight: '1.3125', letterSpacing: '-0.017em' }],
'4xl': ['2.5rem', { lineHeight: '1.25', letterSpacing: '-0.017em' }],
'5xl': ['3.25rem', { lineHeight: '1.2', letterSpacing: '-0.017em' }],
'6xl': ['3.75rem', { lineHeight: '1.1666', letterSpacing: '-0.017em' }],
'7xl': ['4.5rem', { lineHeight: '1.1666', letterSpacing: '-0.017em' }],
},
animation: {
'infinite-scroll': 'infinite-scroll 60s linear infinite',
'infinite-scroll-inverse': 'infinite-scroll-inverse 60s linear infinite',
},
keyframes: {
'infinite-scroll': {
from: { transform: 'translateX(0)' },
to: { transform: 'translateX(-100%)' },
},
'infinite-scroll-inverse': {
from: { transform: 'translateX(-100%)' },
to: { transform: 'translateX(0)' },
}
}
},
},
plugins: [
require('@tailwindcss/forms'),
],
};