@functionalcms/svelte-components 0.3.0 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,20 +0,0 @@
1
- # Introduction
2
- TODO: Give a short introduction of your project. Let this section explain the objectives or the motivation behind this project.
3
-
4
- # Getting Started
5
- TODO: Guide users through getting your code up and running on their own system. In this section you can talk about:
6
- 1. Installation process
7
- 2. Software dependencies
8
- 3. Latest releases
9
- 4. API references
10
-
11
- # Build and Test
12
- TODO: Describe and show how to build your code and run the tests.
13
-
14
- # Contribute
15
- TODO: Explain how other users and developers can contribute to make your code better.
16
-
17
- If you want to learn more about creating good readme files then refer the following [guidelines](https://docs.microsoft.com/en-us/azure/devops/repos/git/create-a-readme?view=azure-devops). You can also seek inspiration from the below readme files:
18
- - [ASP.NET Core](https://github.com/aspnet/Home)
19
- - [Visual Studio Code](https://github.com/Microsoft/vscode)
20
- - [Chakra Core](https://github.com/Microsoft/ChakraCore)
@@ -28,18 +28,4 @@
28
28
  </article>
29
29
 
30
30
  <style>
31
- .box {
32
- width: 500px;
33
- margin: var(--fluid-32);
34
- padding: 0 var(--fluid-12);
35
- border: 2px solid black;
36
- box-shadow: 2px 2px 5px var(--accent-color);
37
- -moz-border-radius: 10px;
38
- -webkit-border-radius: 10px;
39
- border-radius: 10px; /* future proofing */
40
- -khtml-border-radius: 10px; /* for old Konqueror browsers */
41
- }
42
- .img {
43
- width: 450px;
44
- }
45
31
  </style>
@@ -13,7 +13,7 @@
13
13
  export let logoUrl;
14
14
  </script>
15
15
 
16
- <footer class="flex-shrink-0">
16
+ <footer class="footer">
17
17
  <aside class="items-center grid-flow-col">
18
18
  <img src={logoUrl} alt={companyName} />
19
19
  <p>{motto}</p>
@@ -23,14 +23,4 @@
23
23
  </footer>
24
24
 
25
25
  <style>
26
- footer {
27
- background-color: var(--footer-background-color);
28
- color: var(--footer-color);
29
- text-align: center;
30
- padding: var(--fluid-12);
31
- font-size: var(--fluid-14);
32
- }
33
- a {
34
- color: var(--footer-color);
35
- }
36
26
  </style>
@@ -1,51 +1,22 @@
1
1
  <script>
2
- // @ts-nocheck
3
- import { Header, HeaderNav, HeaderNavItem } from "agnostic-svelte";
4
-
5
- /**
2
+ // @ts-nocheck
3
+ import { Header, HeaderNav, HeaderNavItem } from 'agnostic-svelte';
4
+
5
+ /**
6
6
  * @type {string}
7
7
  */
8
- export let companyName;
9
- /**
8
+ export let companyName;
9
+ /**
10
10
  * @type {string}
11
11
  */
12
12
  export let logoUrl;
13
- /**
13
+ /**
14
14
  * @type {array}
15
15
  */
16
16
  export let pages;
17
- // import logo from "../assets/logo.png";
18
- // import { constants } from "../constants";
19
-
20
- // const { url } = import.meta;
21
- // const modules = import.meta.glob("../../routes/*/*.svelte");
22
- // const navItems = constants.Navigation;
23
-
24
- // function getPages(url, modules) {
25
- // const directory = url
26
- // .replace(/(.*?)\/src\/lib\/components\//, "/")
27
- // .replace(/(.*?)\/src\/routes\//, "/")
28
- // .replace(/(.*?)\/immutable\/pages\//, "/")
29
- // .replace(/(.*?)\/var\/task\//, "/") // Vercel
30
- // .replace(/\/([^/])*.svelte.*/, "/");
31
- // const pageRegex = /\/\+page\.svelte$/;
32
- // const paths = Object.keys(modules)
33
- // .map((path) => path.replace(/^(.\/)/, directory))
34
- // .filter((path) => !/\[.*\]/.test(path))
35
- // .filter((path) => pageRegex.test(path))
36
- // .map((path) => path.replace(pageRegex, ""))
37
- // .map((path) => path || "/")
38
- // .map((path) => path.replace("../../routes/", ""))
39
- // .map((path) => path.replace("../../routes", ""))
40
- // .filter((page) => navItems.hasOwnProperty(page))
41
- // .sort();
42
- // return paths;
43
- // };
44
-
45
- // const pages = getPages(url, modules);
46
17
  </script>
47
18
 
48
- <div class="container">
19
+ <div class="header">
49
20
  <Header>
50
21
  <div slot="logoleft">
51
22
  <a href="/">
@@ -54,17 +25,12 @@
54
25
  </div>
55
26
  <HeaderNav css="nav-overrides">
56
27
  {#each pages as page}
57
- <HeaderNavItem
58
- ><a href={page.path}>{page.name}</a></HeaderNavItem
59
- >
28
+ <HeaderNavItem>
29
+ <a href={page.path}>
30
+ {page.name}
31
+ </a>
32
+ </HeaderNavItem>
60
33
  {/each}
61
34
  </HeaderNav>
62
35
  </Header>
63
36
  </div>
64
-
65
- <style>
66
- a {
67
- font-size: var(--fluid-20) !important;
68
- font-weight: bold;
69
- }
70
- </style>
@@ -5,7 +5,7 @@
5
5
  export let url;
6
6
  </script>
7
7
 
8
- <header>
8
+ <header class="hero">
9
9
  <h1>
10
10
  <slot name="header" />
11
11
  </h1>
@@ -20,12 +20,4 @@
20
20
  </header>
21
21
 
22
22
  <style>
23
- header {
24
- margin-top: var(--fluid-24);
25
- margin-bottom: var(--fluid-48);
26
- text-align: center;
27
- }
28
- h1 {
29
- font-size: var(--fluid-48);
30
- }
31
23
  </style>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@functionalcms/svelte-components",
3
- "version": "0.3.0",
3
+ "version": "0.4.0",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
Binary file
Binary file
Binary file