edited style website

This commit is contained in:
alicestrt 2020-10-17 16:21:22 +02:00
parent b69b03a10d
commit e13ee35019
8 changed files with 167 additions and 281 deletions

View File

@ -1,13 +1,31 @@
/* Everything*/ /* Everything*/
@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@300&family=Source+Sans+Pro:wght@300&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Harmattan&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Asul&display=swap');
* { * {
border: 0px black solid; border: 0px black solid;
} }
.container-fluid {
overflow: hidden;
}
.bg {
/* background-image: url("/static/images/book.jpeg");*/
background-image: linear-gradient(#CDCEC9, #9494A0, #652A2E);
height: 100%;
background-repeat: no-repeat;
background-size: cover;
background-position: center;
}
/*Main areas*/ /*Main areas*/
.map_area { .map_area {
text-align: center; text-align: center;
margin-top: 20px; margin-top: 20px;
height:80%; margin-bottom: 20px;
margin-right: 10px;
} }
.media_area { .media_area {
margin-top: 10px; margin-top: 10px;
@ -26,14 +44,41 @@
.node text { .node text {
pointer-events: none; pointer-events: none;
font: 10px sans-serif;
}
/* Node styling */
#ahmed text {
fill: #703022;
font-size: 20px;
font-family: 'Asul', sans-serif;
}
#mevlana text {
fill: #703022;
font-size: 20px;
font-family: 'Asul', sans-serif;
}
#haci text {
fill: #703022;
font-size: 20px;
font-family: 'Asul', sans-serif;
} }
#dadaloglu text { #dadaloglu text {
fill:red; fill: #C85E40;
font-size: 20px;
font-family: 'Asul', sans-serif;
} }
#dedekorkut text {
fill: #C85E40;
font-size: 20px;
font-family: 'Asul', sans-serif;
}
svg{ width:100%; height:200%; } svg{ width:100%; height:200%; }
path{ path{
@ -62,11 +107,13 @@ stroke-dasharray:6px;
/* text area */ /* text area */
.thesis { .thesis {
overflow-y: scroll; overflow-y: scroll;
max-height:300px; max-height:400px;
scroll-behavior: smooth; scroll-behavior: smooth;
font-size: 1em; font-size: 1em;
border: 1px black solid; border: 1px black solid;
padding: 1em; padding: 0.5em;
margin-right: 10px;
margin-top: 10px;
} }
h1 { h1 {
@ -78,8 +125,20 @@ h2 {
} }
/* background audio */ /* background audio */
audio {
width:100%;
.play-stop {
position: absolute;
bottom: 1.2em;
z-index: 1;
margin-left: calc( 50% - 1.8em );
overflow: hidden;
font-size: 20px;
font-weight: bold;
}
.play-stop:hover {
color: #AEB10A;
} }
/* circles */ /* circles */
@ -95,14 +154,7 @@ audio {
} }
@media all and (max-width: 350px) { @media all and (max-width: 350px) {
#first_circle {
width: 100%;
height: 100%;
}
#second_circle {
width: 100%;
height: 100%;
}
} }
draggable { draggable {
position: absolute; position: absolute;

42
static/js/d3_map.js vendored
View File

@ -1,5 +1,5 @@
var width = 960, var width = 500,
height = 700 height = 400
var svg = d3.select(".map_area").append("svg") var svg = d3.select(".map_area").append("svg")
.attr("width", width) .attr("width", width)
@ -7,8 +7,8 @@ var svg = d3.select(".map_area").append("svg")
var force = d3.layout.force() var force = d3.layout.force()
.gravity(0.01) .gravity(0.01)
.distance(400) .distance(100)
.charge(-100) .charge(-50)
.size([width, height]); .size([width, height]);
d3.json("/static/js/group1.json", function(error, json) { d3.json("/static/js/group1.json", function(error, json) {
@ -29,6 +29,7 @@ d3.json("/static/js/group1.json", function(error, json) {
.enter().append("g") .enter().append("g")
.attr("class", "node") .attr("class", "node")
.attr("id", function(d){return d.id}) .attr("id", function(d){return d.id})
// .style("fill",function (d) { return 'red'; }) // .style("fill",function (d) { return 'red'; })
// .on("click", function(d){ // .on("click", function(d){
// scrolldiv(d); // scrolldiv(d);
@ -38,7 +39,7 @@ d3.json("/static/js/group1.json", function(error, json) {
.call(force.drag); .call(force.drag);
node.append("image") node.append("image")
.attr("xlink:href", "/static/images/circle.png") .attr("xlink:href", "/static/images/squig2.png")
.attr("x", -8) .attr("x", -8)
.attr("y", -8) .attr("y", -8)
.attr("width", 16) .attr("width", 16)
@ -56,9 +57,40 @@ d3.json("/static/js/group1.json", function(error, json) {
.attr("y2", function(d) { return d.target.y; }); .attr("y2", function(d) { return d.target.y; });
node.attr("transform", function(d) { return "translate(" + d.x + "," + d.y + ")"; }); node.attr("transform", function(d) { return "translate(" + d.x + "," + d.y + ")"; });
// node.each(collide(0.5)); //Added
}); });
// no overlapping
//var padding = 10, // separation between circles
// radius=8;
//function collide(alpha) {
// var quadtree = d3.geom.quadtree(graph.nodes);
// return function(d) {
// var rb = 2*radius + padding,
// nx1 = d.x - rb,
// nx2 = d.x + rb,
// ny1 = d.y - rb,
// ny2 = d.y + rb;
// quadtree.visit(function(quad, x1, y1, x2, y2) {
// if (quad.point && (quad.point !== d)) {
// var x = d.x - quad.point.x,
// y = d.y - quad.point.y,
// l = Math.sqrt(x * x + y * y);
// if (l < rb) {
// l = (l - rb) / l * alpha;
// d.x -= x *= l;
// d.y -= y *= l;
// quad.point.x += x;
// quad.point.y += y;
// }
// }
// return x1 > nx2 || x2 < nx1 || y1 > ny2 || y2 < ny1;
// });
// };
//}
// scripts for mouse events // scripts for mouse events
$("#dadaloglu").click(function(){ $("#dadaloglu").click(function(){
$("#showdadaloglu").fadeIn() $("#showdadaloglu").fadeIn()

View File

@ -7,32 +7,39 @@
}, },
{ {
"name": "Dedekorkut", "name": "Dedekorkut",
"group": 1 "group": 1,
"id":"dedekorkut"
}, },
{ {
"name": "Aşık Nesimi", "name": "Aşık Nesimi",
"group": 1 "group": 1,
"id":"asikN"
}, },
{ {
"name": "Aşık Ali İzzet", "name": "Aşık Ali İzzet",
"group": 1 "group": 1,
"id":"asikA"
}, },
{ {
"name": "Karacaoğlan", "name": "Karacaoğlan",
"group": 1 "group": 1,
"id":"karacaoglan"
}, },
{ {
"name": "Aşık Mahzuni Şerif", "name": "Aşık Mahzuni Şerif",
"group": 1 "group": 1,
"id":"asikM"
}, },
{ {
"name": "Aşık Veysel", "name": "Aşık Veysel",
"group": 1 "group": 1,
"id":"asikV"
} }
, ,
{ {
"name": "Neşet Ertaş", "name": "Neşet Ertaş",
"group": 1 "group": 1,
"id":"neset"
} }
, ,
{ {
@ -44,41 +51,50 @@
, ,
{ {
"name": "Ali Ekber Çiçek", "name": "Ali Ekber Çiçek",
"group": 1 "group": 1,
"id":"aliekber"
} }
, ,
{ {
"name": "Dedeoğlu", "name": "Dedeoğlu",
"group": 1 "group": 1,
"id":"dedeoglu"
} }
, ,
{ {
"name": "Pir Sultan Abdal", "name": "Pir Sultan Abdal",
"group": 1 "group": 1,
"id":"pir"
}, },
{ {
"name": "Yunus Emre", "name": "Yunus Emre",
"group": 1 "group": 1,
"id":"yunus"
}, },
{ {
"name": "Kul Nesimi", "name": "Kul Nesimi",
"group": 1 "group": 1,
"id":"kulN"
}, },
{ {
"name": "Kaygusuz Abdal", "name": "Kaygusuz Abdal",
"group": 1 "group": 1,
"id":"kaygusuz"
}, },
{ {
"name": "Ahmed Yesevi", "name": "Ahmed Yesevi",
"group": 2 "group": 2,
"id": "ahmed"
}, },
{ {
"name": "Mevlana Celaleddin Rumi", "name": "Mevlana Celaleddin Rumi",
"group": 2 "group": 2,
"id": "mevlana"
}, },
{ {
"name": "Hacı Bektaş-i Veli", "name": "Hacı Bektaş-i Veli",
"group": 2 "group": 2,
"id": "haci",
} }
], ],
"links": [ "links": [

View File

@ -11,7 +11,7 @@
{% endblock %} {% endblock %}
</head> </head>
<body> <body>
<div class="container-fluid"> <div class="container-fluid p-0">
{% block body %} {% endblock %} {% block body %} {% endblock %}
</div> </div>

View File

@ -2,29 +2,28 @@
{% block title %}Hello{% endblock %} {% block title %}Hello{% endblock %}
{% block body %} {% block body %}
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<div class="bg">
<div id="visualization"></div>
<div class="row"> <div class="row">
<div class="col-md-7"> <div class="col-md-7">
<div class="container-fluid">
<div class="map_area"> <div class="map_area">
<script src="../static/js/d3_map.js"></script> <script src="../static/js/d3_map.js"></script>
</div> </div>
</div> </div>
</div>
<div class="col-md-5"> <div class="col-md-5">
<div class="row"> <div class="row">
<div class="col-md-10"> <div class="col-md-12">
<div class="iframe_area">
<!-- <p>Merve's thesis</p> --> <!-- <p>Merve's thesis</p> -->
<!-- <iframe src="../static/images/abstract.pdf" width="300px" height="500px"></iframe> --> <!-- <iframe src="../static/images/abstract.pdf" width="300px" height="500px"></iframe> -->
<div class="thesis"> <div class="thesis">
{% include 'thesis.html' %} {% include 'thesis.html' %}
</div> </div>
</div>
</div> </div>
</div> </div>
<div class="row"> <div class="row">
<div class="col-md-12"> <div class="col-md-10">
<div class="media_area"> <div class="media_area">
<!-- <p>Related media</p> --> <!-- <p>Related media</p> -->
<div id="showdadaloglu">Audio for Dadaloglu<audio id="audiodadaloglu" controls> <div id="showdadaloglu">Audio for Dadaloglu<audio id="audiodadaloglu" controls>
@ -44,12 +43,20 @@
</div> </div>
<div class="row"> <div class="row">
<audio id='audio-1' controls> <div class="col-md-12">
<source src="../static/audio/HNI_Soundinstall_3tracks_together1.mp3" type="audio/mpeg"> <div class="play-stop">
Your browser does not support the audio tag. <a id="mBtn" onclick="PSFunction()">(Play)</a>
</audio>
</div>
</div>
<div class="main_audio">
<audio id='audio1'>
<source src="../static/audio/myths.mp3" type="audio/mpeg">
Your browser does not support the audio tag.
</audio>
</div>
</div>
</div>
</div>
<!-- scripts for mouse events --> <!-- scripts for mouse events -->
<script> <script>
// function popup(d) { // function popup(d) {
@ -70,7 +77,18 @@
// audio.currentTime = 12; // audio.currentTime = 12;
// audio.play(); // audio.play();
// } // }
var audio = document.getElementById("audio1");
var btn = document.getElementById("mBtn");
function PSFunction() {
if (audio.paused) {
audio.play();
btn.innerHTML = "(Pause)";
} else {
audio.pause();
btn.innerHTML = "(Play)";
}
}
</script> </script>
{% endblock %} {% endblock %}

View File

@ -1,143 +0,0 @@
<!DOCTYPE html>
<meta charset="utf-8">
<style>
.link {
stroke: #ccc;
}
.node text {
pointer-events: none;
font: 15px sans-serif;
}
.thesis {
overflow-y: scroll;
max-height:100px;
scroll-behavior: smooth;
width:20%;
font-size: .5em;
}
</style>
<body>
<script src="https://d3js.org/d3.v3.min.js"></script>
<div class="thesis">
<span>People since the beginning have been gathering around certain sources of knowledge creating a specific reading/understanding of the world around them. Accumulated from different sources, what is inherited shapes the minds of
individuals,
communities and societies. Often times the cultural productions that happen in reverberance to these processes guide the researchers as they become an archive - a memory space for collective affects of former and contemporary societies.
Aware of my lack of knowledge on all the processes of inheriting from my own history; geographically, ethnically and politically, I attempt to understand the effects of the accumulated sets of knowledge on the actions and behaviour of
myself - A female artist from Turkey - and of us - the un/under/misrepresented multitude. I believe this endeavour will unravel not only the history of Turkey but will shed a light on the processes of modernism under the influence of
major global actors(?).</span>
<span id='ele'>Digging through my memory, I find myself in the Turquoise Impala of my grandfather, driving up the Kayseri mountain, hearing his voice chanting a poem out of the blue. Or suddenly Im facing one of the spontaneous tests of
my other grand
father in Istanbul, asking me to name the tune of the Ottoman-Turkish music we are listening to. My personal memories are as scattered as the collective memory of our chaotic semi island, Anatolia. Yet if one wants to take a walk
towards
the roots of this land and its settlers, the tunes and poems will reveal them selves as the bread crumbs guiding the way.</span>
<span> How does the cultural knowledge travel and transform in time? What forms does it take, why and how do they sustain their presence in our lives? Not only as an artist but as an individual in search of a better present and in
anticipation
and aspiration of a revolution, I try to answer these questions by investigating cultural production methods and develop an alternative reading of the common history.</span>
<span> Knowledge in its most delicate form was first contained in the minds of people who would live in small communities. The elders, the more experienced, would be the ones to teach/pass on the knowledge that they would carry along
their
lives. The inherited knowledge can be the secrets of crafts, food processing- like cheese or meat-, healing methods/recipes, rituals, requiems or stories on braveries, travels, battles and looses. All of these resources relate to
specific
figures in the societies and they</span>
</div>
<script>
function scrolldiv() {
var elem = document.getElementById("ele");
elem.scrollIntoView();
}
</script>
<script>
var width = 960,
height = 500
var svg = d3.select("body").append("svg")
.attr("width", width)
.attr("height", height);
var force = d3.layout.force()
.gravity(0.05)
.distance(100)
.charge(-100)
.size([width, height]);
d3.json("test.json", function(error, json) {
if (error) throw error;
force
.nodes(json.nodes)
.links(json.links)
.start();
var link = svg.selectAll(".link")
.data(json.links)
.enter().append("line")
.attr("class", "link");
var node = svg.selectAll(".node")
.data(json.nodes)
.enter().append("g")
.attr("class", "node")
.attr("id", function(d){return d.id})
.attr("onclick", "scrolldiv()")
.call(force.drag);
node.append("image")
.attr("xlink:href", "circle.png")
.attr("x", -8)
.attr("y", -8)
.attr("width", 16)
.attr("height", 16);
node.append("text")
.attr("dx", 12)
.attr("dy", ".35em")
.text(function(d) { return d.name });
force.on("tick", function() {
link.attr("x1", function(d) { return d.source.x; })
.attr("y1", function(d) { return d.source.y; })
.attr("x2", function(d) { return d.target.x; })
.attr("y2", function(d) { return d.target.y; });
node.attr("transform", function(d) { return "translate(" + d.x + "," + d.y + ")"; });
// var nodeA=d3.select("#dadaloglou")
// .attr("id", "dadaloglou")
// .attr("onclick", "scrolldiv()")
// var nodeA=d3.select("dadaloglu")
// nodeA.on("click", function() {
// var elem = document.getElementById("ele");
// elem.scrollIntoView();
// });
// d3.selectAll('.node').each(function(d) {
// d.element = this;
// });
//
// var id, node = search(root, x, y);
// if (node) {
// id = node.element.getAttribute('id');
// }
//
//
// var nodeA=d3.select("#dadaloglu").attr('id')
// nodeA.on("click", scrolldiv);
});
});
</script>

View File

@ -1,88 +0,0 @@
{
"nodes": [
{
"name": "Dadaloğlu",
"group": 1,
"id":"dadaloglu"
},
{
"name": "Dedekorkut",
"group": 1
},
{
"name": "Aşık Nesimi",
"group": 1
},
{
"name": "Aşık Ali İzzet",
"group": 1
},
{
"name": "Karacaoğlan",
"group": 1
},
{
"name": "Aşık Veysel",
"group": 1
}
,
{
"name": "Neşet Ertaş",
"group": 1
}
,
{
"name": "Muharrem Ertaş",
"group": 1
}
,
{
"name": "Ali Ekber Çiçek",
"group": 1
}
,
{
"name": "Dedeoğlu",
"group": 1
}
,
{
"name": "Pir Sultan Abdal",
"group": 1
},
{
"name": "Yunus Emre",
"group": 1
},
{
"name": "Kul Nesimi",
"group": 1
},
{
"name": "Kaygusuz Abdal",
"group": 1
}
],
"links": [
{
"source": 8,
"target": 0,
"value": 1
},
{
"source": 4,
"target": 11,
"value": 1
},
{
"source": 14,
"target": 11,
"value": 1
},
{
"source": 2,
"target": 11,
"value": 1
}
]
}

File diff suppressed because one or more lines are too long