Skip to content

Commit

Permalink
job listing
Browse files Browse the repository at this point in the history
  • Loading branch information
FredericHeem committed Dec 3, 2024
1 parent cd04c9e commit 1f6e549
Show file tree
Hide file tree
Showing 33 changed files with 718 additions and 2 deletions.
1 change: 0 additions & 1 deletion bau-ui/badge/badge.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ export default function (context, options = {}) {
const className = css`
position: relative;
& span {
display: block;
position: absolute;
display: flex;
align-items: center;
Expand Down
1 change: 0 additions & 1 deletion bau-ui/chip/chip.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ export default function (context, options = {}) {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
vertical-align: middle;
&.clickable {
cursor: pointer;
}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
import chip from "@grucloud/bau-ui/chip";
import { Context } from "@grucloud/bau-ui/context";

export default (context: Context) => {
const { bau, css } = context;
const { section } = bau.tags;

const Chip = chip(context, {
class: css`
&.chip {
font-weight: 700;
font-size: 0.7rem;
border-radius: 0.8rem;
padding-inline: 0.5rem;
padding-block: 0.2rem;
text-transform: uppercase;
}
`,
variant: "solid",
color: "primary",
});

return () => {
return section(
//
Chip("My Custom Chip")
);
};
};
10 changes: 10 additions & 0 deletions bau-ui/examples/bau-storybook/src/pages/chip/chip.examples.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ import chipDefault from "./chip-example-default.ts";
// @ts-ignore
import codeExampleDefault from "./chip-example-default.ts?raw";

import chipCustom from "./chip-example-custom.ts";
// @ts-ignore
import codeExampleCustom from "./chip-example-custom.ts?raw";

export const chipSpec = {
title: "Chip",
package: "chip",
Expand All @@ -23,6 +27,12 @@ export const chipSpec = {
code: codeExampleDefault,
createComponent: chipDefault,
},
{
title: "Custom",
description: "A custom chip.",
code: codeExampleCustom,
createComponent: chipCustom,
},
],
gridItem: chipGridItem,
};
Expand Down
1 change: 1 addition & 0 deletions examples/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ Below is a list of projects implemented using _Bau_.
| Faq Accordion | [live](https://grucloud.github.io/bau/frontendmentor/faq-accordion/) | [code](./faq-accordion) |
| Interactive Rating Component | [live](https://grucloud.github.io/bau/frontendmentor/interactive-rating-component/) | [code](./interactive-rating-component) |
| IP Address Tracker | [live](https://grucloud.github.io/bau/frontendmentor/ip-address-tracker/) | [code](./ip-address-tracker) |
| Job Listing With Filtering | [live](https://grucloud.github.io/bau/frontendmentor/job-listings-with-filtering/) | [code](./job-listings-with-filtering) |
| Launch Countdown Timer | [live](https://grucloud.github.io/bau/frontendmentor/launch-countdown-timer/) | [code](./launch-countdown-timer) |
| Mortgage Repayment Calculator | [live](https://grucloud.github.io/bau/frontendmentor/mortgage-repayment-calculator/) | [code](./mortgage-repayment-calculator) |
| Multi Step Form | [live](https://grucloud.github.io/bau/frontendmentor/multi-step-form/) | [code](./multi-step-form) |
Expand Down
24 changes: 24 additions & 0 deletions examples/job-listings-with-filtering/.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/job-listings-with-filtering/.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/job-listings-with-filtering/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Frontend Mentor Job Listings With Filtering

Here is the implementation in [Bau.js](https://github.com/grucloud/bau) of the [Frontend Mentor Job Listings With Filtering code challenge](https://www.frontendmentor.io/challenges/job-listings-with-filtering-ivstIPCt)

## Workflow

Install the dependencies:

```sh
npm install
```

Start a development server:

```sh
npm run dev
```

Build a production version:

```sh
npm run build
```
18 changes: 18 additions & 0 deletions examples/job-listings-with-filtering/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<!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" />
<title>Job Listings With Filtering | FrontendMentor</title>
<style id="bau-css"></style>
</head>
<body>
<div id="app"></div>
<script type="module" src="/src/main.ts"></script>
</body>
</html>
23 changes: 23 additions & 0 deletions examples/job-listings-with-filtering/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"name": "frontendmentor-job-listings-with-filtering",
"homepage": "https://grucloud.github.io/bau/frontendmentor/job-listings-with-filtering/",
"private": true,
"version": "0.95.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.95.0",
"@grucloud/bau-css": "^0.95.0",
"@grucloud/bau-ui": "^0.95.0"
}
}
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 1f6e549

Please sign in to comment.