Skip to content

Commit 9dfec0d

Browse files
committed
Site is now live!
1 parent f02a25a commit 9dfec0d

11 files changed

Lines changed: 203 additions & 39 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# [Phenomic](https://github.com/MoOx/phenomic) phenomic-theme-base
1+
# My static website
22

33
## Install dependencies
44

deploy.cmd

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
ECHO OFF
2+
3+
FOR /F "tokens=* USEBACKQ" %%F ^
4+
IN (`node -e "process.stdout.write(require('./package.json').repository)"`) ^
5+
DO SET GIT_DEPLOY_REPO=%%F
6+
7+
IF NOT EXIST dist (
8+
ECHO Build is necessary before deploying
9+
EXIT /B 1
10+
)
11+
12+
CD dist
13+
IF EXIST .git (RMDIR .git /s /q)
14+
15+
git init && ^
16+
git add . && ^
17+
git commit -m "Deploy of GitHub Pages" && ^
18+
git push --force "%GIT_DEPLOY_REPO%" master

package.json

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"private": true,
33
"name": "aharshac-web",
4-
"homepage": "https://aharshac.github.io",
4+
"homepage": "https://alvaharsha.me/",
55
"repository": "https://github.com/aharshac/aharshac.github.io.git",
66
"scripts": {
77
"lint:js": "eslint --ignore-path .gitignore --fix .",
@@ -10,10 +10,12 @@
1010
"start": "phenomic start",
1111
"build": "phenomic build",
1212
"pretest": "npm run lint",
13-
"test": "npm run build"
13+
"test": "npm run build",
14+
"predeploy": "npm run build",
15+
"deploy": "deploy.cmd"
1416
},
1517
"phenomic": {
16-
"CNAME": false
18+
"CNAME": true
1719
},
1820
"#babel": "webpack-(development|production) are useful for webpack 2, otherwise use development|production",
1921
"babel": {

src/components/Footer/index.css

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
.footer {
22
text-align: center;
3-
padding: 0px 20px 40px 20px;
4-
opacity: 0.8;
3+
padding: 0px 20px 10px 20px;
4+
opacity: 0.7;
5+
font-size: 0.85rem;
56
}
67

78
.phenomicReference {

src/components/PagePreview/index.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,4 +77,5 @@
7777
border-bottom: 0 !important;
7878
text-decoration: none !important;
7979
opacity: 0.7;
80+
padding-bottom: 2px;
8081
}

src/components/Tag/index.css

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
11
.tag {
22
display: inline-flex;
3-
background-color: #eee;
3+
background-color: #efefef;
44
border-radius: 830726em;
55
padding: 0 0.9em;
66
justify-content: space-around;
77
align-items: center;
88
height: 2.5em;
99
line-height: 1.6em;
1010
font-size: 0.8em;
11-
margin: 0.3em 0;
11+
margin: 0.3em 0 0.3em 0.5em;
1212
white-space: nowrap;
13+
box-shadow: 1px 1px 2px #bbb;
1314

1415
& > span {
1516
margin-right: 0.5em;

src/layouts/Homepage/About.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ const About = () => (
3434
<p>
3535
My short term goal is to do Master's <Emoji text="school"/> in Mechatronics from a reputed university <Emoji text="mag"/>.
3636
In the long term, I'd like to start my own precision manufacturing company <Emoji text="factory"/> and
37-
provide employment to many people <Emoji text="family_man_woman_girl_boy"/>.
37+
provide employment to many people. <Emoji text="fast_forward"/>
3838
</p>
3939
</section>
4040
);

src/layouts/Homepage/Interests.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@ import Tag from '../../components/Tag';
66
const Interests = () => (
77
<section>
88
<ColoredH2>Interests</ColoredH2>
9-
<Tag text="aeromodelling" emoji="airplane"/>{', '}
10-
<Tag text="blood donation" emoji="syringe"/>{', '}
11-
<Tag text="battlefield gamer" emoji="video_game"/>{', '}
12-
<Tag text="programming" emoji="computer"/>{', '}
13-
<Tag text="reading" emoji="books"/>{', '}
14-
<Tag text="swimming" emoji="swimming_man"/>{', '}
9+
<Tag text="aeromodelling" emoji="airplane"/>
10+
<Tag text="blood donation" emoji="syringe"/>
11+
<Tag text="battlefield" emoji="video_game"/>
12+
<Tag text="programming" emoji="computer"/>
13+
<Tag text="reading" emoji="books"/>
14+
<Tag text="swimming" emoji="swimming_man"/>
1515
<Tag text="tv series" emoji="tv"/>
1616
</section>
1717
);

src/layouts/Page/index.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ const Page = (
2222
header,
2323
footer,
2424
children,
25+
noHero,
2526
},
2627
{
2728
metadata: { networks: { twitter_id } },
@@ -34,6 +35,8 @@ const Page = (
3435

3536
const metaTitle = head.metaTitle ? head.metaTitle : head.title
3637

38+
const showHeader = !(head.noHero || noHero);
39+
3740
const socialImage = head.hero && head.hero.match("://") ? head.hero
3841
: joinUri(process.env.PHENOMIC_USER_URL, head.hero)
3942

@@ -66,7 +69,7 @@ const Page = (
6669
background: `#111 url(${ head.hero }) 50% 50% / cover`,
6770
}}
6871
>*/}
69-
{ !head.noHero &&
72+
{ showHeader &&
7073
<ProgressiveImage
7174
src={head.hero || cover}
7275
responsive={head.hero ? undefined : coverResponsive}
@@ -113,6 +116,7 @@ Page.propTypes = {
113116
body: PropTypes.string,
114117
header: PropTypes.element,
115118
footer: PropTypes.element,
119+
noHero: PropTypes.bool,
116120
}
117121

118122
Page.contextTypes = {

src/layouts/Post/index.css

Lines changed: 86 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,88 @@
1-
.header {
1+
.page {
2+
display: flex;
3+
flex-direction: column;
4+
}
5+
6+
.wrapper {
27
display: flex;
3-
justify-content: center;
4-
opacity: 0.6;
5-
font-size: 0.8rem;
6-
margin-bottom: 1rem;
8+
flex-direction: column;
9+
align-self: center;
10+
width: 100%;
11+
max-width: var(--maxWidth);
12+
padding: 1rem 0.75rem;
13+
14+
@media (--mobile) {
15+
padding-top: 0;
16+
}
17+
}
18+
19+
.header {
20+
display: block;
21+
font-size: 1em;
22+
margin-bottom: 2.5em;
23+
text-align: center;
24+
border-bottom: 1px solid #ccc;
25+
padding-bottom: 1em;
26+
27+
@media (--mobile) {
28+
margin-bottom: 1.5em;
29+
padding-bottom: 0.5em;
30+
}
31+
}
32+
33+
.heading {
34+
color: var(--colorText);
35+
letter-spacing: 1px;
36+
margin: 0.2em 0;
37+
border-bottom: 0;
38+
39+
@media (--mobile) {
40+
line-height: 1.4em;
41+
margin-top: 0;
42+
}
43+
}
44+
45+
.date {
46+
font-size: 0.8em;
47+
color: var(--colorNeutral);
48+
display: block;
49+
/*letter-spacing: 0.2em;*/
50+
}
51+
52+
53+
.pageContent {
54+
margin: 1rem 0;
55+
}
56+
57+
.body {
58+
& a {
59+
color: var(--colorPrimary);
60+
transition: all 0.2s;
61+
text-decoration: none;
62+
border-bottom: 1px solid transparent;
63+
64+
&:hover {
65+
opacity: 1;
66+
color: color(var(--colorPrimary) l(- 5%));
67+
border-bottom-color: var(--colorPrimary);
68+
}
69+
}
70+
71+
/* handy for content */
72+
& img {
73+
max-width: 100%;
74+
}
75+
}
76+
77+
.hero {
78+
max-width: 90% !important;
79+
display: block;
80+
margin: 0 auto 2.5em auto;
81+
width: auto;
82+
height: auto;
83+
84+
@media (--mobile) {
85+
max-width: 100% !important;
86+
margin-bottom: 0.2em;
87+
}
788
}

0 commit comments

Comments
 (0)