This repo contains the website of Open Elements. The website is still work in progress. In future the website will be available at https://www.open-elements.de and https://www.open-elements.com.
Netlify status of English page:
Netlify status of German page:
The project is based on Hugo and you need to install Hugo to build the website. Once Hugo is installed you can host the website on localhost by executing to following command from the root folder of the repository:
hugo serve
While the process is running the English (default) version of the website can be reached at http://localhost:1313/ and the German can be reached at http://localhost:1314/.
Install tailwindcss via npm, and create your tailwind.config.js file in the root folder.
npm install -D tailwindcss
npx tailwindcss init
Add the paths to all of your template files in your tailwind.config.js file.
content: [
"content/**/*.md", "layouts/**/*.html"
],
Create 'input.css' file in the root folder and add the @tailwind directives for each of Tailwind’s layers to your input CSS file.
@tailwind base;
@tailwind components;
@tailwind utilities;
Add the following code in 'Package.json'
"scripts": {
"dev:css": "npx tailwindcss -i input.css -o assets/css/style.css -w",
"dev:hugo": "hugo server",
"dev": "run-p dev:*",
"build:css": "NODE_ENV=production npx tailwindcss -i input.css -o assets/css/style.css -m",
"build:hugo": "hugo",
"build": "run-s build:*"
},
For development run the following command in terminal.
npm run dev
For production ready css, run the following command in terminal.
npm run build