Skip to content

Commit

Permalink
wip checkout
Browse files Browse the repository at this point in the history
  • Loading branch information
FunixG committed Feb 15, 2024
1 parent f58989b commit 026583e
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 55 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@

<div class="row justify-content-between">
<div class="col-6">
<button class="btn btn-success">
<a [routerLink]="'checkout'" class="btn btn-success">
<i class="bi bi-cart-check-fill"></i> Payer
</button>
</a>
</div>
<div class="col-6">
<p>Total panier : <span class="fw-bold price-container">{{ shopService.formatPrice(shopService.countTotalPrice()) }} €</span></p>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<div class="basket-tab">
<div class="basket-tab text-white">
<div class="basket-header">
<h2 class="text-center">Panier</h2>
<div class="row align-items-center">
Expand Down
73 changes: 22 additions & 51 deletions src/app/pages/shop/shop-checkout/shop-checkout.component.html
Original file line number Diff line number Diff line change
@@ -1,60 +1,31 @@
<div class="shop-container">
<div class="container">
<h1>Boutique - Payer</h1>
<p>Vos articles en cours et page de paiement.</p>
</div>
<div class="container">
<h1>Boutique - Paiement</h1>
<p>Voici la liste de vos articles, vous pouvez payer sur cette page.</p>

<div class="container mb-5">
<div class="row">
<div class="col-md-7 mb-2">
<div class="bg-dark rounded-4 p-3">
<h2>Votre panier</h2>

<div class="row align-items-center">
<div class="col col-md-3">
<img class="img-fluid" src="https://pacifista.fr/app/webroot/img/shop/grades/Badge-Elite.png" alt="Logo shop">
</div>
<div class="col col-md-4">
<h3>Grade élite</h3>
</div>
<div class="col col-md-2">
</div>
<div class="col col-md-3">
<p>14.99€</p>
</div>
</div>
<h2>Total à payer</h2>
<h3 class="price-container">{{ shopService.formatPrice(shopService.countTotalPrice()) }} €</h3>

<div class="row align-items-center">
<div class="col col-md-3">
<img class="img-fluid" src="https://pacifista.fr/app/webroot/img/shop/grades/Badge-Legendaire.png" alt="Logo shop">
</div>
<div class="col col-md-4">
<h3>Grade légendaire</h3>
</div>
<div class="col col-md-2">
</div>
<div class="col col-md-3">
<p>19.99€</p>
<div class="row">
<div class="col-md-7 mb-2">
<div class="bg-dark rounded-4 p-3">
<app-shop-basket-list></app-shop-basket-list>
</div>
</div>
</div>
</div>

<div class="col-md">
<div class="bg-dark rounded-4 p-3">
<h2>Moyens de paiement</h2>
<div class="col-md">
<div class="bg-dark rounded-4 p-3">
<h2>Moyens de paiement</h2>

<div class="row align-items-center justify-content-between w-50">
<button class="btn btn-success mb-2">
Paypal
</button>
<div class="row align-items-center justify-content-between w-50">
<button class="btn btn-success mb-2">
Paypal
</button>

<button class="btn btn-success">
PaysafeCard
</button>
</div>
<button class="btn btn-success">
PaysafeCard
</button>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
3 changes: 3 additions & 0 deletions src/app/pages/shop/shop-checkout/shop-checkout.component.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.price-container {
color: rgb(246 184 62);
}
4 changes: 3 additions & 1 deletion src/app/pages/shop/shop-checkout/shop-checkout.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import {Component, Inject} from '@angular/core';
import {PacifistaPage} from "../../../components/pacifista-page/pacifista-page";
import {Title} from "@angular/platform-browser";
import {DOCUMENT} from "@angular/common";
import ShopService from "../shop-service";

@Component({
selector: 'app-shop-checkout',
Expand All @@ -15,7 +16,8 @@ export class ShopCheckoutComponent extends PacifistaPage {
protected override readonly pageDescription: string = "Boutique de Pacifista. Soutenez le serveur minecraft avec des avantages uniques !";

constructor(title: Title,
@Inject(DOCUMENT) doc: Document) {
@Inject(DOCUMENT) doc: Document,
protected shopService: ShopService) {
super(title, doc);
}

Expand Down

0 comments on commit 026583e

Please sign in to comment.