Once you've created a project and installed dependencies with npm install
(or pnpm install
or yarn
), start a development server:
npm run dev
# or start the server and open the app in a new browser tab
npm run dev -- --open
To create a production version of your app:
npm run build
You can preview the production build with npm run preview
.
Each URL is under the src/routes folder. The main page is directly under the routes folder with the corresponding files +page.svelte +layout.svelte
The Sub pages are under the correspoding folders with the same fileseg. /projects/+page.svelte
The dynamically generated routes (if there are any) are saved under a [slug]/+page.svelte
Resused components are under src/lib
Data is fetched in the <script> section foer each page.
The src/lib/utils/getURL.js handels image requests and standadize the URL fetching
There is only one +layout.svelte file and it handles all the global css variables (eg. color) and global styles
Each component and +page.svelte has its own css in the down section.
To Do: There is still alot of inline code in the HTML. Needs to be refactored.
Important to remember: Local css variables override the global once and inline css variables override the local ones
The admin interface to the Pocketbase is: https://pocketbase.telesis.at/_/
Pb-Name - Code-Name - Name-Tag
categories - categories - Services
companies - collaborations - collaborations
news - news - news - (disabled for now)
pages - src/routes - pagenames
projects - projects - projects
team - team - team
Pages:
The Pages folder in Code contains all the Main Pages of the Website.
Dynamically routed pages generate elements on their own when you add them to the database.
Dynamic Content:
companies
categories
news
projects
team
Static Pages need to be coded manually
Static Content:
pages
With the +New record Button you cann add a new record in the database you are currently in.
Each element got its own datapoints and will be handled differently.
Most of the Records got a Rich-Text-Element that you can use like a Word processing program. It will render the content how you pasted it inside the editor.
Use the Add Image button to add Images the the Rich-Text. You can set up the width and height there.
For removing the Items you need to select one and a new option appears.