File tree Expand file tree Collapse file tree 2 files changed +14
-31
lines changed
ux.symfony.com/assets/svelte/src Expand file tree Collapse file tree 2 files changed +14
-31
lines changed Original file line number Diff line number Diff line change 77 </script >
88
99{#if packages .length === 0 }
10- <div class =' alert alert-info' >Sad trombone... we haven't built any components that
11- match this search yet!
12- </div >
10+ No packages found
1311{:else }
14- <div class =' row' >
15- {#each packages as uxPackage (uxPackage .name )}
16- <a
17- href =' {uxPackage .url }'
18- class =' col-12 col-md-4 col-lg-3 mb-2'
19- animate:flip ={{duration : transitionDuration }} in:fade ={{duration :transitionDuration }}
20- >
21- <div class =' components-container p-2' >
22- <div class =' d-flex' >
23- <div
24- class =' live-component-img d-flex justify-content-center align-items-center'
25- style ='background: {uxPackage .gradient }' >
26- <img width =' 17' height =' 17'
27- src =' {uxPackage .imageUrl }'
28- alt ='`Image for the {uxPackage .humanName } UX package`'
29- />
30- </div >
31- <h4 class =' ubuntu-title ps-2 align-self-center' >
32- { uxPackage .humanName }
33- </h4 >
34- </div >
35- </div >
36- </a >
37- {/each }
38- </div >
12+ {#each packages as uxPackage (uxPackage .name )}
13+ <div class =" PackageListItem"
14+ animate:flip ={{duration : transitionDuration }} in:fade ={{duration :transitionDuration }}
15+ >
16+ <div class ="PackageListItem__icon" style ="--gradient: ' {uxPackage .gradient }'" >
17+ <img src =' {uxPackage .imageUrl }' alt ="Image for the ' {uxPackage .humanName }' UX package" />;
18+ <h3 class =" PackageListItem__title" >
19+ <a href =' {uxPackage .url }' >{uxPackage .humanName }</a >
20+ </h3 >
21+ </div >
22+ </div >
23+ {/each }
3924{/if }
Original file line number Diff line number Diff line change 22 "devDependencies" : {
33 "@babel/cli" : " ^7.25.6" ,
44 "@babel/core" : " ^7.25.2" ,
5- "@babel/preset-react" : " ^7.24.7" ,
65 "svelte" : " ^3.59.1"
76 },
87 "license" : " MIT" ,
98 "private" : true ,
109 "scripts" : {
11- "build" : " yarn build-react && yarn build-svelte" ,
12- "build-svelte" : " node bin/compile_svelte.js"
10+ "build" : " yarn bin/compile_svelte.js"
1311 }
1412}
You can’t perform that action at this time.
0 commit comments