Commit a11eb8c6 authored by Alexandre Delanoë's avatar Alexandre Delanoë

[FEAT] Home front in purescript with django backend (need to be cleaned, just for poc).

parent 9d9d7b37
......@@ -37,10 +37,7 @@ of security.
The core team at the origin of Gargantext is :
* David Chavalarias, principal investigator
* Alexandre Delanoë, project manager
* Samuel Castillo J., developer
* Romain Loth, developer
* Mathieu Rodic, developer
* Constance de Quatrebarbes, developer
* Simon Murail, developer
# Host institutions of this project
* CNRS labs ISC-PIF (Institut des Systèmes Complexes de Paris Île de France)
......
......@@ -61,7 +61,9 @@ ROOT_URLCONF = 'gargantext.backend.urls'
TEMPLATES = [
{
'BACKEND': 'django.template.backends.django.DjangoTemplates',
'DIRS': [],
'DIRS': [
os.path.join(BASE_DIR, 'gargantext/backend/templates'),
],
'APP_DIRS': True,
'OPTIONS': {
'context_processors': [
......
{% load staticfiles %}
<!doctype>
<html>
<head>
<meta charset="utf-8"/>
<title>CNRS GarganText</title>
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<link href="{% static "css/bootstrap.css" %}" rel="stylesheet">
<link href="{% static "css/menu.css" %}" rel="stylesheet" type="text/css" />
<link href="{% static "css/Login.css" %}" rel="stylesheet">
<link href="{% static "css/login.min.css" %}" rel="stylesheet">
</head>
<body>
<div id="app"></div>
<script src="{% static "bundle.js" %}" ></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
<script src="{% static "js/bootstrap.min.js" %}" ></script>
</body>
</html>
......@@ -19,7 +19,10 @@ from django.views.generic.base import RedirectView as Redirect
from django.contrib.staticfiles.storage import staticfiles_storage as static
from rest_framework_jwt.views import obtain_jwt_token
from gargantext.backend.views import home
urlpatterns = [
url(r'^$', home, name='home'),
url(r'^admin/', admin.site.urls),
url(r'^favicon.ico$', Redirect.as_view(url=static.url('favicon.ico'),
permanent=False), name="favicon"),
......
from gargantext.util.http import render
def home(request):
'''Home describes the platform.
A video draws the narratives.
If not logged a project test is shown.
'''
return render(
template_name = 'pages/main/home.html',
request = request,
# context = {
# 'debug': settings.DEBUG,
# 'user': request.user,
# 'date': datetime.datetime.now(),
# 'paragraph_gargantua': paragraphs.gargantua(),
# 'paragraph_lorem' : paragraphs.lorem(),
# 'paragraph_tutoreil': paragraphs.tutoreil(),
# 'languages': USER_LANG,
# 'user_parameters': get_user_params(request.user)
# },
)
This diff is collapsed.
.logoSmall {
line-height:15px;
height:10px;
padding: 10px 10px;
}
#logo-designed {
border:15px;
}
#logo-designed img {
height:150px;
border:3px solid white;
}
#funnyimg {
border:2px solid black;
}
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This source diff could not be displayed because it is too large. You can view the blob instead.
This diff is collapsed.
This source diff could not be displayed because it is too large. You can view the blob instead.
/* styles for menu.html template (navbar etc) */
#dafixedtop .navbar-text, #graphsfixedtop .navbar-text {
margin: 0 ;
padding-top: 15px;
padding-bottom: 15px;
float: none;
}
#corporatop.nav-tabs > li {
padding-left:1;
padding-right:1;
}
#corporatop.nav-tabs > li > a {
padding-top: 8;
padding-bottom: 8;
line-height: .85;
margin-bottom: -5px;
}
.exportbtn {
/* border: 1px solid #333 ; */
margin-top:17px ; /* valigns with bootstrap h2 */
}
.btn .glyphicon {
/* glyphicons are always rendered too high within bootstrap buttons */
vertical-align:middle
}
/* graph name => editable input => submitName() => minimsg */
.editable {
color: grey ;
}
#graphname-edit {
color: white;
background-color: transparent;
border: none;
max-width: 8em;
}
.minimsg {
font-size: .7em ;
padding: 7p0x 9px;
}
.minimsg * {
line-height: 100%;
}
.logoSmall {
line-height:15px;
height:10px;
padding: 10px 10px;
}
#logo-designed {
border:15px;
}
#logo-designed img {
height:150px;
border:3px solid white;
}
#funnyimg {
border:2px solid black;
}
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This source diff could not be displayed because it is too large. You can view the blob instead.
This diff is collapsed.
This source diff could not be displayed because it is too large. You can view the blob instead.
/* styles for menu.html template (navbar etc) */
#dafixedtop .navbar-text, #graphsfixedtop .navbar-text {
margin: 0 ;
padding-top: 15px;
padding-bottom: 15px;
float: none;
}
#corporatop.nav-tabs > li {
padding-left:1;
padding-right:1;
}
#corporatop.nav-tabs > li > a {
padding-top: 8;
padding-bottom: 8;
line-height: .85;
margin-bottom: -5px;
}
.exportbtn {
/* border: 1px solid #333 ; */
margin-top:17px ; /* valigns with bootstrap h2 */
}
.btn .glyphicon {
/* glyphicons are always rendered too high within bootstrap buttons */
vertical-align:middle
}
/* graph name => editable input => submitName() => minimsg */
.editable {
color: grey ;
}
#graphname-edit {
color: white;
background-color: transparent;
border: none;
max-width: 8em;
}
.minimsg {
font-size: .7em ;
padding: 7p0x 9px;
}
.minimsg * {
line-height: 100%;
}
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
<!doctype>
<html>
<head>
<meta charset="utf-8"/>
<title>CNRS GarganText</title>
<link href="./dist/css/bootstrap.min.css" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="./dist/css/menu.css"/>
</head>
<body>
<div id="app"></div>
<script src="bundle.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
<script src="../dist/js/bootstrap.min.js"></script>
</body>
</html>
This diff is collapsed.
This diff is collapsed.
// This file is autogenerated via the `commonjs` Grunt task. You can require() this file in a CommonJS environment.
require('../../js/transition.js')
require('../../js/alert.js')
require('../../js/button.js')
require('../../js/carousel.js')
require('../../js/collapse.js')
require('../../js/dropdown.js')
require('../../js/modal.js')
require('../../js/tooltip.js')
require('../../js/popover.js')
require('../../js/scrollspy.js')
require('../../js/tab.js')
require('../../js/affix.js')
\ No newline at end of file
This diff is collapsed.
This diff is collapsed.
// This file is autogenerated via the `commonjs` Grunt task. You can require() this file in a CommonJS environment.
require('../../js/transition.js')
require('../../js/alert.js')
require('../../js/button.js')
require('../../js/carousel.js')
require('../../js/collapse.js')
require('../../js/dropdown.js')
require('../../js/modal.js')
require('../../js/tooltip.js')
require('../../js/popover.js')
require('../../js/scrollspy.js')
require('../../js/tab.js')
require('../../js/affix.js')
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment