-
-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #20 from DilwoarH/single-view-mode
Single View mode
- Loading branch information
Showing
32 changed files
with
369 additions
and
51 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
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
File renamed without changes.
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,67 @@ | ||
import React, { Component } from 'react'; | ||
import './SingleView.css'; | ||
import Logo from '../../_components/logo/logo'; | ||
import Clock from '../../_components/clock/clock'; | ||
import Date from '../../_components/date/date'; | ||
import BuildNumber from '../../_components/build-number/build-number'; | ||
import SunriseAndZawwal from '../../_components/sunrise-and-zawwal/sunrise-and-zawwal'; | ||
import AdditionalMessage from '../../_components/additional-message/additional-message'; | ||
import AppConfig from '../../_components/app-config/app-config'; | ||
import Branding from '../../_components/branding/branding'; | ||
import PrayerTimesSingleView from '../../_components/prayer-times-single-view/prayer-times-single-view'; | ||
import JummahTimes from '../../_components/jummah-times/jummah-times'; | ||
|
||
class SingleView extends Component { | ||
constructor(props) { | ||
super(props); | ||
this.state = { | ||
_appConfig: new AppConfig() | ||
}; | ||
} | ||
|
||
componentWillUnmount() { | ||
this.setState(() => ({ | ||
_appConfig: null | ||
})); | ||
} | ||
|
||
render() { | ||
return ( | ||
<div className="SingleView"> | ||
<div className="row"> | ||
<Logo /> | ||
</div> | ||
<div className="row"> | ||
<div className="col-12 col-md-6"> | ||
<div className="row"> | ||
<Clock /> | ||
</div> | ||
<div className="row"> | ||
<Date /> | ||
</div> | ||
<div className="row"> | ||
<AdditionalMessage | ||
message={this.state._appConfig.get('SingleView_Message')} | ||
/> | ||
</div> | ||
</div> | ||
<div className="col-12 col-md-6"> | ||
<div className="row"> | ||
<PrayerTimesSingleView /> | ||
</div> | ||
<div className="row"> | ||
<SunriseAndZawwal /> | ||
</div> | ||
<div className="row"> | ||
<JummahTimes /> | ||
</div> | ||
</div> | ||
</div> | ||
<BuildNumber /> | ||
<Branding /> | ||
</div> | ||
); | ||
} | ||
} | ||
|
||
export default SingleView; |
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,9 @@ | ||
import React from 'react'; | ||
import ReactDOM from 'react-dom'; | ||
import SingleView from './SingleView'; | ||
|
||
it('renders without crashing', () => { | ||
const div = document.createElement('div'); | ||
ReactDOM.render(<SingleView />, div); | ||
ReactDOM.unmountComponentAtNode(div); | ||
}); |
File renamed without changes.
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
File renamed without changes.
File renamed without changes.
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
File renamed without changes.
Empty file.
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
File renamed without changes.
File renamed without changes.
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
File renamed without changes.
File renamed without changes.
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
File renamed without changes.
File renamed without changes.
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
File renamed without changes.
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
89 changes: 89 additions & 0 deletions
89
src/_components/prayer-times-single-view/prayer-times-single-view.css
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,89 @@ | ||
.PrayerTimesSingleViewWrapper { | ||
width: 100%; | ||
} | ||
|
||
.PrayerTimesSingleView { | ||
font-size: 3em; | ||
text-align: right; | ||
color: white; | ||
margin-left: 60px; | ||
padding-top: 50px; | ||
width: 840px; | ||
} | ||
|
||
.PrayerTimesSingleView th { | ||
font-weight: bolder; | ||
font-size: 1em; | ||
text-align: right; | ||
} | ||
|
||
.PrayerTimesSingleView th:last-child { | ||
padding-left: 0px; | ||
} | ||
|
||
.PrayerTimesSingleView td, | ||
.PrayerTimesSingleView th { | ||
margin: 150px; | ||
padding-bottom: 10px; | ||
} | ||
|
||
.PrayerTimesSingleView th:first-child { | ||
font-size: 1.2em; | ||
text-align: left; | ||
} | ||
|
||
.PrayerTimesSingleView .mithl-text { | ||
font-size: 0.5em; | ||
max-width: 100px; | ||
} | ||
|
||
.PrayerTimesSingleView td { | ||
min-width: 100px; | ||
font-size: 1.3em; | ||
} | ||
|
||
.PrayerTimesSingleView td:nth-child(3) { | ||
font-weight: bolder; | ||
} | ||
|
||
.PrayerTimesSingleView td:last-child.normal-text { | ||
font-weight: normal; | ||
} | ||
|
||
@media only screen and (max-width: 600px) { | ||
.PrayerTimesSingleView { | ||
font-size: 1em; | ||
margin-left: 0; | ||
width: 100%; | ||
} | ||
|
||
.PrayerTimesSingleView th:last-child { | ||
padding-left: 0; | ||
} | ||
|
||
.PrayerTimesSingleView td { | ||
min-width: 10px; | ||
} | ||
} | ||
|
||
@media only screen and (min-width: 600px) and (max-width: 1024px) { | ||
.PrayerTimesSingleView { | ||
font-size: 2em; | ||
margin-left: 0; | ||
width: 100%; | ||
padding: 30px; | ||
} | ||
|
||
.PrayerTimesSingleView th:last-child { | ||
padding-left: 0; | ||
} | ||
|
||
.PrayerTimesSingleView td { | ||
min-width: 10px; | ||
} | ||
} | ||
|
||
.PrayerTimesSingleView .nextJamahHighlight { | ||
font-weight: bolder; | ||
color: #ff3995; | ||
} |
Oops, something went wrong.