Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1 @@
.idea
.idea
19 changes: 15 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,21 @@
[![StandWithUkraine](https://raw.githubusercontent.com/vshymanskyy/StandWithUkraine/main/badges/StandWithUkraine.svg)](https://github.com/vshymanskyy/StandWithUkraine)
[![GitPod](https://img.shields.io/badge/Contribute%20with-Gitpod-908a85?logo=gitpod)](https://gitpod.io/#https://github.com/digitalandyeu/.github)

GitHub organisation's profile and other public accessible assets.
Generates and hosts public accessible assets and libraries using GitHub pages

See: [`profile/README.md`](/profile/README.md)
### Assets

---
- GitHub profile README.md
- Handlebars templates
- Static generated JSON Data
- Common business assets

Generated by [@digitalandyeu/lib](https://github.com/digitalandyeu/lib)
### Static webpage

Forever free GitHub pages powered hosting

**URL**: [digitalandyeu.github.io/.github](https://digitalandyeu.github.io/.github)

### Administration

Use core team library to maintain this and the other's team libraries [@digitalandyeu/lib](https://github.com/digitalandyeu/lib)
144 changes: 144 additions & 0 deletions data.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,144 @@
import socialsDataRaw from './src/data/socials'
import Team from './src/data/team'
import Contacts from './src/data/contacts'
import { LocalBusinessJsonLd } from 'next-seo'
// import imgAvaAndrii from './'
// import imgAvaPhilipp from './profile/static/img/team/ava_philipp.jpeg'

export const organisation = {
user: 'digitalandyeu',
title: 'DigitalAndy.eu - Web Development, Design & Marketing',
description: 'We are independent digital artists collaboration, united by freaky love for web, technologies, design, and marketing.',
maintainedSinceYear: '2019',
list: {
title: 'We do',
items: ['Websites', 'Brands', 'Advertisements', 'IT support for Online Sales', 'Other small digital solutions for modern business needs'],
},
links: {
title: false,
items: [
{
title: 'Figma starter',
href: 'https://figma.com/file/0AdHJVIm34eSJ0eRissQfe/Starter-%3A-Web?node-id=1%3A12&t=2H9vpif7XKQGlwfp-1',
},
{
title: 'Public data',
href: './profile/data/',
},
{
title: 'Documents folder',
href: './profile/docs/',
},
],
},
}

export namespace JsonLd {
export const websiteJsonLdGenerator = (org: typeof organisation = organisation) => {
return LocalBusinessJsonLd({
action: undefined,
address: undefined,
areaServed: [],
dataArray: [],
geo: undefined,
images: [],
makesOffer: [],
openingHours: undefined,
review: [],
scriptId: '',
servesCuisine: undefined,
useAppDir: false,
id: org.user,
type: 'LocalBusiness',
name: org.title,
url: `https://${org.user}.github.io`,
description: org.description,
sameAs: [],
telephone: '+380 63 000 00 00',
rating: 5,
reviewCount: 1,
priceRange: '$$$',
})
}
}

export const socials = socialsDataRaw

export namespace Finder {
export const linkByID = (searchID: string, data: typeof contacts = contacts) => data.find(({ id }) => id === searchID)
}

export const referrals = [
{
id: 'warp',
href: 'https://app.warp.dev/referral/7DEWJ9',
},
{
id: 'setapp',
href: 'https://go.setapp.com/invite/7DEWJ9',
},
{
id: 'hostinger',
href: 'https://hostinger.com.ua?REFERRALCODE=1ANDRII78',
},
{
id: 'digitalOcean',
href: 'https://m.do.co/c/1a9b1b1b5b5d',
},
]

export const reviewsSources = [
{
id: 'Google',
href: 'https://g.page/r/CZpjtequdbiXEB0/review',
},
{
id: 'Facebook',
href: 'https://www.facebook.com/digitalandy.eu/reviews',
},
{
id: 'LinkedIn',
href: 'https://www.linkedin.com/company/digitalandy-eu',
},
{
id: 'Vkontakte',
lang: 'jsonld',
href: 'https://vk.com/topic-116183169_35088484',
},
]

export const reviews = reviewsSources
export const labels = {
support_ua: true,
gitpod: true,
}

export const map = [
{
id: 'github',
keys: ['org', 'labels'],
},
]

//export const socials = new DataSocials().data

export const resourcesTeam = {
avatars: {
andrii: 'imgAvaAndrii',
philipp: 'imgAvaPhilipp',
},
}

export const resources = {
team: resourcesTeam,
}

export default {
map,
labels,
contacts,
referrals,
socials,
organisation,
resources,
}
41 changes: 41 additions & 0 deletions generate.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
// Generate the static .json files
import fs from 'fs'
import { labels, org, referrals, reviews, socials, team, contacts } from './data'

export const publicOrgPathBase = '.'

export const publicOrgPathProfile = `${publicOrgPathBase}/public/profile`
export const publicOrgPathPublic = `${publicOrgPathProfile}/public`
export const publicOrgPathData = `${publicOrgPathPublic}/data`

export function publicOrgGenerateDataJson(name = 'github', data = {}) {
const path = `${publicOrgPathData}/${name}.json`
fs.writeFileSync(path, JSON.stringify(data, null, 2))
console.log(`publicOrgGenerateDataJson: generating ${path}`, data)
}

export function publicOrgGenerateGenerate() {
publicOrgGenerateDataJson('github', { org, labels })
publicOrgGenerateDataJson('contacts', contacts)
publicOrgGenerateDataJson('referrals', referrals)
publicOrgGenerateDataJson('reviews', reviews)
publicOrgGenerateDataJson('socials', socials)
publicOrgGenerateDataJson('team', team)

// Generate the static profile README.md file
hbs('README.md', publicOrgPathProfile)
hbs('static/humans.txt', publicOrgPathProfile)

console.log('running static/generate.js', {
src: {
basePath: publicOrgPathBase,
pathPublic: publicOrgPathPublic,
pathPublicData: publicOrgPathData,
},
})

let data = new Socials().data
let langs = new Socials().langs
console.log('data', data)
console.log('langs', langs)
}
10 changes: 7 additions & 3 deletions profile/README.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,20 @@
# Web Development, Design & Marketing
# DigitalAndy.eu - Web Development, Design & Marketing

[![StandWithUkraine](https://raw.githubusercontent.com/vshymanskyy/StandWithUkraine/main/badges/StandWithUkraine.svg)](https://github.com/vshymanskyy/StandWithUkraine)
[![GitPod](https://img.shields.io/badge/Contribute%20with-Gitpod-908a85?logo=gitpod)](https://gitpod.io/#https://github.com/digitalandyeu/.github)

We are independent digital artists collaboration, united by freaky love for web, technologies, design, and marketing.

### We do:
### We do

- Websites
- Brands
- Advertisements
- IT support for Online Sales
- Other small digital solutions for modern business needs

[Instagram](https://www.instagram.com/digitalandy.eu) | [Contacts](./../public/data/contacts.json) | [Referrals](./../public/data/referrals.json) | [Reviews](./../public/data/reviews.json) | [Socials](./../public/data/socials.json)
[Figma starter](https://www.figma.com/file/0AdHJVIm34eSJ0eRissQfe/Starter-%3A-Web?node-id=1%3A12&t=2H9vpif7XKQGlwfp-1) | [Public data](./public/data/)

---

<small>Maintained by **@digitalandyeu since 2019.** All rights reserved.</small>
18 changes: 0 additions & 18 deletions public/data/contacts.json

This file was deleted.

18 changes: 0 additions & 18 deletions public/data/referrals.json

This file was deleted.

19 changes: 0 additions & 19 deletions public/data/reviews.json

This file was deleted.

Loading