@float.js/core 2.0.3 → 2.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli/index.js +143 -460
- package/dist/cli/index.js.map +1 -1
- package/dist/devtools/index.js +1 -1
- package/dist/devtools/index.js.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +142 -459
- package/dist/index.js.map +1 -1
- package/dist/server/index.js +142 -459
- package/dist/server/index.js.map +1 -1
- package/package.json +1 -1
package/dist/server/index.js
CHANGED
|
@@ -566,7 +566,7 @@ function generateDashboardHTML(state) {
|
|
|
566
566
|
<div class="logo-icon">\u26A1</div>
|
|
567
567
|
<div class="logo-text">
|
|
568
568
|
<span class="logo-title">Float.js</span>
|
|
569
|
-
<span class="logo-version">v2.0.
|
|
569
|
+
<span class="logo-version">v2.0.4</span>
|
|
570
570
|
</div>
|
|
571
571
|
</div>
|
|
572
572
|
</div>
|
|
@@ -1306,7 +1306,7 @@ var FLOAT_INDICATOR_SCRIPT = `
|
|
|
1306
1306
|
|
|
1307
1307
|
var indicator = document.createElement('div');
|
|
1308
1308
|
indicator.id = '__float-dev-indicator';
|
|
1309
|
-
indicator.innerHTML = '<div class="float-btn" id="float-btn"><svg width="16" height="16" viewBox="0 0 200 200" fill="none"><path d="M50 145C50 136.716 56.7157 130 65 130H105C113.284 130 120 136.716 120 145C120 153.284 113.284 160 105 160H65C56.7157 160 50 153.284 50 145Z" fill="#3B82F6"/><path d="M50 100C50 91.7157 56.7157 85 65 85H135C143.284 85 150 91.7157 150 100C150 108.284 143.284 115 135 115H65C56.7157 115 50 108.284 50 100Z" fill="#6366F1"/><path d="M50 55C50 46.7157 56.7157 40 65 40H155C163.284 40 170 46.7157 170 55C170 63.2843 163.284 70 155 70H65C56.7157 70 50 63.2843 50 55Z" fill="#8B5CF6"/></svg><span class="float-dot" id="float-dot"></span></div><div class="float-panel" id="float-panel"><div class="float-panel-header"><svg width="20" height="20" viewBox="0 0 200 200" fill="none"><path d="M50 145C50 136.716 56.7157 130 65 130H105C113.284 130 120 136.716 120 145C120 153.284 113.284 160 105 160H65C56.7157 160 50 153.284 50 145Z" fill="#3B82F6"/><path d="M50 100C50 91.7157 56.7157 85 65 85H135C143.284 85 150 91.7157 150 100C150 108.284 143.284 115 135 115H65C56.7157 115 50 108.284 50 100Z" fill="#6366F1"/><path d="M50 55C50 46.7157 56.7157 40 65 40H155C163.284 40 170 46.7157 170 55C170 63.2843 163.284 70 155 70H65C56.7157 70 50 63.2843 50 55Z" fill="#8B5CF6"/></svg><span>Float.js</span><span class="float-version">v2.0.
|
|
1309
|
+
indicator.innerHTML = '<div class="float-btn" id="float-btn"><svg width="16" height="16" viewBox="0 0 200 200" fill="none"><path d="M50 145C50 136.716 56.7157 130 65 130H105C113.284 130 120 136.716 120 145C120 153.284 113.284 160 105 160H65C56.7157 160 50 153.284 50 145Z" fill="#3B82F6"/><path d="M50 100C50 91.7157 56.7157 85 65 85H135C143.284 85 150 91.7157 150 100C150 108.284 143.284 115 135 115H65C56.7157 115 50 108.284 50 100Z" fill="#6366F1"/><path d="M50 55C50 46.7157 56.7157 40 65 40H155C163.284 40 170 46.7157 170 55C170 63.2843 163.284 70 155 70H65C56.7157 70 50 63.2843 50 55Z" fill="#8B5CF6"/></svg><span class="float-dot" id="float-dot"></span></div><div class="float-panel" id="float-panel"><div class="float-panel-header"><svg width="20" height="20" viewBox="0 0 200 200" fill="none"><path d="M50 145C50 136.716 56.7157 130 65 130H105C113.284 130 120 136.716 120 145C120 153.284 113.284 160 105 160H65C56.7157 160 50 153.284 50 145Z" fill="#3B82F6"/><path d="M50 100C50 91.7157 56.7157 85 65 85H135C143.284 85 150 91.7157 150 100C150 108.284 143.284 115 135 115H65C56.7157 115 50 108.284 50 100Z" fill="#6366F1"/><path d="M50 55C50 46.7157 56.7157 40 65 40H155C163.284 40 170 46.7157 170 55C170 63.2843 163.284 70 155 70H65C56.7157 70 50 63.2843 50 55Z" fill="#8B5CF6"/></svg><span>Float.js</span><span class="float-version">v2.0.4</span></div><div class="float-panel-body"><div class="float-row"><span class="float-label">Estado</span><span class="float-value" id="float-state">Conectando...</span></div><div class="float-row"><span class="float-label">HMR</span><span class="float-value" id="float-hmr">\u2014</span></div><div class="float-row"><span class="float-label">Build</span><span class="float-value" id="float-build">\u2014</span></div></div><div class="float-panel-footer"><a href="/__float" class="float-link">Dashboard</a><a href="https://floatjs.dev/docs" target="_blank" class="float-link">Docs</a></div></div>';
|
|
1310
1310
|
|
|
1311
1311
|
var styles = document.createElement('style');
|
|
1312
1312
|
styles.textContent = '#__float-dev-indicator{position:fixed;bottom:16px;left:16px;z-index:99999;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif;font-size:13px}.float-btn{display:flex;align-items:center;gap:6px;padding:8px 10px;background:#fff;border:1px solid #e5e7eb;border-radius:8px;box-shadow:0 1px 2px rgba(0,0,0,0.05);cursor:pointer;transition:all 0.15s}.float-btn:hover{border-color:#d1d5db;box-shadow:0 2px 8px rgba(0,0,0,0.08)}.float-dot{width:8px;height:8px;border-radius:50%;background:#d1d5db;transition:background 0.2s}.float-dot.connected{background:#22c55e}.float-dot.error{background:#ef4444}.float-dot.building{background:#eab308;animation:blink 0.8s infinite}@keyframes blink{0%,100%{opacity:1}50%{opacity:0.4}}.float-panel{position:absolute;bottom:48px;left:0;width:240px;background:#fff;border:1px solid #e5e7eb;border-radius:12px;box-shadow:0 4px 16px rgba(0,0,0,0.1);opacity:0;visibility:hidden;transform:translateY(8px);transition:all 0.2s ease}.float-panel.open{opacity:1;visibility:visible;transform:translateY(0)}.float-panel-header{display:flex;align-items:center;gap:8px;padding:12px 14px;border-bottom:1px solid #f3f4f6;font-weight:600;color:#111827}.float-version{margin-left:auto;font-size:11px;font-weight:400;color:#9ca3af}.float-panel-body{padding:8px 0}.float-row{display:flex;justify-content:space-between;padding:8px 14px}.float-label{color:#6b7280}.float-value{color:#111827;font-weight:500}.float-value.success{color:#16a34a}.float-value.error{color:#dc2626}.float-panel-footer{display:flex;gap:8px;padding:12px 14px;border-top:1px solid #f3f4f6}.float-link{flex:1;text-align:center;padding:8px;background:#f9fafb;border:1px solid #e5e7eb;border-radius:6px;color:#374151;text-decoration:none;font-size:12px;font-weight:500;transition:all 0.15s}.float-link:hover{background:#f3f4f6;border-color:#d1d5db}';
|
|
@@ -1738,486 +1738,169 @@ function generateWelcomePage() {
|
|
|
1738
1738
|
<meta charset="UTF-8">
|
|
1739
1739
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
1740
1740
|
<title>Welcome to Float.js</title>
|
|
1741
|
-
<link rel="icon" href="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0
|
|
1741
|
+
<link rel="icon" href="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'><defs><linearGradient id='g' x1='0%25' y1='100%25' x2='100%25' y2='0%25'><stop offset='0%25' stop-color='%233B82F6'/><stop offset='100%25' stop-color='%238B5CF6'/></linearGradient></defs><path d='M50 145C50 136.716 56.7157 130 65 130H105C113.284 130 120 136.716 120 145C120 153.284 113.284 160 105 160H65C56.7157 160 50 153.284 50 145Z' fill='url(%23g)'/><path d='M50 100C50 91.7157 56.7157 85 65 85H135C143.284 85 150 91.7157 150 100C150 108.284 143.284 115 135 115H65C56.7157 115 50 108.284 50 100Z' fill='url(%23g)'/><path d='M50 55C50 46.7157 56.7157 40 65 40H155C163.284 40 170 46.7157 170 55C170 63.2843 163.284 70 155 70H65C56.7157 70 50 63.2843 50 55Z' fill='url(%23g)'/></svg>">
|
|
1742
|
+
<script src="https://cdn.tailwindcss.com"></script>
|
|
1742
1743
|
<style>
|
|
1743
|
-
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700
|
|
1744
|
+
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');
|
|
1744
1745
|
|
|
1745
|
-
* {
|
|
1746
|
-
|
|
1747
|
-
:root {
|
|
1748
|
-
--float-purple: #8b5cf6;
|
|
1749
|
-
--float-indigo: #6366f1;
|
|
1750
|
-
--float-pink: #d946ef;
|
|
1751
|
-
--float-cyan: #06b6d4;
|
|
1752
|
-
}
|
|
1753
|
-
|
|
1754
|
-
body {
|
|
1755
|
-
font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
|
|
1756
|
-
background: #0a0a0b;
|
|
1757
|
-
color: white;
|
|
1758
|
-
min-height: 100vh;
|
|
1759
|
-
overflow-x: hidden;
|
|
1760
|
-
}
|
|
1761
|
-
|
|
1762
|
-
/* Animated background */
|
|
1763
|
-
.bg-gradient {
|
|
1764
|
-
position: fixed;
|
|
1765
|
-
inset: 0;
|
|
1766
|
-
background:
|
|
1767
|
-
radial-gradient(ellipse 80% 50% at 50% -20%, rgba(99, 102, 241, 0.3), transparent),
|
|
1768
|
-
radial-gradient(ellipse 60% 40% at 80% 60%, rgba(139, 92, 246, 0.15), transparent),
|
|
1769
|
-
radial-gradient(ellipse 40% 30% at 20% 80%, rgba(217, 70, 239, 0.1), transparent);
|
|
1770
|
-
pointer-events: none;
|
|
1771
|
-
}
|
|
1772
|
-
|
|
1773
|
-
.bg-grid {
|
|
1774
|
-
position: fixed;
|
|
1775
|
-
inset: 0;
|
|
1776
|
-
background-image:
|
|
1777
|
-
linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
|
|
1778
|
-
linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
|
|
1779
|
-
background-size: 60px 60px;
|
|
1780
|
-
pointer-events: none;
|
|
1781
|
-
}
|
|
1782
|
-
|
|
1783
|
-
/* Floating orbs */
|
|
1784
|
-
.orb {
|
|
1785
|
-
position: fixed;
|
|
1786
|
-
border-radius: 50%;
|
|
1787
|
-
filter: blur(80px);
|
|
1788
|
-
opacity: 0.5;
|
|
1789
|
-
animation: float 20s ease-in-out infinite;
|
|
1790
|
-
pointer-events: none;
|
|
1791
|
-
}
|
|
1792
|
-
|
|
1793
|
-
.orb-1 {
|
|
1794
|
-
width: 400px;
|
|
1795
|
-
height: 400px;
|
|
1796
|
-
background: var(--float-purple);
|
|
1797
|
-
top: -100px;
|
|
1798
|
-
right: -100px;
|
|
1799
|
-
animation-delay: 0s;
|
|
1800
|
-
}
|
|
1746
|
+
* { font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; }
|
|
1801
1747
|
|
|
1802
|
-
|
|
1803
|
-
|
|
1804
|
-
|
|
1805
|
-
background: var(--float-pink);
|
|
1806
|
-
bottom: -50px;
|
|
1807
|
-
left: -50px;
|
|
1808
|
-
animation-delay: -7s;
|
|
1809
|
-
}
|
|
1810
|
-
|
|
1811
|
-
.orb-3 {
|
|
1812
|
-
width: 200px;
|
|
1813
|
-
height: 200px;
|
|
1814
|
-
background: var(--float-cyan);
|
|
1815
|
-
top: 50%;
|
|
1816
|
-
left: 50%;
|
|
1817
|
-
animation-delay: -14s;
|
|
1748
|
+
@keyframes fade-in {
|
|
1749
|
+
from { opacity: 0; transform: translateY(20px); }
|
|
1750
|
+
to { opacity: 1; transform: translateY(0); }
|
|
1818
1751
|
}
|
|
1819
1752
|
|
|
1820
1753
|
@keyframes float {
|
|
1821
|
-
0%, 100% { transform:
|
|
1822
|
-
|
|
1823
|
-
50% { transform: translate(-20px, 20px) scale(0.9); }
|
|
1824
|
-
75% { transform: translate(20px, 10px) scale(1.05); }
|
|
1825
|
-
}
|
|
1826
|
-
|
|
1827
|
-
/* Main content */
|
|
1828
|
-
.container {
|
|
1829
|
-
position: relative;
|
|
1830
|
-
max-width: 1200px;
|
|
1831
|
-
margin: 0 auto;
|
|
1832
|
-
padding: 60px 24px;
|
|
1833
|
-
min-height: 100vh;
|
|
1834
|
-
display: flex;
|
|
1835
|
-
flex-direction: column;
|
|
1836
|
-
align-items: center;
|
|
1837
|
-
justify-content: center;
|
|
1838
|
-
}
|
|
1839
|
-
|
|
1840
|
-
/* Logo */
|
|
1841
|
-
.logo {
|
|
1842
|
-
margin-bottom: 48px;
|
|
1843
|
-
animation: fadeInUp 0.8s ease-out;
|
|
1844
|
-
}
|
|
1845
|
-
|
|
1846
|
-
.logo svg {
|
|
1847
|
-
width: 80px;
|
|
1848
|
-
height: 80px;
|
|
1849
|
-
filter: drop-shadow(0 0 40px rgba(139, 92, 246, 0.5));
|
|
1850
|
-
}
|
|
1851
|
-
|
|
1852
|
-
/* Hero */
|
|
1853
|
-
.hero {
|
|
1854
|
-
text-align: center;
|
|
1855
|
-
margin-bottom: 64px;
|
|
1856
|
-
}
|
|
1857
|
-
|
|
1858
|
-
.hero h1 {
|
|
1859
|
-
font-size: clamp(48px, 10vw, 80px);
|
|
1860
|
-
font-weight: 800;
|
|
1861
|
-
letter-spacing: -0.03em;
|
|
1862
|
-
line-height: 1.1;
|
|
1863
|
-
margin-bottom: 24px;
|
|
1864
|
-
animation: fadeInUp 0.8s ease-out 0.1s both;
|
|
1865
|
-
}
|
|
1866
|
-
|
|
1867
|
-
.hero h1 .gradient {
|
|
1868
|
-
background: linear-gradient(135deg, var(--float-indigo), var(--float-purple), var(--float-pink));
|
|
1869
|
-
-webkit-background-clip: text;
|
|
1870
|
-
-webkit-text-fill-color: transparent;
|
|
1871
|
-
background-clip: text;
|
|
1872
|
-
}
|
|
1873
|
-
|
|
1874
|
-
.hero p {
|
|
1875
|
-
font-size: 20px;
|
|
1876
|
-
color: rgba(255,255,255,0.6);
|
|
1877
|
-
max-width: 600px;
|
|
1878
|
-
margin: 0 auto;
|
|
1879
|
-
line-height: 1.7;
|
|
1880
|
-
animation: fadeInUp 0.8s ease-out 0.2s both;
|
|
1881
|
-
}
|
|
1882
|
-
|
|
1883
|
-
/* Features */
|
|
1884
|
-
.features {
|
|
1885
|
-
display: grid;
|
|
1886
|
-
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
|
|
1887
|
-
gap: 20px;
|
|
1888
|
-
width: 100%;
|
|
1889
|
-
max-width: 900px;
|
|
1890
|
-
margin-bottom: 64px;
|
|
1891
|
-
}
|
|
1892
|
-
|
|
1893
|
-
.feature {
|
|
1894
|
-
background: rgba(255,255,255,0.03);
|
|
1895
|
-
border: 1px solid rgba(255,255,255,0.06);
|
|
1896
|
-
border-radius: 20px;
|
|
1897
|
-
padding: 28px;
|
|
1898
|
-
transition: all 0.3s ease;
|
|
1899
|
-
animation: fadeInUp 0.8s ease-out both;
|
|
1900
|
-
}
|
|
1901
|
-
|
|
1902
|
-
.feature:nth-child(1) { animation-delay: 0.3s; }
|
|
1903
|
-
.feature:nth-child(2) { animation-delay: 0.4s; }
|
|
1904
|
-
.feature:nth-child(3) { animation-delay: 0.5s; }
|
|
1905
|
-
|
|
1906
|
-
.feature:hover {
|
|
1907
|
-
background: rgba(255,255,255,0.05);
|
|
1908
|
-
border-color: rgba(139, 92, 246, 0.3);
|
|
1909
|
-
transform: translateY(-4px);
|
|
1910
|
-
}
|
|
1911
|
-
|
|
1912
|
-
.feature-icon {
|
|
1913
|
-
width: 48px;
|
|
1914
|
-
height: 48px;
|
|
1915
|
-
background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(139, 92, 246, 0.2));
|
|
1916
|
-
border-radius: 14px;
|
|
1917
|
-
display: flex;
|
|
1918
|
-
align-items: center;
|
|
1919
|
-
justify-content: center;
|
|
1920
|
-
margin-bottom: 16px;
|
|
1921
|
-
font-size: 24px;
|
|
1922
|
-
}
|
|
1923
|
-
|
|
1924
|
-
.feature h3 {
|
|
1925
|
-
font-size: 18px;
|
|
1926
|
-
font-weight: 600;
|
|
1927
|
-
margin-bottom: 8px;
|
|
1928
|
-
}
|
|
1929
|
-
|
|
1930
|
-
.feature p {
|
|
1931
|
-
font-size: 14px;
|
|
1932
|
-
color: rgba(255,255,255,0.5);
|
|
1933
|
-
line-height: 1.6;
|
|
1934
|
-
}
|
|
1935
|
-
|
|
1936
|
-
/* Code block */
|
|
1937
|
-
.code-section {
|
|
1938
|
-
width: 100%;
|
|
1939
|
-
max-width: 600px;
|
|
1940
|
-
animation: fadeInUp 0.8s ease-out 0.6s both;
|
|
1941
|
-
margin-bottom: 48px;
|
|
1942
|
-
}
|
|
1943
|
-
|
|
1944
|
-
.code-header {
|
|
1945
|
-
background: rgba(255,255,255,0.05);
|
|
1946
|
-
border: 1px solid rgba(255,255,255,0.08);
|
|
1947
|
-
border-bottom: none;
|
|
1948
|
-
border-radius: 16px 16px 0 0;
|
|
1949
|
-
padding: 14px 20px;
|
|
1950
|
-
display: flex;
|
|
1951
|
-
align-items: center;
|
|
1952
|
-
gap: 8px;
|
|
1953
|
-
}
|
|
1954
|
-
|
|
1955
|
-
.code-dots {
|
|
1956
|
-
display: flex;
|
|
1957
|
-
gap: 6px;
|
|
1958
|
-
}
|
|
1959
|
-
|
|
1960
|
-
.code-dot {
|
|
1961
|
-
width: 12px;
|
|
1962
|
-
height: 12px;
|
|
1963
|
-
border-radius: 50%;
|
|
1964
|
-
background: rgba(255,255,255,0.1);
|
|
1965
|
-
}
|
|
1966
|
-
|
|
1967
|
-
.code-dot:nth-child(1) { background: #ff5f57; }
|
|
1968
|
-
.code-dot:nth-child(2) { background: #febc2e; }
|
|
1969
|
-
.code-dot:nth-child(3) { background: #28c840; }
|
|
1970
|
-
|
|
1971
|
-
.code-title {
|
|
1972
|
-
margin-left: auto;
|
|
1973
|
-
font-size: 12px;
|
|
1974
|
-
color: rgba(255,255,255,0.4);
|
|
1975
|
-
}
|
|
1976
|
-
|
|
1977
|
-
.code-block {
|
|
1978
|
-
background: rgba(0,0,0,0.4);
|
|
1979
|
-
border: 1px solid rgba(255,255,255,0.08);
|
|
1980
|
-
border-radius: 0 0 16px 16px;
|
|
1981
|
-
padding: 24px;
|
|
1982
|
-
font-family: 'Monaco', 'Menlo', monospace;
|
|
1983
|
-
font-size: 14px;
|
|
1984
|
-
line-height: 1.8;
|
|
1985
|
-
overflow-x: auto;
|
|
1986
|
-
}
|
|
1987
|
-
|
|
1988
|
-
.code-line {
|
|
1989
|
-
display: flex;
|
|
1990
|
-
}
|
|
1991
|
-
|
|
1992
|
-
.code-number {
|
|
1993
|
-
color: rgba(255,255,255,0.2);
|
|
1994
|
-
width: 40px;
|
|
1995
|
-
flex-shrink: 0;
|
|
1996
|
-
user-select: none;
|
|
1997
|
-
}
|
|
1998
|
-
|
|
1999
|
-
.code-content {
|
|
2000
|
-
color: rgba(255,255,255,0.8);
|
|
2001
|
-
}
|
|
2002
|
-
|
|
2003
|
-
.code-keyword { color: #c792ea; }
|
|
2004
|
-
.code-string { color: #c3e88d; }
|
|
2005
|
-
.code-function { color: #82aaff; }
|
|
2006
|
-
.code-comment { color: rgba(255,255,255,0.3); }
|
|
2007
|
-
.code-tag { color: #f07178; }
|
|
2008
|
-
.code-attr { color: #ffcb6b; }
|
|
2009
|
-
|
|
2010
|
-
/* Quick start */
|
|
2011
|
-
.quick-start {
|
|
2012
|
-
text-align: center;
|
|
2013
|
-
animation: fadeInUp 0.8s ease-out 0.7s both;
|
|
2014
|
-
}
|
|
2015
|
-
|
|
2016
|
-
.quick-start h2 {
|
|
2017
|
-
font-size: 14px;
|
|
2018
|
-
font-weight: 500;
|
|
2019
|
-
color: rgba(255,255,255,0.4);
|
|
2020
|
-
text-transform: uppercase;
|
|
2021
|
-
letter-spacing: 0.1em;
|
|
2022
|
-
margin-bottom: 20px;
|
|
2023
|
-
}
|
|
2024
|
-
|
|
2025
|
-
.quick-start-cmd {
|
|
2026
|
-
display: inline-flex;
|
|
2027
|
-
align-items: center;
|
|
2028
|
-
gap: 12px;
|
|
2029
|
-
background: rgba(255,255,255,0.05);
|
|
2030
|
-
border: 1px solid rgba(255,255,255,0.1);
|
|
2031
|
-
border-radius: 12px;
|
|
2032
|
-
padding: 16px 24px;
|
|
2033
|
-
font-family: 'Monaco', 'Menlo', monospace;
|
|
2034
|
-
font-size: 15px;
|
|
2035
|
-
cursor: pointer;
|
|
2036
|
-
transition: all 0.2s;
|
|
2037
|
-
}
|
|
2038
|
-
|
|
2039
|
-
.quick-start-cmd:hover {
|
|
2040
|
-
background: rgba(255,255,255,0.08);
|
|
2041
|
-
border-color: rgba(139, 92, 246, 0.4);
|
|
2042
|
-
}
|
|
2043
|
-
|
|
2044
|
-
.quick-start-cmd .prompt {
|
|
2045
|
-
color: var(--float-purple);
|
|
2046
|
-
}
|
|
2047
|
-
|
|
2048
|
-
.quick-start-cmd .text {
|
|
2049
|
-
color: rgba(255,255,255,0.8);
|
|
2050
|
-
}
|
|
2051
|
-
|
|
2052
|
-
.quick-start-cmd .copy {
|
|
2053
|
-
opacity: 0.4;
|
|
2054
|
-
transition: opacity 0.2s;
|
|
2055
|
-
}
|
|
2056
|
-
|
|
2057
|
-
.quick-start-cmd:hover .copy {
|
|
2058
|
-
opacity: 0.8;
|
|
2059
|
-
}
|
|
2060
|
-
|
|
2061
|
-
/* Links */
|
|
2062
|
-
.links {
|
|
2063
|
-
display: flex;
|
|
2064
|
-
gap: 24px;
|
|
2065
|
-
margin-top: 48px;
|
|
2066
|
-
animation: fadeInUp 0.8s ease-out 0.8s both;
|
|
2067
|
-
}
|
|
2068
|
-
|
|
2069
|
-
.link {
|
|
2070
|
-
color: rgba(255,255,255,0.5);
|
|
2071
|
-
text-decoration: none;
|
|
2072
|
-
font-size: 14px;
|
|
2073
|
-
display: flex;
|
|
2074
|
-
align-items: center;
|
|
2075
|
-
gap: 6px;
|
|
2076
|
-
transition: color 0.2s;
|
|
2077
|
-
}
|
|
2078
|
-
|
|
2079
|
-
.link:hover {
|
|
2080
|
-
color: var(--float-purple);
|
|
2081
|
-
}
|
|
2082
|
-
|
|
2083
|
-
/* Footer */
|
|
2084
|
-
.footer {
|
|
2085
|
-
position: absolute;
|
|
2086
|
-
bottom: 24px;
|
|
2087
|
-
font-size: 12px;
|
|
2088
|
-
color: rgba(255,255,255,0.3);
|
|
2089
|
-
animation: fadeInUp 0.8s ease-out 0.9s both;
|
|
1754
|
+
0%, 100% { transform: translateY(0); }
|
|
1755
|
+
50% { transform: translateY(-10px); }
|
|
2090
1756
|
}
|
|
2091
1757
|
|
|
2092
|
-
@keyframes
|
|
2093
|
-
|
|
2094
|
-
|
|
2095
|
-
transform: translateY(20px);
|
|
2096
|
-
}
|
|
2097
|
-
to {
|
|
2098
|
-
opacity: 1;
|
|
2099
|
-
transform: translateY(0);
|
|
2100
|
-
}
|
|
1758
|
+
@keyframes pulse-glow {
|
|
1759
|
+
0%, 100% { opacity: 0.4; }
|
|
1760
|
+
50% { opacity: 0.8; }
|
|
2101
1761
|
}
|
|
2102
1762
|
|
|
2103
|
-
|
|
2104
|
-
|
|
2105
|
-
|
|
2106
|
-
|
|
2107
|
-
|
|
2108
|
-
|
|
2109
|
-
.feature { padding: 20px; }
|
|
2110
|
-
}
|
|
1763
|
+
.animate-fade-in { animation: fade-in 0.8s ease-out forwards; }
|
|
1764
|
+
.animate-fade-in-delay { animation: fade-in 0.8s ease-out 0.2s forwards; opacity: 0; }
|
|
1765
|
+
.animate-fade-in-delay-2 { animation: fade-in 0.8s ease-out 0.4s forwards; opacity: 0; }
|
|
1766
|
+
.animate-fade-in-delay-3 { animation: fade-in 0.8s ease-out 0.6s forwards; opacity: 0; }
|
|
1767
|
+
.animate-float { animation: float 3s ease-in-out infinite; }
|
|
1768
|
+
.animate-pulse-glow { animation: pulse-glow 4s ease-in-out infinite; }
|
|
2111
1769
|
</style>
|
|
2112
1770
|
</head>
|
|
2113
|
-
<body>
|
|
2114
|
-
<div class="bg-gradient"></div>
|
|
2115
|
-
<div class="bg-grid"></div>
|
|
2116
|
-
<div class="orb orb-1"></div>
|
|
2117
|
-
<div class="orb orb-2"></div>
|
|
2118
|
-
<div class="orb orb-3"></div>
|
|
1771
|
+
<body class="bg-black text-white min-h-screen flex flex-col">
|
|
2119
1772
|
|
|
2120
|
-
|
|
2121
|
-
|
|
2122
|
-
|
|
2123
|
-
|
|
2124
|
-
|
|
2125
|
-
|
|
2126
|
-
|
|
2127
|
-
|
|
2128
|
-
|
|
2129
|
-
|
|
2130
|
-
|
|
2131
|
-
|
|
2132
|
-
|
|
2133
|
-
|
|
2134
|
-
|
|
2135
|
-
|
|
2136
|
-
<
|
|
2137
|
-
|
|
2138
|
-
|
|
2139
|
-
|
|
2140
|
-
|
|
2141
|
-
|
|
2142
|
-
|
|
2143
|
-
|
|
2144
|
-
|
|
2145
|
-
|
|
2146
|
-
|
|
2147
|
-
<div class="feature-icon">\u26A1</div>
|
|
2148
|
-
<h3>Desarrollo Instant\xE1neo</h3>
|
|
2149
|
-
<p>Hot reload ultrarr\xE1pido con esbuild. Ve tus cambios al instante sin perder el estado.</p>
|
|
2150
|
-
</div>
|
|
2151
|
-
<div class="feature">
|
|
2152
|
-
<div class="feature-icon">\u{1F3AF}</div>
|
|
2153
|
-
<h3>Routing Inteligente</h3>
|
|
2154
|
-
<p>Sistema de rutas basado en archivos. Crea page.tsx y tu ruta est\xE1 lista autom\xE1ticamente.</p>
|
|
2155
|
-
</div>
|
|
2156
|
-
<div class="feature">
|
|
2157
|
-
<div class="feature-icon">\u{1F30A}</div>
|
|
2158
|
-
<h3>SSR Streaming</h3>
|
|
2159
|
-
<p>Renderizado del lado del servidor con React 18 y soporte para streaming nativo.</p>
|
|
1773
|
+
<!-- Background Effects -->
|
|
1774
|
+
<div class="fixed inset-0 pointer-events-none overflow-hidden">
|
|
1775
|
+
<!-- Gradient orbs -->
|
|
1776
|
+
<div class="absolute -top-40 -right-40 w-96 h-96 bg-blue-500/20 rounded-full blur-3xl animate-pulse-glow"></div>
|
|
1777
|
+
<div class="absolute -bottom-40 -left-40 w-96 h-96 bg-violet-500/20 rounded-full blur-3xl animate-pulse-glow" style="animation-delay: 2s;"></div>
|
|
1778
|
+
|
|
1779
|
+
<!-- Grid pattern -->
|
|
1780
|
+
<div class="absolute inset-0 bg-[linear-gradient(rgba(255,255,255,0.02)_1px,transparent_1px),linear-gradient(90deg,rgba(255,255,255,0.02)_1px,transparent_1px)] bg-[size:64px_64px]"></div>
|
|
1781
|
+
</div>
|
|
1782
|
+
|
|
1783
|
+
<!-- Main Content -->
|
|
1784
|
+
<main class="flex-1 flex items-center justify-center px-6 relative z-10">
|
|
1785
|
+
<div class="max-w-2xl w-full text-center">
|
|
1786
|
+
|
|
1787
|
+
<!-- Logo -->
|
|
1788
|
+
<div class="animate-fade-in animate-float mb-8">
|
|
1789
|
+
<svg class="w-20 h-20 mx-auto" viewBox="0 0 200 200" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
1790
|
+
<defs>
|
|
1791
|
+
<linearGradient id="logo-gradient" x1="50" y1="160" x2="170" y2="40" gradientUnits="userSpaceOnUse">
|
|
1792
|
+
<stop stop-color="#3B82F6"/>
|
|
1793
|
+
<stop offset="1" stop-color="#8B5CF6"/>
|
|
1794
|
+
</linearGradient>
|
|
1795
|
+
</defs>
|
|
1796
|
+
<path d="M50 145C50 136.716 56.7157 130 65 130H105C113.284 130 120 136.716 120 145C120 153.284 113.284 160 105 160H65C56.7157 160 50 153.284 50 145Z" fill="url(#logo-gradient)"/>
|
|
1797
|
+
<path d="M50 100C50 91.7157 56.7157 85 65 85H135C143.284 85 150 91.7157 150 100C150 108.284 143.284 115 135 115H65C56.7157 115 50 108.284 50 100Z" fill="url(#logo-gradient)"/>
|
|
1798
|
+
<path d="M50 55C50 46.7157 56.7157 40 65 40H155C163.284 40 170 46.7157 170 55C170 63.2843 163.284 70 155 70H65C56.7157 70 50 63.2843 50 55Z" fill="url(#logo-gradient)"/>
|
|
1799
|
+
</svg>
|
|
2160
1800
|
</div>
|
|
2161
|
-
|
|
2162
|
-
|
|
2163
|
-
|
|
2164
|
-
|
|
2165
|
-
|
|
2166
|
-
|
|
2167
|
-
|
|
2168
|
-
|
|
1801
|
+
|
|
1802
|
+
<!-- Title -->
|
|
1803
|
+
<h1 class="animate-fade-in-delay text-4xl sm:text-5xl font-semibold tracking-tight mb-4">
|
|
1804
|
+
Welcome to <span class="bg-gradient-to-r from-blue-400 to-violet-400 bg-clip-text text-transparent">Float.js</span>
|
|
1805
|
+
</h1>
|
|
1806
|
+
|
|
1807
|
+
<!-- Subtitle -->
|
|
1808
|
+
<p class="animate-fade-in-delay-2 text-lg text-zinc-400 mb-12 max-w-md mx-auto">
|
|
1809
|
+
The React framework built for speed. Get started by editing your first page.
|
|
1810
|
+
</p>
|
|
1811
|
+
|
|
1812
|
+
<!-- Code Block -->
|
|
1813
|
+
<div class="animate-fade-in-delay-3 bg-zinc-900/80 backdrop-blur-sm border border-zinc-800 rounded-xl p-6 mb-8 text-left">
|
|
1814
|
+
<div class="flex items-center gap-2 mb-4">
|
|
1815
|
+
<div class="w-3 h-3 rounded-full bg-zinc-700"></div>
|
|
1816
|
+
<div class="w-3 h-3 rounded-full bg-zinc-700"></div>
|
|
1817
|
+
<div class="w-3 h-3 rounded-full bg-zinc-700"></div>
|
|
1818
|
+
<span class="ml-3 text-xs text-zinc-500 font-mono">app/page.tsx</span>
|
|
2169
1819
|
</div>
|
|
2170
|
-
<span class="
|
|
1820
|
+
<pre class="text-sm font-mono overflow-x-auto"><code><span class="text-violet-400">export default</span> <span class="text-blue-400">function</span> <span class="text-yellow-300">Page</span>() {
|
|
1821
|
+
<span class="text-violet-400">return</span> (
|
|
1822
|
+
<span class="text-zinc-500"><</span><span class="text-blue-300">h1</span><span class="text-zinc-500">></span><span class="text-zinc-300">Hello, Float.js!</span><span class="text-zinc-500"></</span><span class="text-blue-300">h1</span><span class="text-zinc-500">></span>
|
|
1823
|
+
);
|
|
1824
|
+
}</code></pre>
|
|
2171
1825
|
</div>
|
|
2172
|
-
|
|
2173
|
-
|
|
2174
|
-
|
|
2175
|
-
|
|
2176
|
-
|
|
2177
|
-
|
|
2178
|
-
|
|
2179
|
-
|
|
2180
|
-
|
|
2181
|
-
|
|
2182
|
-
|
|
2183
|
-
|
|
1826
|
+
|
|
1827
|
+
<!-- Action Buttons -->
|
|
1828
|
+
<div class="animate-fade-in-delay-3 flex flex-col sm:flex-row gap-4 justify-center">
|
|
1829
|
+
<a href="https://floatjs.dev/docs" target="_blank"
|
|
1830
|
+
class="inline-flex items-center justify-center gap-2 px-6 py-3 bg-white text-black font-medium rounded-lg hover:bg-zinc-200 transition-colors">
|
|
1831
|
+
<svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
|
1832
|
+
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 6.253v13m0-13C10.832 5.477 9.246 5 7.5 5S4.168 5.477 3 6.253v13C4.168 18.477 5.754 18 7.5 18s3.332.477 4.5 1.253m0-13C13.168 5.477 14.754 5 16.5 5c1.747 0 3.332.477 4.5 1.253v13C19.832 18.477 18.247 18 16.5 18c-1.746 0-3.332.477-4.5 1.253"/>
|
|
1833
|
+
</svg>
|
|
1834
|
+
Read the Docs
|
|
1835
|
+
</a>
|
|
1836
|
+
<a href="https://github.com/float-js/float-js" target="_blank"
|
|
1837
|
+
class="inline-flex items-center justify-center gap-2 px-6 py-3 bg-zinc-900 text-white font-medium rounded-lg border border-zinc-800 hover:bg-zinc-800 hover:border-zinc-700 transition-colors">
|
|
1838
|
+
<svg class="w-4 h-4" fill="currentColor" viewBox="0 0 24 24">
|
|
1839
|
+
<path d="M12 0C5.37 0 0 5.37 0 12c0 5.31 3.435 9.795 8.205 11.385.6.105.825-.255.825-.57 0-.285-.015-1.23-.015-2.235-3.015.555-3.795-.735-4.035-1.41-.135-.345-.72-1.41-1.23-1.695-.42-.225-1.02-.78-.015-.795.945-.015 1.62.87 1.845 1.23 1.08 1.815 2.805 1.305 3.495.99.105-.78.42-1.305.765-1.605-2.67-.3-5.46-1.335-5.46-5.925 0-1.305.465-2.385 1.23-3.225-.12-.3-.54-1.53.12-3.18 0 0 1.005-.315 3.3 1.23.96-.27 1.98-.405 3-.405s2.04.135 3 .405c2.295-1.56 3.3-1.23 3.3-1.23.66 1.65.24 2.88.12 3.18.765.84 1.23 1.905 1.23 3.225 0 4.605-2.805 5.625-5.475 5.925.435.375.81 1.095.81 2.22 0 1.605-.015 2.895-.015 3.3 0 .315.225.69.825.57A12.02 12.02 0 0024 12c0-6.63-5.37-12-12-12z"/>
|
|
1840
|
+
</svg>
|
|
1841
|
+
View on GitHub
|
|
1842
|
+
</a>
|
|
1843
|
+
</div>
|
|
1844
|
+
|
|
1845
|
+
<!-- Quick Commands -->
|
|
1846
|
+
<div class="animate-fade-in-delay-3 mt-12 grid grid-cols-1 sm:grid-cols-3 gap-4 text-left">
|
|
1847
|
+
<div class="p-4 bg-zinc-900/50 border border-zinc-800/50 rounded-lg">
|
|
1848
|
+
<div class="text-xs text-zinc-500 mb-1 font-mono">Create page</div>
|
|
1849
|
+
<code class="text-sm text-zinc-300 font-mono">mkdir app && touch app/page.tsx</code>
|
|
2184
1850
|
</div>
|
|
2185
|
-
<div class="
|
|
2186
|
-
<
|
|
2187
|
-
<
|
|
1851
|
+
<div class="p-4 bg-zinc-900/50 border border-zinc-800/50 rounded-lg">
|
|
1852
|
+
<div class="text-xs text-zinc-500 mb-1 font-mono">Add route</div>
|
|
1853
|
+
<code class="text-sm text-zinc-300 font-mono">touch app/about/page.tsx</code>
|
|
2188
1854
|
</div>
|
|
2189
|
-
<div class="
|
|
2190
|
-
<
|
|
2191
|
-
<
|
|
1855
|
+
<div class="p-4 bg-zinc-900/50 border border-zinc-800/50 rounded-lg">
|
|
1856
|
+
<div class="text-xs text-zinc-500 mb-1 font-mono">API route</div>
|
|
1857
|
+
<code class="text-sm text-zinc-300 font-mono">touch app/api/route.ts</code>
|
|
2192
1858
|
</div>
|
|
2193
1859
|
</div>
|
|
1860
|
+
|
|
2194
1861
|
</div>
|
|
2195
|
-
|
|
2196
|
-
|
|
2197
|
-
|
|
2198
|
-
|
|
2199
|
-
|
|
2200
|
-
|
|
2201
|
-
|
|
1862
|
+
</main>
|
|
1863
|
+
|
|
1864
|
+
<!-- Footer -->
|
|
1865
|
+
<footer class="relative z-10 border-t border-zinc-800/50 py-8 px-6">
|
|
1866
|
+
<div class="max-w-2xl mx-auto flex flex-col sm:flex-row items-center justify-between gap-4">
|
|
1867
|
+
|
|
1868
|
+
<!-- Left: Logo + Version -->
|
|
1869
|
+
<div class="flex items-center gap-3">
|
|
1870
|
+
<svg class="w-6 h-6" viewBox="0 0 200 200" fill="none">
|
|
1871
|
+
<defs>
|
|
1872
|
+
<linearGradient id="footer-gradient" x1="50" y1="160" x2="170" y2="40" gradientUnits="userSpaceOnUse">
|
|
1873
|
+
<stop stop-color="#3B82F6"/>
|
|
1874
|
+
<stop offset="1" stop-color="#8B5CF6"/>
|
|
1875
|
+
</linearGradient>
|
|
1876
|
+
</defs>
|
|
1877
|
+
<path d="M50 145C50 136.716 56.7157 130 65 130H105C113.284 130 120 136.716 120 145C120 153.284 113.284 160 105 160H65C56.7157 160 50 153.284 50 145Z" fill="url(#footer-gradient)"/>
|
|
1878
|
+
<path d="M50 100C50 91.7157 56.7157 85 65 85H135C143.284 85 150 91.7157 150 100C150 108.284 143.284 115 135 115H65C56.7157 115 50 108.284 50 100Z" fill="url(#footer-gradient)"/>
|
|
1879
|
+
<path d="M50 55C50 46.7157 56.7157 40 65 40H155C163.284 40 170 46.7157 170 55C170 63.2843 163.284 70 155 70H65C56.7157 70 50 63.2843 50 55Z" fill="url(#footer-gradient)"/>
|
|
1880
|
+
</svg>
|
|
1881
|
+
<span class="text-sm text-zinc-500">Float.js v2.0.4</span>
|
|
2202
1882
|
</div>
|
|
1883
|
+
|
|
1884
|
+
<!-- Center: Creator Info -->
|
|
1885
|
+
<div class="text-center">
|
|
1886
|
+
<p class="text-sm text-zinc-400">
|
|
1887
|
+
Created by <span class="text-white font-medium">Peter Fulle</span>
|
|
1888
|
+
</p>
|
|
1889
|
+
<a href="mailto:prfulle@gmail.com" class="text-xs text-zinc-500 hover:text-zinc-400 transition-colors">
|
|
1890
|
+
prfulle@gmail.com
|
|
1891
|
+
</a>
|
|
1892
|
+
</div>
|
|
1893
|
+
|
|
1894
|
+
<!-- Right: Links -->
|
|
1895
|
+
<div class="flex items-center gap-4">
|
|
1896
|
+
<a href="https://floatjs.dev" target="_blank" class="text-sm text-zinc-500 hover:text-white transition-colors">Docs</a>
|
|
1897
|
+
<a href="https://github.com/float-js/float-js" target="_blank" class="text-sm text-zinc-500 hover:text-white transition-colors">GitHub</a>
|
|
1898
|
+
<a href="https://x.com/floatjs" target="_blank" class="text-sm text-zinc-500 hover:text-white transition-colors">Twitter</a>
|
|
1899
|
+
</div>
|
|
1900
|
+
|
|
2203
1901
|
</div>
|
|
2204
|
-
|
|
2205
|
-
|
|
2206
|
-
<a href="https://floatjs.dev/docs" target="_blank" class="link">
|
|
2207
|
-
<span>\u{1F4D6}</span> Documentaci\xF3n
|
|
2208
|
-
</a>
|
|
2209
|
-
<a href="https://github.com/floatjs/float" target="_blank" class="link">
|
|
2210
|
-
<span>\u2B50</span> GitHub
|
|
2211
|
-
</a>
|
|
2212
|
-
<a href="https://floatjs.dev/examples" target="_blank" class="link">
|
|
2213
|
-
<span>\u{1F3A8}</span> Ejemplos
|
|
2214
|
-
</a>
|
|
2215
|
-
</div>
|
|
2216
|
-
|
|
2217
|
-
<div class="footer">
|
|
2218
|
-
Float.js v2.0.1 \u2014 Made with \u26A1 for the modern web
|
|
2219
|
-
</div>
|
|
2220
|
-
</div>
|
|
1902
|
+
</footer>
|
|
1903
|
+
|
|
2221
1904
|
</body>
|
|
2222
1905
|
</html>`;
|
|
2223
1906
|
}
|