anofa commited on
Commit
c93f55d
·
verified ·
1 Parent(s): 5b04088

Update demo2/pages/__init__.py

Browse files
Files changed (1) hide show
  1. demo2/pages/__init__.py +18 -19
demo2/pages/__init__.py CHANGED
@@ -106,17 +106,17 @@ from .engine import run_engine
106
  languages = ["EN","TR"]
107
  lang = solara.reactive("EN")
108
 
109
- lbl_land_use_btn = [{'EN': 'civil societies',
110
  'TR': 'sivil toplum'},
111
- {'EN': 'women',
112
  'TR': 'kadınlar'},
113
- {'EN': 'youth',
114
  'TR': 'gençler'}]
115
  lbl_hazard_btn = [{'EN': 'EARTHQUAKE',
116
  'TR': 'DEPREM'},
117
  {'EN': 'FLOOD',
118
  'TR': 'SEL'}]
119
- lbl_maintitle = {'EN': 'Tomorrow\'s Cities Decision Making Simulation','TR': 'Yarının Şehirleri için Karar Verme Simülasyonu'}
120
  lbl_earthquake= {'EN': 'Earthquake', 'TR': 'Deprem'}
121
  lbl_flood = {'EN': 'Flood', 'TR': 'Sel'}
122
  lbl_debris = {'EN': 'Landslide', 'TR': 'Heyelan'}
@@ -129,12 +129,11 @@ lbl_policy_card_title = {'EN': '4. Select three policies to make your city resil
129
  lbl_too_many_policy_selected_error = {'EN': 'You cannot select more than three policies',
130
  'TR': 'Üçten fazla politika seçemezsiniz'}
131
  lbl_infobox = {'EN': f'''
132
- Our decisions directly influence our future. It is critical for a
133
- resilient city life where the decisions at the city scale reduces the disaster risk in the future.
134
- In this simulation, we calculate possible disaster impacts calculated with Tomorrow's Cities Decision
135
- Support System (TCDSE). The simulation shows how earthquake and flood hazards that may occur
136
- in an urban environment affect different urban scenarios. To use the simulation 1) Check land use 2) Select the
137
- possible hazard 3) Select the possible city scenarios for the future 4) choose policies 5) Run and check the metrics.
138
  ''',
139
  "TR": f'''
140
  Aldığımız kararlar, geleceğimizi doğrudan etkilemektedir. Kent ölçeğinde alınan kararların, gelecekte afet riskini azaltacak
@@ -295,17 +294,17 @@ for luf_label in luf_types:
295
 
296
  policies = [1,2,3,4,5,6]
297
  lbl_policy = dict()
298
- lbl_policy[1] = {'EN': 'Loans for reconstruction for minor to moderate damages',
299
  'TR': 'Küçük ila orta dereceli hasarlar için yeniden yapılanma kredileri'}
300
- lbl_policy[2] = {'EN': 'Knowledge sharing about disaster risk reduction in schools',
301
  'TR': 'Devlet ve özel okullarda afet risklerinin azaltılması hakkında bilgi paylaşımı'}
302
  lbl_policy[3] = {'EN': 'Catastrophe bond for education/health facilities',
303
  'TR': 'Eğitim ve sağlık tesislerini yapılandırmak için afet bonosu'}
304
- lbl_policy[4] = {'EN': 'Repair loan assistance for flooding',
305
  'TR': 'Sel için onarım kredisi yardımı'}
306
- lbl_policy[5] = {'EN': 'Technical assistance for debris removal in education facilities',
307
  'TR': 'Eğitim tesislerinde enkaz kaldırma için teknik yardım'}
308
- lbl_policy[6] = {'EN': 'Compulsory content insurance for schools and hospitals',
309
  'TR': 'Okullar ve hastaneler için zorunlu eşya sigortası'}
310
  #lbl_policy[7] = {'EN': 'Green resilient infrastructure (prevention) & financial support for business recovery', 'TR': 'Politika 7'}
311
  #lbl_policy[8] = {'EN': 'Green resilient infrastructure (prevention), reinforcement of schools, hospitals & shelters, financial support for affected business & household', 'TR': 'Politika 8'}
@@ -617,7 +616,7 @@ def Page():
617
  with solara.Columns([1,98,1]):
618
  solara.HTML(unsafe_innerHTML="")
619
  with solara.Column():
620
- with solara.Columns(([15,15,45,20,10]), style="display: flex; justify-content: center; align-items: center;"):
621
  solara.HTML(unsafe_innerHTML="")
622
  with solara.Column():
623
  solara.Markdown("""[![Tomorrow's Cities](/static/public/tc-logo.png)](https://tomorrowscities.org/)""")
@@ -625,9 +624,9 @@ def Page():
625
  solara.HTML(unsafe_innerHTML=lbl_maintitle[lang.value],classes=["maintitle"])
626
  with solara.Column():
627
  solara.Markdown("""[![UR24](/static/public/ur-logo.png)](https://urpartner.io/)""")
628
- with solara.ToggleButtonsSingle(value=lang):
629
- solara.Button(label="EN", value="EN", text=True,classes=["langbutton"],style="height: 26px;")
630
- solara.Button(label="TR", value="TR", text=True,classes=["langbutton"],style="height: 26px;")
631
  with solara.Columns([50,50]):
632
  with solara.Column(gap="2px"):
633
  with solara.Card(title=lbl_tv0_map_title[lang.value]):
 
106
  languages = ["EN","TR"]
107
  lang = solara.reactive("EN")
108
 
109
+ lbl_land_use_btn = [{'EN': 'Option 1',
110
  'TR': 'sivil toplum'},
111
+ {'EN': 'Option 2',
112
  'TR': 'kadınlar'},
113
+ {'EN': 'Option 3',
114
  'TR': 'gençler'}]
115
  lbl_hazard_btn = [{'EN': 'EARTHQUAKE',
116
  'TR': 'DEPREM'},
117
  {'EN': 'FLOOD',
118
  'TR': 'SEL'}]
119
+ lbl_maintitle = {'EN': 'Tomorrow\'s Cities Decision Making Game','TR': 'Yarının Şehirleri için Karar Verme Oyunu'}
120
  lbl_earthquake= {'EN': 'Earthquake', 'TR': 'Deprem'}
121
  lbl_flood = {'EN': 'Flood', 'TR': 'Sel'}
122
  lbl_debris = {'EN': 'Landslide', 'TR': 'Heyelan'}
 
129
  lbl_too_many_policy_selected_error = {'EN': 'You cannot select more than three policies',
130
  'TR': 'Üçten fazla politika seçemezsiniz'}
131
  lbl_infobox = {'EN': f'''
132
+ 1) Check the land-use<br>
133
+ 2) Select the possible hazard<br>
134
+ 3) Select desired land-use plans<br>
135
+ 4) Select 3 policies to protect you future city<br>
136
+ 5) Run and check the metrics
 
137
  ''',
138
  "TR": f'''
139
  Aldığımız kararlar, geleceğimizi doğrudan etkilemektedir. Kent ölçeğinde alınan kararların, gelecekte afet riskini azaltacak
 
294
 
295
  policies = [1,2,3,4,5,6]
296
  lbl_policy = dict()
297
+ lbl_policy[1] = {'EN': 'Loans for damages',
298
  'TR': 'Küçük ila orta dereceli hasarlar için yeniden yapılanma kredileri'}
299
+ lbl_policy[2] = {'EN': 'Knowledge sharing about DRR',
300
  'TR': 'Devlet ve özel okullarda afet risklerinin azaltılması hakkında bilgi paylaşımı'}
301
  lbl_policy[3] = {'EN': 'Catastrophe bond for education/health facilities',
302
  'TR': 'Eğitim ve sağlık tesislerini yapılandırmak için afet bonosu'}
303
+ lbl_policy[4] = {'EN': 'Investment in water and drainage infrastructure',
304
  'TR': 'Sel için onarım kredisi yardımı'}
305
+ lbl_policy[5] = {'EN': 'Funding community-based networks',
306
  'TR': 'Eğitim tesislerinde enkaz kaldırma için teknik yardım'}
307
+ lbl_policy[6] = {'EN': 'Investments in road networks',
308
  'TR': 'Okullar ve hastaneler için zorunlu eşya sigortası'}
309
  #lbl_policy[7] = {'EN': 'Green resilient infrastructure (prevention) & financial support for business recovery', 'TR': 'Politika 7'}
310
  #lbl_policy[8] = {'EN': 'Green resilient infrastructure (prevention), reinforcement of schools, hospitals & shelters, financial support for affected business & household', 'TR': 'Politika 8'}
 
616
  with solara.Columns([1,98,1]):
617
  solara.HTML(unsafe_innerHTML="")
618
  with solara.Column():
619
+ with solara.Columns(([15,15,50,25]), style="display: flex; justify-content: center; align-items: center;"):
620
  solara.HTML(unsafe_innerHTML="")
621
  with solara.Column():
622
  solara.Markdown("""[![Tomorrow's Cities](/static/public/tc-logo.png)](https://tomorrowscities.org/)""")
 
624
  solara.HTML(unsafe_innerHTML=lbl_maintitle[lang.value],classes=["maintitle"])
625
  with solara.Column():
626
  solara.Markdown("""[![UR24](/static/public/ur-logo.png)](https://urpartner.io/)""")
627
+ #with solara.ToggleButtonsSingle(value=lang):
628
+ #solara.Button(label="EN", value="EN", text=True,classes=["langbutton"],style="height: 26px;")
629
+ #solara.Button(label="TR", value="TR", text=True,classes=["langbutton"],style="height: 26px;")
630
  with solara.Columns([50,50]):
631
  with solara.Column(gap="2px"):
632
  with solara.Card(title=lbl_tv0_map_title[lang.value]):