56 Commits

Author SHA1 Message Date
b56be97f86 Use env var API_HOST to direct where backend lives. 2024-03-03 19:23:20 +01:00
6d2550f2f3 Upload docker image to GHCR & deploy to kubernetes cluster 2024-03-03 19:11:25 +01:00
71e053297e Feat: Frontpage text content (#9)
* Front text blocks text content updated

* Health route

* Linting
2023-06-03 11:10:37 +02:00
63a1107427 Patch: Receipt page (#7)
* OrderSection receipts list of lineItems instead of always getting cart

* Hide express checkout behind feature flag

* Add torn receipt paper css look to order list

* Re-use OrderSection on receipt page

* Linting

* Reduced max font from 130->120%, now only applies scaling on div.main

Reducing relative font size for the largest screen width.
Scaling only applies to main container, not header and footer.

* Minor header size changes

* Set max-width to login input elements on desktop

* Prettier doesn't liek shorthand props
2023-03-28 18:35:14 +02:00
8bb65dfc2e Feat: Checkout page redesign (#6)
* Increased padding on input elements

* Increased max layout width from 1500 to 1800

* Address input should take 2 column of space

* Updated order section with new design

* Checkout gets a new layout with sidebar

* Express checkout section

* Increase font size at larger screen width

* Environment example file

* Resolved linting issues
2023-03-26 01:59:23 +01:00
9d60cb7b85 Github link in footer opens tab & sort updated 2022-12-30 00:57:24 +01:00
b2fd28c487 Removed config from tsconfig 2022-12-30 00:56:58 +01:00
4e19c9cea7 Merge pull request #5 from KevinMidboe/feat/checkout-order-feedback
Feat: Checkout, order & feedback pages (and a lot more)
2022-12-30 00:39:07 +01:00
d4a0569af0 Resolved all eslint issues 2022-12-30 00:35:53 +01:00
bfb55db8d6 Update all dependent package versions & pin to version 2022-12-30 00:17:41 +01:00
f82451328b Linting 2022-12-30 00:13:25 +01:00
aafea78697 Disable js in tsconfig 2022-12-30 00:05:31 +01:00
8e22f16b76 Testing product gallery frontpage component, WIP 2022-12-30 00:04:51 +01:00
6d0842a6b6 Set meta viewport maximum-scale to 1 2022-12-30 00:01:57 +01:00
03cae6b0a0 Custom error classes 2022-12-30 00:01:15 +01:00
05d26587d9 WS cart sets reconnect timeout when planet_id not exists 2022-12-30 00:00:02 +01:00
0b1311ea77 Suffix all page titles with ' | plantposen' 2022-12-29 23:59:15 +01:00
694c3efbc3 Specific style reference to parent element by class 2022-12-29 23:58:39 +01:00
e6083077ac css effects for tracking pulse component 2022-12-29 23:57:40 +01:00
a352926831 Updated all references to image in product 2022-12-29 23:57:10 +01:00
68153c13dc Cookies page includes link to all references to planet_id on github 2022-12-29 23:56:08 +01:00
2ce3529db5 Cart listens to enter key press along with click 2022-12-29 23:55:36 +01:00
6de05e91aa Update badge titles, and status 2022-12-29 23:55:11 +01:00
d86732c9b3 All links get link style from global stylesheet 2022-12-29 23:54:38 +01:00
f5a5534598 Code in footer link to all planetposen repos 2022-12-29 23:53:24 +01:00
9067e67adc Warehouse gets image upload, edit images and all properties of product 2022-12-29 23:52:12 +01:00
469074d75b Consistent build api url & updated base to /api/v1 2022-12-29 23:39:56 +01:00
a936283be1 Error stack component displays errors as card stack with animation 2022-12-29 23:36:55 +01:00
ae1def38a3 Updated interfaces 2022-12-29 23:36:00 +01:00
eefd3aa6d6 Displays payment, shipping, errors page & edit and add shipment 2022-12-29 23:33:52 +01:00
dc7663edce Shop gets fancy image carousel & navigate back arrow 2022-12-29 23:16:02 +01:00
9c549b72f0 Polls for order status & displays loading while status=initiated
This is the page sent to after the payment is verified clientside at
/checkout. While status is only initiated and not updated from stripe
webhook we display spinner.

TODO should still timeout to content message
2022-12-29 23:11:56 +01:00
e86f22fbe2 apiUrl builds url to planetposen-backend which prefixes localhost if dev 2022-12-29 23:07:52 +01:00
1fb3fdd502 Checkout validates, payment response spinner, error msgs & typed resp
- When stripe responds with success we forward to receipt page which
  waits for stripe webhook to updated order status.
- Moved stripe logic out of card component and into stripeApi.ts.
- Get stripe api token from +page.server.ts environment variable.
- Spinner for stripe payment for feedback on payment until stripe
  verifies and responds.
- Error stack component trying to create card stack animation.
2022-12-29 23:02:24 +01:00
1e7cd2c3c5 Joined all Circle icons into Loading component
The loading component receives a promise which is used to display
states: loading, success and error. When displaying error you can reject
with string 'warning' to fail with another component.
2022-12-11 19:26:57 +01:00
5c5bfec43a Remvoed & simplified or refactored general functionality 2022-12-05 18:39:32 +01:00
1a2e1f4594 Moved applePay & vipps components to /unused folder 2022-12-05 18:35:41 +01:00
6218a0d33c Customer and Cart interfaces 2022-12-05 18:28:46 +01:00
416303b601 Refactored shared css & removed unused styles 2022-12-05 18:27:24 +01:00
86920d254f Use hooks to check env and rewrite API call url if localhost 2022-12-05 18:25:37 +01:00
5f0b357d88 Updated ts types, sync w/ backend 2022-12-05 18:24:01 +01:00
31d639fe01 Resolved merge conflict 2022-12-03 17:15:12 +01:00
18406dcd0b Page title & meta description for webshop product 2022-12-03 17:13:44 +01:00
82a6bb3e5b Page title & meta description for webshop product 2022-12-03 16:48:14 +01:00
b2a15be12e Feat: Refactor jsonld & method to update document title and description (#4)
* Generates JSON ld structured metadata from a product & appends to head

* Updated IProduct & IVariation interface

* Added IProductResponse & IProductsResponse interfaces

* Fixed sitemap urls having to many protocols

* Implemented jsonld for product w/ variations

* Aligned Product responses between backend & frontend

* PageMeta for updating head meta values: title & description

Use on any page where we want to display a unique meta page title &
description

* Set document language to norwegian

* Linting
2022-11-30 00:39:04 +01:00
296cfb80a0 Feat: JsonLd product metadata (#2)
* Generates JSON ld structured metadata from a product & appends to head

* Updated IProduct & IVariation interface

* Added IProductResponse & IProductsResponse interfaces

* Fixed sitemap urls having to many protocols
2022-11-28 22:19:32 +01:00
f3751da335 Merge pull request #1 from KevinMidboe/ci/setup
CI: Setup
2022-11-28 21:10:40 +01:00
69d5f8f296 Changed build directory back to .sveltekit folder 2022-11-28 20:35:33 +01:00
cd163c1635 Add drone config signature 2022-11-28 20:27:48 +01:00
b8d4ab28ee Started CI drone setup with build and lint steps 2022-11-28 20:25:01 +01:00