1+ export default {
2+ title : "Welcome" ,
3+ slug : "welcome" ,
4+ body : `
5+ <div class="my-doc">
6+ <style>
7+ .my-doc {
8+ display: flex;
9+ height: calc(100% - 24px);
10+ overflow: hidden;
11+ flex-direction: row;
12+ margin: 24px 24px 0 24px;
13+ color: #484D6A;
14+ font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
15+ }
16+ .my-doc h1 {
17+ padding: 0px;
18+ margin: 0px;
19+ color: #484D6A;
20+ font-size: 32px;
21+ margin-bottom: 12px;
22+ }
23+ .my-doc h2 {
24+ padding: 0px;
25+ margin: 0px;
26+ color: #484D6A;
27+ }
28+ .my-doc p {
29+ padding: 0px;
30+ margin: 0px;
31+ line-height: 1.5;
32+ }
33+ .left {
34+ border-right: 1px solid rgba(72,77,106,0.2);
35+ margin-right: 48px;
36+ padding-right: 48px;
37+ width: 70%;
38+ display: flex;
39+ flex-direction: column;
40+ }
41+ .right {
42+ padding-top: 102px;
43+ width: 280px;
44+ flex-shrink: 0;
45+ }
46+ .right > div {
47+ margin-bottom: 32px;
48+ }
49+ .boxes {
50+ display: flex;
51+ flex-direction: column;
52+ gap: 16px;
53+ flex-grow: 1;
54+ overflow-y: auto;
55+ padding-right: 20px;
56+ }
57+ .box {
58+ border: 1px solid rgba(72,77,106,0.1);
59+ padding: 8px;
60+ margin-bottom: 16px;
61+ border-radius: 12px;
62+ box-shadow: 0px 4px 20px rgba(72,77,106,0.08);
63+ padding: 24px;
64+ transition: all 0.2s ease-in-out;
65+ }
66+ .box h2 {
67+ font-size: 18px;
68+ font-weight: 600;
69+ margin-bottom: 8px;
70+ }
71+ .box p {
72+ font-size: 14px;
73+ color: rgba(72,77,106,0.8);
74+ }
75+ .divider {
76+ height: 1px;
77+ background: rgba(71, 84, 103, 0.1);
78+ margin: 12px 0;
79+ border: none;
80+ }
81+ .tip-box {
82+ display: flex;
83+ flex-direction: row;
84+ align-items: flex-start;
85+ gap: 12px;
86+ background-color: rgba(0, 0, 0, 0.03);
87+ padding: 24px;
88+ border-radius: 12px;
89+ max-width: 320px;
90+ margin-top: 32px;
91+ }
92+ .tip-box svg {
93+ width: 24px;
94+ flex-shrink: 0;
95+ color: rgba(0, 0, 0, 0.8);
96+ }
97+ .tip-box svg path {
98+ stroke: rgba(0, 0, 0, 0.8);
99+ }
100+ .tip-box p {
101+ margin: 0;
102+ font-size: 14px;
103+ color: rgba(0, 0, 0, 0.8);
104+ }
105+ .tip-box a {
106+ color: inherit;
107+ text-decoration: underline;
108+ }
109+ </style>
110+
111+ <div class="left">
112+ <div style="margin-bottom: 36px;">
113+ <h1>Welcome to Headerless File Import Demo</h1>
114+ <p style="font-weight: 500; font-size: 16px;">This demo shows how to import files without headers in Flatfile.</p>
115+ </div>
116+
117+ <div>
118+ <p style="font-weight: 600;">Follow the steps below to get started:</p>
119+ <hr class="divider">
120+ </div>
121+
122+ <div class="boxes">
123+ <div class="box">
124+ <h2>1. Navigate to the AMS Data Import workbook</h2>
125+ <p>Click on the "AMS Data Import" workbook in the sidebar to open it.</p>
126+ </div>
127+
128+ <div class="box">
129+ <h2>2. Upload your pipe-delimited file</h2>
130+ <p>Upload any pipe-delimited (.txt or .csv) file. The system will automatically:</p>
131+ <ul style="margin-top: 8px; color: rgba(72,77,106,0.8);">
132+ <li>Detect the pipe delimiter</li>
133+ <li>Assign predefined headers to each column</li>
134+ <li>Map the data to the appropriate fields</li>
135+ </ul>
136+ </div>
137+
138+ <div class="box">
139+ <h2>3. Review and edit your data</h2>
140+ <p>After the file is imported, you can review and edit the data as needed.</p>
141+ </div>
142+
143+ <div class="box">
144+ <h2>4. Export or process your data</h2>
145+ <p>Once you're satisfied with the data, you can export it or process it further.</p>
146+ </div>
147+ </div>
148+ </div>
149+
150+ <div class="right">
151+ <div>
152+ <p style="font-weight: 600;">Key features:</p>
153+ <hr class="divider">
154+ </div>
155+
156+ <div class="tip-box">
157+ <svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor">
158+ <path stroke-linecap="round" stroke-linejoin="round" d="M12 9v3.75m9-.75a9 9 0 11-18 0 9 9 0 0118 0zm-9 3.75h.008v.008H12v-.008z" />
159+ </svg>
160+ <p>This demo works with any pipe-delimited file, regardless of filename.</p>
161+ </div>
162+
163+ <div class="tip-box" style="margin-top: 16px;">
164+ <svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor">
165+ <path stroke-linecap="round" stroke-linejoin="round" d="M12 9v3.75m9-.75a9 9 0 11-18 0 9 9 0 0118 0zm-9 3.75h.008v.008H12v-.008z" />
166+ </svg>
167+ <p>Headers are automatically assigned based on column position.</p>
168+ </div>
169+ </div>
170+ </div>
171+ ` ,
172+ } ;
0 commit comments