-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfeatured-project.js
144 lines (133 loc) · 6.16 KB
/
featured-project.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
'use strict';
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
var projects = {
new: {
name: '',
title: '',
type: '',
date: '',
descrip: ''
},
atrophy: {
name: 'atrophy',
title: 'Atrophy',
date: 'Sep 2023',
descrip: 'Interactive VR environment simulating the decay of the self.'
},
mlhacks: {
name: 'mlhacks',
title: 'ML Hacks',
date: 'June 2022',
descrip: 'Website for ML Hacks, Bay Area\'s premier Machine Learning focused hackathon for female and nonbinary high school students.'
},
cero: {
name: 'cero',
title: 'Cero',
date: 'June 2021',
award: '1st Place @ Hydrangea Hacks',
descrip: 'Adventure/platformer game developed with Javascript using the melonJS game engine—complete with original sprites, tilesets, and maps.'
},
bloog: {
name: 'bloog',
title: 'BLOOG',
date: 'May 2021',
descrip: 'Knockoff Quizlet. Built with React/Redux/Firebase.'
},
linescape: {
name: 'linescape',
title: 'LineScape',
date: 'April 2021',
award: 'Best Design @ Superposition V',
descrip: 'SVG drawing tool that provides an interactive visual interface designed to simplify the process of creating line animations for websites.'
},
snowball: {
name: 'snowball',
title: 'Snowball',
date: 'Oct 2020',
award: 'Best Overall Hack @ Creatica 2020',
descrip: 'Crowdfunding Android app created to maximize the impact of individual donations by taking advantage of corporate matching programs.'
},
two: {
name: 'two',
title: '2048',
date: 'July 2020',
descrip: 'Browser-based version of the classic 2048 game built with Javascript and HTML/CSS to include original styling and various themes.'
}
};
var projectArr = [projects.atrophy, projects.mlhacks, projects.cero];
var FeaturedProject = function (_React$Component) {
_inherits(FeaturedProject, _React$Component);
function FeaturedProject(props) {
_classCallCheck(this, FeaturedProject);
return _possibleConstructorReturn(this, (FeaturedProject.__proto__ || Object.getPrototypeOf(FeaturedProject)).call(this, props));
}
_createClass(FeaturedProject, [{
key: 'render',
value: function render() {
return React.createElement(
'div',
null,
projectArr.map(function (project) {
return React.createElement(
'div',
{ className: 'project-container', key: project.name, id: project.name + "PC" },
React.createElement(
'div',
{ className: 'descrip-box' },
React.createElement(
'div',
{ className: 'controls' },
React.createElement(
'div',
{ className: 'dots' },
React.createElement('div', { className: 'hex', id: project.name + "-hex", style: { zIndex: -100 } }),
React.createElement('div', { className: "dot dot1 " + project.name + "-dot", id: project.name + "-dot1" }),
React.createElement('div', { className: "dot dot2 " + project.name + "-dot", id: project.name + "-dot2" }),
React.createElement('div', { className: "dot dot3 " + project.name + "-dot", id: project.name + "-dot3" }),
React.createElement('i', { id: project.name + "-icon", className: 'fas fa-angle-right icon right-arrow' })
)
),
React.createElement(
'div',
{ className: 'descrip-text' },
React.createElement(
'h4',
{ className: 'title' },
project.title
),
React.createElement(
'h6',
{ className: 'date' },
project.date
),
project.award && React.createElement(
'div',
{ className: 'award', id: "award-" + project.name },
project.award
),
React.createElement(
'p',
{ className: 'descrip' },
project.descrip
)
)
),
React.createElement(
'div',
{ className: 'image', id: project.name },
React.createElement('div', { id: project.name + "2", className: 'image-over' }),
React.createElement('div', { id: project.name + "3", className: 'image-over image-over2' }),
React.createElement('div', { id: project.name + "-hover", className: 'white-hover' })
)
);
})
);
}
}]);
return FeaturedProject;
}(React.Component);
var domContainer = document.querySelector('#featured-projects');
ReactDOM.render(React.createElement(FeaturedProject, null), domContainer);