Skip to content

SvelteWordpressNews for UTC or other wordpress sites.

License

Notifications You must be signed in to change notification settings

weston-gentry/SvelteWordpressNews

 
 

Repository files navigation

Svelte + Vite

This template should help get you started developing with Svelte in Vite.

Recommended IDE Setup

VS Code + Svelte.

Technical considerations

Svelte library fpr fetching the items

This application fetches and displays a simple set of cards with images or just text based on the blog that was chosen.

// store.js
// Generates css file if new tailwindcss styles need to be added dynamically
npx tailwindcss -i ./src/app.css -o ./src/output.css
// compiles the assets and generates the new .js and .css files inside build
vite build 
// The client defines the div id and adds the paremeters for any given request.
<script type="module" src="/pathtocdn/main.js"></script>
<div id="utcitsveltewordpressnewsapp"></div>
    <script>
        window.utcitsveltewordpress = {
            url: 'https://web.api.endpoints.utc.edu/api/wpcache/news',
            image: false
        };
    </script>

About

SvelteWordpressNews for UTC or other wordpress sites.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • CSS 72.4%
  • Svelte 14.0%
  • JavaScript 7.6%
  • HTML 6.0%