Skip to content

Commit

Permalink
Merge branch 'dev' into 1136-bug-axis-partial
Browse files Browse the repository at this point in the history
  • Loading branch information
atalyaalon authored Oct 31, 2024
2 parents 64db6a3 + 928b0a7 commit 0bafe8d
Show file tree
Hide file tree
Showing 10 changed files with 26 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/deploy-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
- name: Build
run: npm run build:staging
- name: Deploy
uses: w9jds/firebase-action@master
uses: w9jds/firebase-action@v13.22.1
with:
args: deploy --only hosting:dev
env:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/deploy-master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
- name: Build
run: npm run build
- name: Deploy
uses: w9jds/firebase-action@master
uses: w9jds/firebase-action@v13.22.1
with:
args: deploy --only hosting:master
env:
Expand Down
5 changes: 4 additions & 1 deletion docs/Vision.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@

## About ANYWAY

ANYWAY give interactive map, Database engine, and information on Traffic accidents in israel. the data originating from the Central Bureau of Statistics and United Hazalah’s, as well as traffic violations as reported by road vigilantes.
ANYWAY is Data For Change’s first community based project aiming to reduce road fatalities via data driven decisions, public awareness and government’s data transparency.
Our community of devoted volunteers build technological tools for analysis and accessibility of reliable information of road accidents, and their prevention, in line with the "Vision Zero" approach.
The first tool we developed, is an interactive map showing car accidents [found here](www.anyway.co.il)
ANYWAY MAP is an interactive map, Database engine, and information on Traffic accidents in israel. the data originating from the Central Bureau of Statistics, as well as traffic violations as reported by road vigilantes.

The goal of the project is to primarily raise public awareness for Road Hazard and about available
solution's to improve road safety. This is used to create pressure on decision makers to perform necessary infrastructural repairs as well as create discourse regarding solutions.
Expand Down
Binary file added src/assets/card-bg-road-oryarok.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/assets/greenlight.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions src/components/molecules/LogInLinkGoogle.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ const useStyles = makeStyles((theme) => ({
padding: theme.spacing(1),
color: `${oceanBlueColor}`,
textDecoration: 'none',
fontFamily: 'Rubik',
'&:hover': {
color: `${skyBlueColor}`,
},
Expand Down
1 change: 1 addition & 0 deletions src/components/molecules/UserProfileHeader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ const useStyles = makeStyles((theme) => ({
color: `${oceanBlueColor}`,
padding: theme.spacing(1),
textDecoration: 'none',
fontFamily: 'Rubik',
'&:hover': {
color: `${skyBlueColor}`,
},
Expand Down
4 changes: 2 additions & 2 deletions src/components/molecules/card/AnyWayCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ const useStyles = makeStyles((theme) => ({
cursor: 'pointer',
},
tooltip: {
fontSize: '13px',
fontSize: '20px',
},
}));

Expand Down Expand Up @@ -163,7 +163,7 @@ const AnyWayCard: FC<IProps> = ({
<Card ref={refFn} className={classes.root} variant="outlined">
<Box height={sizes.height} width={sizes.width} position="relative" padding={3}>
{/* HEADER */}
{organizationData?.key !== 'n12'?<CardBackgroundImage variant={variant.header} />:<></>}
{organizationData?.key !== 'n12' ? (<CardBackgroundImage variant={variant.header} {...(organizationData?.key && { org: organizationData.key })} />) : null}
{variant.header !== HeaderVariant.None && (
<Box height={sizes.headerHeight} width="100%">
<CardHeader
Expand Down
16 changes: 14 additions & 2 deletions src/components/molecules/card/CardBackgroundImage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,16 @@ import { makeStyles, Theme } from '@material-ui/core';
import React, { FC } from 'react';
import { HeaderVariant } from 'services/widgets.style.service';
import CardBackgrounRoadImage from 'assets/card-bg-road.png';
import CardBackgrounRoadImageOrYarok from 'assets/card-bg-road-oryarok.png';
import CardBackgrounMapImage from 'assets/card-bg-map.png';

const ROAD_IMAGE_HEIGHT = 130;
const MAP_IMAGE_HEIGHT = '100%';
let backgroundImage = CardBackgrounRoadImage;

interface IProps {
variant: HeaderVariant;
org?: string;
}

const useStyles = makeStyles<Theme, IProps>((theme) => ({
Expand All @@ -21,16 +24,25 @@ const useStyles = makeStyles<Theme, IProps>((theme) => ({
},
}));

const CardBackgroundImage: FC<IProps> = ({ variant }) => {
const CardBackgroundImage: FC<IProps> = ({ variant, org = 'no_organization'}) => {
const classes = useStyles({ variant });
let src;
let height;

switch (org) {
case 'or_yarok':
backgroundImage = CardBackgrounRoadImageOrYarok;
break;
case 'no_organization':
backgroundImage = CardBackgrounRoadImage;
break;
}

switch (variant) {
case HeaderVariant.Centered:
case HeaderVariant.CenteredNoTitle:
case HeaderVariant.Logo:
src = CardBackgrounRoadImage;
src = backgroundImage;
height = ROAD_IMAGE_HEIGHT;
break;
case HeaderVariant.Label:
Expand Down
4 changes: 2 additions & 2 deletions src/style/_colors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ export const defaultThemeColors : ColorScheme = {
main: blueVioletColor,
fontColor: blackColor,
backgroundColor: whiteColor,
containerColor: whiteColor,
titleContainerColor: whiteColor,
containerColor: transparentColor,
titleContainerColor: transparentColor,
pieChartColors: pieChartColors,
barChartColors: barColors,
roadNumberBackground: silverGrayColor,
Expand Down

0 comments on commit 0bafe8d

Please sign in to comment.