Skip to content

Commit 9208b2a

Browse files
committed
Improvements in base template.
-New drop down menu activated by a button. -Added Montserrat font.
1 parent 1307226 commit 9208b2a

8 files changed

Lines changed: 238 additions & 39 deletions

File tree

eleventy.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,5 @@ export default async function(eleventyConfig)
44
eleventyConfig.setIncludesDirectory("_includes");
55
eleventyConfig.addPassthroughCopy("src/css");
66
eleventyConfig.addPassthroughCopy("src/img");
7+
eleventyConfig.addPassthroughCopy("src/fonts");
78
};

src/_includes/base.njk

Lines changed: 27 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,21 +8,38 @@
88
</head>
99
<body>
1010
<header>
11-
<img src="/img/bimrocket.svg" alt="" class="logo">
12-
<nav class="menu">
11+
<div class="logo_div">
12+
<img src="/img/bimrocket.svg" alt="" class="logo">
13+
<button class="expand_button">+</button>
14+
</div>
15+
16+
<nav class="menu hidden">
1317
<a href="{{ '/' | url }}">Home</a>
1418
<a href="/features">Features</a>
15-
<a href="/help">Help</a>
19+
<a href="/install">Install</a>
1620
</nav>
1721
</header>
1822

19-
<main>
20-
<div>{{ page.url}}</div>
21-
{{ content | safe }}
22-
</main>
23+
<div class="content">
24+
<main>
25+
<div>{{ page.url}}</div>
26+
27+
{{ content | safe }}
28+
</main>
29+
30+
<footer>
31+
<p>BIMROCKET</p>
32+
</footer>
33+
</div>
34+
35+
<script>
36+
let menu = document.querySelector(".menu");
37+
let button = document.querySelector(".expand_button");
38+
button.addEventListener("click", () => {
39+
menu.classList.toggle("hidden");
40+
});
41+
42+
</script>
2343

24-
<footer>
25-
<p>BIMROCKET</p>
26-
</footer>
2744
</body>
2845
</html>

src/css/styles.css

Lines changed: 108 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,47 +1,141 @@
1-
body {
2-
font-family: sans-serif;
1+
@font-face {
2+
font-family: 'Montserrat';
3+
font-style: normal;
4+
font-weight: 500;
5+
font-display: swap;
6+
src: url(/fonts/montserrat.woff2) format('woff2');
7+
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
8+
U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193,
9+
U+2212, U+2215, U+FEFF, U+FFFD;
10+
}
11+
12+
body
13+
{
14+
font-family: Montserrat, Arial;
15+
font-size: 14px;
316
margin: 0;
417
padding: 0;
18+
display: flex;
19+
flex-direction: column;
20+
height: 100vh;
21+
overflow: hidden;
522
}
623

7-
header
24+
header
825
{
9-
background: #333;
26+
color: white;
27+
display: flex;
28+
align-items: center;
29+
justify-content: center;
30+
font-size: 14px;
31+
transition: all 0.3s ease; /* suaviza el cambio */
32+
background: #444;
33+
display: flex;
34+
flex-direction: column;
35+
flex: 0 0 auto;
1036
}
1137

12-
header img.logo
38+
header .logo_div
1339
{
14-
height: 40px;
40+
display: flex;
41+
width: 100%;
1542
}
1643

17-
.menu {
44+
header .logo_div img.logo
45+
{
46+
height: 48px;
47+
flex-grow: 1;
48+
}
49+
50+
header .logo_div .expand_button
51+
{
52+
width:48px;
53+
margin-left: -48px;
54+
flex-grow: 0;
55+
background: transparent;
56+
color: white;
57+
border: none;
58+
display:none;
59+
}
60+
61+
header .logo_div .expand_button:hover
62+
{
63+
background-color: #666;
64+
}
65+
66+
.menu
67+
{
1868
display: flex;
1969
justify-content: center;
70+
width:100%;
2071
}
2172

22-
.menu a {
73+
.menu a
74+
{
75+
font-size: 18px;
2376
color: white;
2477
padding: 1em;
2578
text-decoration: none;
2679
}
2780

28-
.menu a.active {
81+
.menu a.active
82+
{
2983
background: #555;
3084
}
3185

32-
.menu a:hover {
86+
.menu a:hover
87+
{
88+
background: #600000;
89+
}
90+
91+
body > .content
92+
{
93+
display: flex;
94+
flex-direction: column;
95+
flex: 1 1 auto;
96+
overflow: auto;
97+
height: 100%;
98+
}
99+
100+
main
101+
{
102+
padding: 8px;
103+
flex-grow: 1;
104+
}
105+
106+
footer
107+
{
108+
display: flex;
109+
justify-content: center;
110+
min-height: 200px;
33111
background: #444;
112+
color: #f0f0f0;
113+
flex-grow: 0;
114+
padding: 8px;
34115
}
35116

36117
/* Responsivo: en pantallas menores de 600px, se hace vertical */
37-
@media (max-width: 600px) {
38-
.menu {
118+
@media (max-width: 600px)
119+
{
120+
header .logo_div .expand_button
121+
{
122+
display: block;
123+
}
124+
125+
.menu
126+
{
39127
flex-direction: column;
40-
align-items: stretch;
41128
}
42129

43-
.menu a {
130+
.menu.hidden
131+
{
132+
display: none;
133+
}
134+
135+
.menu a
136+
{
44137
text-align: center;
45138
border-bottom: 1px solid #444;
139+
flex-grow: 1;
46140
}
47141
}

src/features.md

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
---
2+
title: Features
3+
layout: base.njk
4+
---
5+
## features
6+
- Parametric design tool based on [CSG](https://en.wikipedia.org/wiki/Constructive_solid_geometry).
7+
- Supported primitives: solids, profiles (2d shapes) and cords (3d polylines).
8+
- Profile/cord creation and editing.
9+
- Extrusion and revolution of profiles to create solids.
10+
- Union, intersection and subtraction of solids.
11+
- Object transformation (translation, rotation, scale).
12+
- Definition of formulas for object property values.
13+
- Measuring tools (length, angle, area and volume).
14+
- Orbit-Pan-Zoom tool.
15+
- Fly tool (with collision detection and ground distance control).
16+
- Multiple selection of objects.
17+
- Face selection tool.
18+
- Editing of model structure and object properties.
19+
- Dynamic sectioning of models.
20+
- Realistic shading: shadow casting and ambient occlusion.
21+
- Solar simulation tool.
22+
- Vertex, egde and face snapping in the drawing, measurement and transformation tools.
23+
- Scripting tool (using javascript language).
24+
- Reporting tool to check conditions on the model objects (supported reporting formats: BRS and [IDS](https://www.buildingsmart.org/what-is-information-delivery-specification-ids/)).
25+
- Object controllers (a Controller is a program that changes the state of an object when a certain event occurs).
26+
- BIM Inventory tool to list the IFC types, classifications, groups and layers of the model.
27+
- BIM Layout tool to visualize the interior layout of the building.
28+
- BIM Inspector tool to inspect the IFC entities of the model.
29+
- BIM Delta tool to detect changes between two versions of an IFC file.
30+
- Search tool to find model properties by name or by value.
31+
- Histogram tool to visualize the distribution of values ​​for a given property.
32+
- Multiple file storage systems are supported: webdav server, local file system and IndexedDB.
33+
- Load/Export IFC models. Support for multiple IFC schemas (IFC2X3, IFC4 and IFC4X3_ADD2).
34+
- Load/Export models in BRF format (JSON BimRocket format).
35+
- Load/Export models in STL, GLB, Wavefront OBJ and Collada formats.
36+
- Integrated with external services (some of them provided by bimrocket-server)
37+
- Webdav server
38+
- [BCF](https://en.wikipedia.org/wiki/BIM_Collaboration_Format) service (BIM Collaboration Service)
39+
- [bSDD](https://www.buildingsmart.org/users/services/buildingsmart-data-dictionary/) service (buildingSmart Data Dictionary)
40+
- [WFS](https://www.ogc.org/es/publications/standard/wfs/) service (OGC Web Feature Service)
41+
- [Brain4it](http://brain4it.org) (AI platform oriented to the IoT)
42+
- IFCDB service (stores IFC models in external database. In progress)
43+
- Print service (generates a vectorial PDF file)
44+
- Modular design to easily extend functionality.
45+
- Web application with a responsive user interface. Support for touch devices.
46+
- Based on [THREE.js](https://threejs.org) library.
47+
- Built with Maven.

src/features.njk

Lines changed: 0 additions & 9 deletions
This file was deleted.

src/fonts/montserrat.woff2

18.8 KB
Binary file not shown.

src/help.njk

Lines changed: 0 additions & 6 deletions
This file was deleted.

src/install.md

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
---
2+
title: Install
3+
layout: base.njk
4+
---
5+
6+
## Installation methods
7+
Bimrocket can be installed using any of the following methods:
8+
9+
### 1. zip package
10+
This is the simplest method to install Bimrocket.
11+
12+
1. Download the zip package from the latest release: [https://github.com/bimrocket/bimrocket/releases](https://github.com/bimrocket/bimrocket/releases).
13+
There are two versions available:
14+
- One specific for Windows x64 (`bimrocket-tomcat-{version}-windows-x64.zip`) (the JDK is included in this package).
15+
- A generic one (`bimrocket-tomcat-{version}-generic.zip`) for other operating systems (JDK-17 must be installed separately).
16+
2. Uncompress the zip package.
17+
3. Execute the file `<BIMROCKET_TOMCAT>/bin/startup(.bat|sh)` to start the tomcat server.
18+
4. Once started, enter the application by opening this URL: [http://localhost:8080](http://localhost:8080)
19+
5. To stop the tomcat server execute the file `<BIMROCKET_TOMCAT>/bin/shutdown(.bat|sh)`.
20+
21+
### 2. war files
22+
This method allows you to install Bimrocket in a Java servlet container such as Apache Tomcat.
23+
24+
1. Install JDK 17:
25+
- Linux: Most distributions include the JDK in their packaging system:
26+
- Debian/Ubuntu: `sudo apt install openjdk-17-jdk`
27+
- Fedora: `sudo dnf install java-17-openjdk`
28+
- RedHat: `sudo yum install java-17-openjdk`
29+
- Arch linux: `sudo pacman -S jre17-openjdk`
30+
- Other operting systems (Windows, MacOS, ...): Install the jdk-17 installation package from [https://adoptium.net/temurin/releases/](https://adoptium.net/temurin/releases/)
31+
2. Install Apache Tomcat 10.1.x from [https://tomcat.apache.org/download-10.cgi](https://tomcat.apache.org/download-10.cgi).
32+
3. Download the Bimrocket war files from the latest release: [https://github.com/bimrocket/bimrocket/releases](https://github.com/bimrocket/bimrocket/releases)
33+
4. Copy `bimrocket.war` inside `<TOMCAT_HOME>/webapps` folder.
34+
5. Copy `bimrocket-server.war` inside `<TOMCAT_HOME>/webapps` folder.
35+
6. Start the tomcat server (`<TOMCAT_HOME>/bin/startup(.bat|sh)`)
36+
7. Once started, enter the application by opening this URL: [http://localhost:8080/bimrocket](http://localhost:8080/bimrocket)
37+
8. To stop the tomcat server execute the file `<TOMCAT_HOME>/bin/shutdown(.bat|sh)`.
38+
39+
### 3. docker containers
40+
This section describes the procedure to install Bimrocket using docker containers.
41+
42+
There are two docker images, one for the frontend and another one for the backend. Instructions for deploying these containers are described below:
43+
44+
- [Frontend docker container instructions](https://github.com/bimrocket/bimrocket/tree/master/bimrocket-webapp/docker)
45+
- [Backend docker container instructions](https://github.com/bimrocket/bimrocket/tree/master/bimrocket-server/docker)
46+
47+
48+
## Default credentials
49+
Some Bimrocket services (like BCF and cloudfs) may require authentication. These are the default credentials:
50+
- Username: `admin`
51+
- Password: `bimrocket`
52+
53+
The `admin` password can be change via the Bimrocket server configuration file. More details about server configuration can be found here:
54+
55+
[Server configuration](https://github.com/bimrocket/bimrocket/wiki/bimrocket-server-configuration)

0 commit comments

Comments
 (0)