Skip to content

Commit

Permalink
e commerce product page
Browse files Browse the repository at this point in the history
  • Loading branch information
FredericHeem committed Nov 14, 2024
1 parent f8f7422 commit eee70fc
Show file tree
Hide file tree
Showing 43 changed files with 1,325 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bau-ui/globalStyle/globalStyle.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const ColorPaletteDefault = [
const SHADES_LIGHT = [
["light", "1.15"],
["lighter", "1.3"],
["lightest", "1.5"],
["lightest", "1.7"],
];
const SHADES_DARK = [
["dark", "0.9"],
Expand Down Expand Up @@ -117,6 +117,7 @@ export default function globalStyle(
--background-color: var(--color-white);
--global-border-width: 1px;
--global-radius: 0.2rem;
--font-color: var(--color-content);
--font-color-base: var(--color-content);
--font-color-disabled: var(--color-emphasis-600);
--font-color-inverse: var(--color-content-inverse);
Expand Down
24 changes: 24 additions & 0 deletions examples/e-commerce-product-page/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*

node_modules
dist
dist-ssr
*.local

# Editor directories and files
.vscode/*
!.vscode/extensions.json
.idea
.DS_Store
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?
2 changes: 2 additions & 0 deletions examples/e-commerce-product-page/.npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
save-exact = true
package-lock = false
23 changes: 23 additions & 0 deletions examples/e-commerce-product-page/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Frontend Mentor E-commerce Product Page

Here is the implementation in [Bau.js](https://github.com/grucloud/bau) of the [Frontend Mentor E-commerce Product Page code challenge](https://www.frontendmentor.io/challenges/ecommerce-product-page-UPsZ9MJp6)

## Workflow

Install the dependencies:

```sh
npm install
```

Start a development server:

```sh
npm run dev
```

Build a production version:

```sh
npm run build
```
22 changes: 22 additions & 0 deletions examples/e-commerce-product-page/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link
rel="icon"
type="image/png"
href="./assets/images/favicon-32x32.png"
/>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta
name="description"
content="E-commerce Product Page FrontendMentor written in bau.js"
/>
<title>E-commerce Product Page | FrontendMentor</title>
<style id="bau-css"></style>
</head>
<body>
<div id="app"></div>
<script type="module" src="/src/main.ts"></script>
</body>
</html>
25 changes: 25 additions & 0 deletions examples/e-commerce-product-page/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"name": "frontendmentor-e-commerce-product-page",
"homepage": "https://grucloud.github.io/bau/frontendmentor/e-commerce-product-page/",
"private": true,
"version": "0.86.0",
"type": "module",
"scripts": {
"dev": "vite",
"build": "tsc && vite build",
"preview": "vite preview",
"deploy": "gh-pages -d ../../dist"
},
"devDependencies": {
"gh-pages": "6.1.1",
"typescript": "^5.0.2",
"vite": "^5.2.11"
},
"dependencies": {
"@grucloud/bau": "^0.86.0",
"@grucloud/bau-css": "^0.86.0",
"@grucloud/bau-router": "^0.86.0",
"@grucloud/bau-ui": "^0.86.0",
"bignumber.js": "9.1.2"
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit eee70fc

Please sign in to comment.