File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- # [ Phenomic ] ( https://github.com/MoOx/phenomic ) phenomic-theme-base
1+ # My static website
22
33## Install dependencies
44
Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 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 ." ,
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" : {
Original file line number Diff line number Diff line change 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 {
Original file line number Diff line number Diff line change 7777 border-bottom : 0 !important ;
7878 text-decoration : none !important ;
7979 opacity : 0.7 ;
80+ padding-bottom : 2px ;
8081}
Original file line number Diff line number Diff line change 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.3 em 0.5 em ;
1212 white-space : nowrap;
13+ box-shadow : 1px 1px 2px # bbb ;
1314
1415 & > span {
1516 margin-right : 0.5em ;
Original file line number Diff line number Diff 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) ;
Original file line number Diff line number Diff line change @@ -6,12 +6,12 @@ import Tag from '../../components/Tag';
66const 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) ;
Original file line number Diff line number Diff 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
118122Page . contextTypes = {
Original file line number Diff line number Diff line change 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}
You can’t perform that action at this time.
0 commit comments