Skip to content
This repository was archived by the owner on May 29, 2023. It is now read-only.

Commit 8888436

Browse files
author
ugistelmokaitis
committed
Update[landing page]: replace landing page with activity & removed badge button & icon
1 parent d973b16 commit 8888436

File tree

8 files changed

+209
-64
lines changed

8 files changed

+209
-64
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,25 @@
11
{
2-
"id": "10aec4bb-e240-4904-90ff-81e06c00e31e",
3-
"uid": "voluptatum-quo-culpa",
2+
"id": "0f106771-493d-476c-9c07-d17cfa29e837",
3+
"uid": "ex-quo-eos",
44
"type": "home",
55
"data": {
6-
"titleTag": "disintermediate magnetic networks",
7-
"metaDescription": "transform virtual blockchains",
8-
"heroGreetingTitle": "synergize frictionless synergies",
9-
"heroNameTitle": "aggregate vertical markets",
10-
"heroDescription": "deploy bleeding-edge infomediaries",
11-
"badgeButtonPrefix": "generate open-source web services",
12-
"badgeButtonLabel": "monetize best-of-breed vortals",
6+
"titleTag": "reinvent robust e-business",
7+
"metaDescription": "enable e-business eyeballs",
8+
"heroGreetingTitle": "redefine wireless mindshare",
9+
"heroNameTitle": "morph seamless infrastructures",
10+
"heroDescription": "brand one-to-one solutions",
11+
"badgeButtonPrefix": "benchmark user-centric eyeballs",
12+
"badgeButtonLabel": "morph integrated functionalities",
1313
"badgeButtonLink": {
1414
"link_type": "Web",
15-
"url": "https://slicemachine.dev"
15+
"url": "http://twitter.com"
1616
},
17-
"editorWindowTabTitle": "drive 24/7 supply-chains",
18-
"editorWindowContent": "strategize real-time bandwidth",
17+
"editorWindowTabTitle": "visualize viral applications",
18+
"editorWindowContent": "empower cross-media action-items",
1919
"skillsTitle": [
2020
{
2121
"type": "heading1",
22-
"text": "Evolve rich schemas",
22+
"text": "Embrace dot-com interfaces",
2323
"spans": []
2424
}
2525
],
@@ -28,7 +28,7 @@
2828
"skill": [
2929
{
3030
"type": "heading3",
31-
"text": "Productize e-business action-items",
31+
"text": "Architect web-enabled e-business",
3232
"spans": []
3333
}
3434
]
@@ -37,7 +37,7 @@
3737
"skill": [
3838
{
3939
"type": "heading3",
40-
"text": "Engineer visionary synergies",
40+
"text": "Harness ubiquitous synergies",
4141
"spans": []
4242
}
4343
]
@@ -46,7 +46,7 @@
4646
"skill": [
4747
{
4848
"type": "heading3",
49-
"text": "Engineer sexy mindshare",
49+
"text": "Deliver bleeding-edge infomediaries",
5050
"spans": []
5151
}
5252
]
@@ -55,7 +55,7 @@
5555
"skill": [
5656
{
5757
"type": "heading3",
58-
"text": "Synthesize bleeding-edge synergies",
58+
"text": "Streamline vertical ROI",
5959
"spans": []
6060
}
6161
]
@@ -64,7 +64,7 @@
6464
"experienceTitle": [
6565
{
6666
"type": "heading1",
67-
"text": "Syndicate magnetic models",
67+
"text": "Streamline sexy relationships",
6868
"spans": []
6969
}
7070
],
@@ -77,13 +77,29 @@
7777
},
7878
"alt": "Placeholder image",
7979
"copyright": null,
80-
"url": "https://images.unsplash.com/photo-1607582278038-6bebbd4d7b72?w=900&h=500&fit=crop"
80+
"url": "https://images.unsplash.com/photo-1493119508027-2b584f234d6c?w=900&h=500&fit=crop"
8181
},
82-
"companyName": "productize B2C networks",
83-
"companyRole": "benchmark leading-edge schemas",
84-
"companyYear": "transform cutting-edge platforms",
85-
"companyResponsibilities": "incentivize rich web-readiness",
86-
"companyTools": "incubate out-of-the-box vortals"
82+
"companyName": "morph bleeding-edge users",
83+
"companyRole": "productize plug-and-play e-commerce",
84+
"companyYear": "innovate proactive deliverables",
85+
"companyResponsibilities": "innovate revolutionary deliverables",
86+
"companyTools": "harness out-of-the-box channels"
87+
},
88+
{
89+
"companyLogo": {
90+
"dimensions": {
91+
"width": 900,
92+
"height": 500
93+
},
94+
"alt": "Placeholder image",
95+
"copyright": null,
96+
"url": "https://images.unsplash.com/photo-1515378791036-0648a3ef77b2?w=900&h=500&fit=crop"
97+
},
98+
"companyName": "grow out-of-the-box synergies",
99+
"companyRole": "incentivize scalable partnerships",
100+
"companyYear": "seize back-end mindshare",
101+
"companyResponsibilities": "syndicate value-added partnerships",
102+
"companyTools": "integrate bricks-and-clicks deliverables"
87103
},
88104
{
89105
"companyLogo": {
@@ -95,12 +111,14 @@
95111
"copyright": null,
96112
"url": "https://images.unsplash.com/photo-1576662712957-9c79ae1280f8?w=900&h=500&fit=crop"
97113
},
98-
"companyName": "generate dot-com portals",
99-
"companyRole": "architect clicks-and-mortar web-readiness",
100-
"companyYear": "redefine value-added ROI",
101-
"companyResponsibilities": "grow efficient networks",
102-
"companyTools": "empower world-class systems"
114+
"companyName": "whiteboard distributed e-markets",
115+
"companyRole": "exploit open-source infrastructures",
116+
"companyYear": "streamline dot-com functionalities",
117+
"companyResponsibilities": "evolve cross-platform systems",
118+
"companyTools": "extend global web-readiness"
103119
}
104-
]
120+
],
121+
"customActivityEmoji": "aggregate viral infrastructures",
122+
"customActivityTitle": "aggregate cutting-edge relationships"
105123
}
106124
}

components/activity.tsx

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
import type { KeyTextField } from '@prismicio/types';
2+
import type { FC } from 'react';
3+
import useActivity from '../hooks/useActivity';
4+
5+
type ActivityProps = {
6+
customEmoji: KeyTextField;
7+
customTitle?: KeyTextField;
8+
};
9+
10+
const Activity: FC<ActivityProps> = ({ customEmoji, customTitle }) => {
11+
const activity = useActivity();
12+
13+
if (customEmoji && customTitle) {
14+
activity.emoji = customEmoji;
15+
activity.status = customTitle;
16+
}
17+
18+
return (
19+
<div className="inline-flex items-center justify-between rounded-full bg-primary-25 py-1 px-1 pr-4 dark:bg-neutral-65 ">
20+
<span className="ABCWhyteEdu-Medium mr-3 rounded-full bg-primary-100 px-[12px] py-1 font-medium text-neutral-0">
21+
{activity.emoji}
22+
</span>
23+
<span className="ABCWhyteEdu-Medium font-[350] text-neutral-100 dark:text-neutral-0">
24+
I&apos;m currently {activity.status}
25+
</span>
26+
</div>
27+
);
28+
};
29+
30+
export default Activity;

components/badgeButton.tsx

-29
This file was deleted.

customtypes/home/index.json

+16
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,22 @@
175175
}
176176
}
177177
}
178+
},
179+
"Activity": {
180+
"customActivityEmoji": {
181+
"type": "Text",
182+
"config": {
183+
"label": "Custom Activity Emoji",
184+
"placeholder": ""
185+
}
186+
},
187+
"customActivityTitle": {
188+
"type": "Text",
189+
"config": {
190+
"label": "Custom Activity Title",
191+
"placeholder": ""
192+
}
193+
}
178194
}
179195
}
180196
}

hooks/useActivity.tsx

+109
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,109 @@
1+
import { useEffect, useState } from 'react';
2+
3+
type ActivityResponse = {
4+
emoji: string;
5+
status: string;
6+
source?: string;
7+
};
8+
9+
const useActivity = (): ActivityResponse => {
10+
const [status, setStatus] = useState<ActivityResponse>({
11+
emoji: '🤔',
12+
status: 'Not sure',
13+
});
14+
15+
useEffect(() => {
16+
const date = new Date().toLocaleTimeString('en-US', {
17+
timeZone: 'Australia/Sydney',
18+
hour12: false,
19+
hour: 'numeric',
20+
minute: 'numeric',
21+
});
22+
23+
const hour = Number(date.split(':')[0]);
24+
const minute = Number(date.split(':')[1]);
25+
26+
const time = Number(hour * 60 + minute);
27+
28+
if (time >= 0 && time <= 390) {
29+
setStatus({
30+
emoji: '😴',
31+
status: 'sleeping',
32+
});
33+
return;
34+
}
35+
36+
if (time >= 420 && time <= 480) {
37+
setStatus({
38+
emoji: '💪',
39+
status: 'training in the gym',
40+
});
41+
return;
42+
}
43+
44+
if (time >= 500 && time <= 509) {
45+
setStatus({
46+
emoji: '☕️',
47+
status: 'having a coffee',
48+
});
49+
return;
50+
}
51+
52+
if (time >= 510 && time <= 540) {
53+
setStatus({
54+
emoji: '👟',
55+
status: 'going for a walk',
56+
});
57+
return;
58+
}
59+
60+
if (time >= 780 && time <= 810) {
61+
setStatus({
62+
emoji: '🥗',
63+
status: 'having a lunch',
64+
});
65+
return;
66+
}
67+
68+
if (time >= 1050 && time <= 1109) {
69+
setStatus({
70+
emoji: '👟',
71+
status: 'going for a walk',
72+
});
73+
return;
74+
}
75+
76+
if (time >= 1110 && time <= 1169) {
77+
setStatus({
78+
emoji: '🍔',
79+
status: 'having a dinner',
80+
});
81+
return;
82+
}
83+
84+
if (time >= 1170 && time <= 1229) {
85+
setStatus({
86+
emoji: '🍿',
87+
status: 'watching Netflix',
88+
});
89+
return;
90+
}
91+
92+
if (time >= 1230 && time <= 1439) {
93+
setStatus({
94+
emoji: '👨‍💻',
95+
status: 'coding',
96+
});
97+
return;
98+
}
99+
100+
setStatus({
101+
emoji: '💻',
102+
status: 'working',
103+
});
104+
}, []);
105+
106+
return status;
107+
};
108+
109+
export default useActivity;

pages/index.tsx

+4-4
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ import Container from '../components/container';
1414
import BadgeButton from '../components/badgeButton';
1515
import BrowserWindow from '../components/browserWindow';
1616
import richTextComponents from '../components/richTextComponents';
17+
import Activity from '../components/activity';
1718

1819
type IHome = {
1920
data: HomeProps['data'];
@@ -51,10 +52,9 @@ const Home: FC<IHome> = ({ data, settings }) => {
5152
<Container>
5253
<div>
5354
<div className="col-span-8 col-start-3 pt-[8.5rem] text-center lg:pt-44">
54-
<BadgeButton
55-
href={`${docResolver(data.badgeButtonLink)}`}
56-
child1={data.badgeButtonPrefix}
57-
child2={data.badgeButtonLabel}
55+
<Activity
56+
customEmoji={data.customActivityEmoji}
57+
customTitle={data.customActivityTitle}
5858
/>
5959
<h1 className="ABCWhyteEdu-Bold mx-auto mt-6 items-center text-3xl font-bold tracking-[0.02em] text-neutral-100 dark:text-neutral-0 1xs:text-2xl sm:text-1xl lg:text-xl">
6060
{data.heroGreetingTitle}

public/icons/badgebuttonarrow.svg

-1
This file was deleted.

types/home.ts

+2
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ export type HomeProps = PrismicDocumentWithUID<{
2020
badgeButtonPrefix: KeyTextField;
2121
badgeButtonLabel: KeyTextField;
2222
badgeButtonLink: LinkField;
23+
customActivityEmoji: KeyTextField;
24+
customActivityTitle: KeyTextField;
2325
company: companyProps;
2426
skills: skillsProps;
2527
}>;

0 commit comments

Comments
 (0)