Skip to content

Commit

Permalink
Merge pull request #180 from spryker-community/Rollback-to-2aca897
Browse files Browse the repository at this point in the history
Rollback to 2aca897
  • Loading branch information
gxjansen authored Nov 29, 2024
2 parents 0f3c1ae + 1b9b3dd commit e039294
Show file tree
Hide file tree
Showing 8 changed files with 160 additions and 180 deletions.
21 changes: 13 additions & 8 deletions astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,15 @@ import { fileURLToPath } from 'node:url';
import mdx from '@astrojs/mdx';
import netlify from "@astrojs/netlify";
import icon from "astro-icon";

import react from "@astrojs/react";
import markdoc from "@astrojs/markdoc";
import keystatic from '@keystatic/astro'

// https://astro.build/config
export default defineConfig({
site: "https://commercequest.space",
// https://docs.astro.build/en/guides/images/#authorizing-remote-images
site: "https://commercequest.space/",
image: {
service: {
entrypoint: 'astro/assets/services/sharp'
Expand All @@ -23,7 +25,7 @@ export default defineConfig({
integrations: [
icon({
include: {
mdi: ["linkedin", "github"],
mdi: ["linkedin", "github"], // Add any other icon names you need
},
}),
tailwind(),
Expand All @@ -45,6 +47,7 @@ export default defineConfig({
}
},
lastUpdated: true,
// https://starlight.astro.build/guides/sidebar/
sidebar: [{
label: "Community Guides",
autogenerate: {
Expand All @@ -70,7 +73,11 @@ export default defineConfig({
autogenerate: {
directory: "other"
}
}],
}
/* {
label: "[Templates]]",
autogenerate: { directory: "templates" },
}, */],
social: {
github: "https://github.com/spryker-community"
},
Expand All @@ -86,13 +93,13 @@ export default defineConfig({
tag: "meta",
attrs: {
property: "og:image",
content: "https://commercequest.space/social.webp"
content: "https://commercequest.space/" + "/social.webp"
}
}, {
tag: "meta",
attrs: {
property: "twitter:image",
content: "https://commercequest.space/social.webp"
content: "https://commercequest.space/" + "/social.webp"
}
}]
}),
Expand Down Expand Up @@ -125,7 +132,5 @@ export default defineConfig({
}]
}
},
adapter: netlify({
functionPerRoute: true
})
adapter: netlify()
});
158 changes: 81 additions & 77 deletions keystatic.config.ts
Original file line number Diff line number Diff line change
@@ -1,132 +1,136 @@
import type { Config } from '@keystatic/core';
import { config, fields, collection } from '@keystatic/core';

export default config({
const keystaticConfig: Config = {
storage: {
kind: 'github',
repo: {
owner: 'spryker-community',
name: 'commercequest-website'
}
kind: 'cloud',
},
cloud: {
project: 'commercequest/cq-astro',
},
ui: {
brand: {
name: 'CommerceQuest Admin',
},
navigation: {
Content: ['freelancers']
}
},
collections: {
freelancers: collection({
label: 'Freelancers',
path: 'src/content/freelancers/*',
slugField: 'firstName',
format: 'yaml',
slugField: 'slug',
schema: {
firstName: fields.text({
firstName: fields.text({
label: "First Name",
validation: { length: { min: 1 } }
}),
lastName: fields.text({
lastName: fields.text({
label: "Last Name",
validation: { length: { min: 1 } }
}),
photo: fields.text({
label: "Photo",
slug: fields.text({
label: "Slug",
validation: { length: { min: 1 } }
}),
headline: fields.text({
label: "Headline"
photo: fields.image({
label: "Photo",
directory: "src/images/freelancers",
publicPath: "/src/images/freelancers",
validation: { isRequired: true }
}),
headline: fields.text({
label: "Headline",
}),
availability: fields.text({
availability: fields.text({
label: "Availability",
validation: { length: { min: 1 } }
validation: { isRequired: true }
}),
location: fields.text({
location: fields.text({
label: "Location",
validation: { length: { min: 1 } }
validation: { isRequired: true, length: { min: 1 } }
}),
countryCode: fields.text({
countryCode: fields.text({
label: "Country Code",
validation: { length: { min: 2, max: 2 } }
}),
language: fields.text({
language: fields.text({
label: "Languages",
validation: { length: { min: 1 } }
validation: { isRequired: true }
}),
shortPitch: fields.text({
shortPitch: fields.text({
label: "Short Pitch",
multiline: true
multiline: true,
}),
linkedIn: fields.url({
label: "LinkedIn URL",
}),
linkedIn: fields.url({
label: "LinkedIn URL"
github: fields.url({
label: "GitHub URL",
}),
github: fields.url({
label: "GitHub URL"
certifications: fields.multiselect({
label: "Certifications",
options: [
{ label: "Backend Developer Certified", value: "Backend Developer" },
{ label: "Solution Architect Certified", value: "Solution Architect" }
],
}),
sprykerCertifications: fields.text({
sprykerCertifications: fields.text({
label: "Spryker Certifications",
multiline: true
}),
skills: fields.array(
fields.select({
label: "Skill",
options: [
{ label: "Frontend", value: "Frontend" },
{ label: "Back End", value: "Back End" },
{ label: "Architecture", value: "Architecture" },
{ label: "Project Management", value: "Project Management" },
{ label: "Fullstack", value: "Fullstack" },
{ label: "Team Lead", value: "Team Lead" },
{ label: "Tech Lead", value: "Tech Lead" }
],
defaultValue: "Back End"
}),
{
label: "Skills",
itemLabel: props => props.value
}
),
timezoneRange: fields.text({
label: "Timezone Range"
}),
yearStartedWebDev: fields.integer({
multiline: true,
}),
skills: fields.multiselect({
label: "Skills",
options: [
{ label: "Frontend", value: "Frontend" },
{ label: "Back End", value: "Back End" },
{ label: "Architecture", value: "Architecture" },
{ label: "Project Management", value: "Project Management" },
{ label: "Fullstack", value: "Fullstack" },
{ label: "Team Lead", value: "Team Lead" },
{ label: "Tech Lead", value: "Tech Lead" }
]
}),
timezoneRange: fields.text({
label: "Timezone Range",
}),
yearStartedWebDev: fields.integer({
label: "Year Started Web Development",
validation: { min: 1980, max: 2050 }
}),
yearStartedSpryker: fields.integer({
yearStartedSpryker: fields.integer({
label: "Year Started with Spryker",
validation: { min: 1980, max: 2050 }
}),
references: fields.text({
references: fields.text({
label: "References",
multiline: true
multiline: true,
}),
idealCustomer: fields.text({
idealCustomer: fields.text({
label: "Ideal Customer",
multiline: true
multiline: true,
}),
locationFlexibility: fields.text({
label: "Location Flexibility"
locationFlexibility: fields.text({
label: "Location Flexibility",
}),
otherCertifications: fields.text({
label: "Other Certifications"
otherCertifications: fields.text({
label: "Other Certifications",
}),
employmentType: fields.text({
label: "Employment Type"
employmentType: fields.text({
label: "Employment Type",
}),
contact: fields.text({
contact: fields.text({
label: "Contact Email",
validation: { length: { min: 1 } }
}),
forumProfile: fields.url({
label: "Forum Profile URL"
forumProfile: fields.url({
label: "Forum Profile URL",
}),
isVisible: fields.checkbox({
isVisible: fields.checkbox({
label: "Is Visible",
defaultValue: true
})
}
})
}
});
defaultValue: true,
}),
},
}),
},
};

export default keystaticConfig;
34 changes: 0 additions & 34 deletions netlify.toml

This file was deleted.

Loading

0 comments on commit e039294

Please sign in to comment.