Skip to content

Commit

Permalink
fix homepage path
Browse files Browse the repository at this point in the history
  • Loading branch information
chickenlj committed Sep 8, 2024
1 parent 89abf59 commit 720cefd
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ public String getAds(@RequestParam List<String> contextKeys, Model model) {
return "ad";
}

@GetMapping({"/static"})
@GetMapping({"/"})
public String listUser(Model model) {
model.addAttribute("is_cymbal_brand", false);
ListProductsResponse response = productCatalogService.listProducts(new Empty());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
<section class="empty-cart-section">
<h3>Your shopping cart is empty!</h3>
<p>Items you add to your shopping cart will appear here.</p>
<a class="cymbal-button-primary" th:href="@{/static}" role="button">Continue Shopping</a>
<a class="cymbal-button-primary" th:href="@{/}" role="button">Continue Shopping</a>
</section>
</div>

Expand All @@ -64,7 +64,7 @@ <h3>Cart (<span th:text="${cart_size}">0</span>)</h3>
<button class="cymbal-button-secondary cart-summary-empty-cart-button" type="submit">
Empty Cart
</button>
<a class="cymbal-button-primary" th:href="@{/static}" role="button">
<a class="cymbal-button-primary" th:href="@{/}" role="button">
Continue Shopping
</a>
</form>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0, shrink-to-fit=no">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title th:text="${is_cymbal_brand} ? 'Cymbal Shops' : 'Online Boutique'"></title>
<link href="../static/styles/bootstrap.min.css" rel="stylesheet" integrity="sha384-WskhaSGFgHYWDcbwN70/dfYBj47jz9qbsMId/iRN3ewGhXQFZCSftd1LZCfmhktB" crossorigin="anonymous">
<link th:href="@{/styles/bootstrap.min.css}" rel="stylesheet" integrity="sha384-WskhaSGFgHYWDcbwN70/dfYBj47jz9qbsMId/iRN3ewGhXQFZCSftd1LZCfmhktB" crossorigin="anonymous">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=DM+Sans:ital,wght@0,400;0,700;1,400;1,700&display=swap" rel="stylesheet">
Expand All @@ -37,7 +37,7 @@
<header>
<div class="navbar sub-navbar">
<div class="container d-flex justify-content-between">
<a href="/static" class="navbar-brand d-flex align-items-center">
<a href="/" class="navbar-brand d-flex align-items-center">
<img th:src="${is_cymbal_brand ? '/icons/Cymbal_NavLogo.svg' : '/icons/Hipster_NavLogo.svg'}"
th:class="${is_cymbal_brand ? 'top-left-logo-cymbal' : 'top-left-logo'}"
alt="" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<head>
<title>Home</title>
<link rel="stylesheet" th:href="@{/styles/styles.css}">
<link rel="stylesheet" href="../static/styles/bootstrap.min.css">
<link rel="stylesheet" th:href="@{/styles/bootstrap.min.css}">

</head>
<body>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ <h3>
</div>
<div class="row">
<div class="col-12 text-center">
<a class="cymbal-button-primary" th:href="@{/static}" role="button">
<a class="cymbal-button-primary" th:href="@{/}" role="button">
Continue Shopping
</a>
</div>
Expand Down

0 comments on commit 720cefd

Please sign in to comment.