-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4c69c68
commit 58c75ca
Showing
7 changed files
with
108 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,15 @@ | ||
# Contact | ||
At this moment the only thing that this module does is rendering the contact page, which is just a static HTML page. | ||
Perhaps at a later moment, this could contain a contact form. | ||
The website makes use of contact forms. With the help of these forms people can send directly a message to either the | ||
entire Future Factory, or just individual teams. | ||
|
||
When a message gets send from the home page, it is sent to all the teams, whereas when a message is send through a team | ||
page it will only end up at that specific team. | ||
|
||
In order to clean all the data and make it safe for processing we use the `ContactForm` object, using a Django | ||
[Form](https://docs.djangoproject.com/en/4.1/topics/forms/). | ||
|
||
The `SendMessage` view, located in `main_site/views.py` takes care of actually sending the email to the correct | ||
destination. At first the form is populated with the data and it is checked. If safe, an email is created and send. | ||
A message indicating that the mail was successfully send will be shown to the user. | ||
|
||
In case the form contains any error, the user will be made aware of these errors. Asking them to fix it. |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# Styling | ||
The front-end of this website has been written with the help of [Bootstrap](https://getbootstrap.com/), | ||
[jQuery](https://jquery.com/) and [Themify Icons](https://themify.me/themify-icons). Furthermore, the website | ||
is based of a template provided by DevCRUD (https://devcrud.com). | ||
|
||
In order to update the generated `.css` and `.js` files [NodeJS](https://nodejs.org/en) in a combination with | ||
[gulp.js](https://gulpjs.com/) is being used. | ||
|
||
When working on the front-end you can find all the images, stylesheets and other files inside the | ||
`/static/public_htnl/assets` folder. When you're done with editing, and you want to see the result locally follow the | ||
following steps: | ||
1. Open a terminal inside of `/static`. | ||
2. If `node_modules` is not yet in this directory, run `npm install` | ||
3. Run `npm start clean`, removing all the old production files. | ||
4. Run `npm start build`, this will start compiling the (s)css, js, compressing images etc. This will take some time, | ||
if you only want to update for example the css, you can do so by running `npm start css` and then `npm start scss`. | ||
|
||
## Deployment | ||
This is a note for the person that is responsible for deploying any updates. When asset files have been updated they | ||
might not always be detected by the input-free `collectstatic` command from Django. So if you are missing any new assets | ||
re-run the `python manage.py collectstatic` command by hand. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters