Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 17 additions & 9 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

82 changes: 34 additions & 48 deletions src/app/app.component.css
Original file line number Diff line number Diff line change
@@ -1,87 +1,73 @@
.header {
display: flex;
align-items: center;
min-height: 50px;
padding: 0.5rem 1rem;
background-image: linear-gradient(to right, #c3002f, #dd0031);
color: #fff;
margin-bottom: 1rem;
display: flex;
align-items: center;
min-height: 50px;
padding: 0.5rem 1rem;
background-image: linear-gradient(to right, #c3002f, #dd0031);
color: #fff;
margin-bottom: 1rem;
}

.header a {
color: #fff;
text-decoration: none;
color: #fff;
text-decoration: none;
}

.header-title {
font-size: 1.2rem;
font-weight: normal;
font-size: 1.2rem;
font-weight: normal;
}

.header-title::after {
content: ' ▸ ';
padding: 0 0.5rem;
content: ' ▸ ';
padding: 0 0.5rem;
}

.header-subtitle {
font-size: 1.2rem;
font-size: 1.2rem;
}

.container {
max-width: 1200px;
margin: 0 auto;
padding: 1rem;
max-width: 1200px;
margin: 0 auto;
padding: 1rem;
}

.search-panel {
display: flex;
display: flex;
}

.search-panel__filters {
flex: 1;
flex: 1;
}

.search-panel__results {
flex: 3;
flex: 3;
}

.searchbox {
margin-bottom: 2rem;
margin-bottom: 2rem;
}

.pagination {
margin: 2rem auto;
text-align: center;
}

.hit-description {
font-size: 12px;
line-height: 24px;
color: #878f96;
text-transform: uppercase;
margin: 2rem auto;
text-align: center;
}

.doctor_pic {
width: 80px;
height: 80px;
border-radius: 40px;
width: 80px !important;
height: 80px !important;
border-radius: 40px;
}

.top-head {
.hit-bookmark{
font-size: 12px;
border-top-left-radius: 5px;
border-top-right-radius: 5px;
padding: 8px 30px;
background-color: #143f52;
color: #fff;
}

.section-padding {
padding: 30px 25px;
}

.owl-item {
border-bottom-right-radius: 5px;
background-color: #fafafa;
color: #d39f93;
}

.hit-features{
color: #878f96;
font-size: 13px;
line-height: 22px;
margin-top: 10px;
}
120 changes: 50 additions & 70 deletions src/app/app.component.html
Original file line number Diff line number Diff line change
@@ -1,73 +1,53 @@
<div class="container mx-auto">
<div class="w-full h-12">
<ais-instantsearch [config]="config">
<div class="">
<div class="">
<ais-current-refinements></ais-current-refinements>
<ais-refinement-list attribute="brand"></ais-refinement-list>
<ais-configure [searchParameters]="{ hitsPerPage: 5, aroundLatLng: '40.71, -74.01',
<div class="w-full h-12">
<ais-instantsearch [config]="config">
<ais-current-refinements></ais-current-refinements>
<ais-refinement-list attribute="brand"></ais-refinement-list>
<ais-configure [searchParameters]="{ hitsPerPage: 5, aroundLatLng: '40.71, -74.01',
maxFacetHits: 5, restrictSearchableAttributes: ['specialties']}"></ais-configure>
<ais-search-box></ais-search-box>
<ais-hits>
<ng-template let-hits="hits">
<div class="ais-Hits-list">
<owl-carousel-o [options]="customOptions">
<ng-container *ngFor="let hit of hits">
<ng-template carouselSlide [id]="hit.name">
<!-- <img [src]="slide.src" [alt]="slide.alt" [title]="slide.title"> -->
<div class="top-head">
HSS, Sports Medicine 541 E 71st St
</div>
<div class="section-padding">
<div class="flex flex-wrap">
<div class="w-1/5">
<img src="{{hit.photo_url}}" alt="{{hit.name}}" class="doctor_pic" />
</div>
<div class="w-4/5">
<div class="hit-name">
{{hit.name}}
</div>
<div class="hit-description">
<ais-highlight attribute="specialties" [hit]="hit"></ais-highlight>
</div>
</div>
</div>
</div>
</ng-template>
</ng-container>
</owl-carousel-o>
<!-- <div *ngFor="let hit of hits" class="ais-Hits-item item">
<div class="top-head">
HSS, Sports Medicine 541 E 71st St
</div>
<div class="section-padding">
<div class="flex flex-wrap">
<div class="w-1/5">
<img src="{{hit.photo_url}}" alt="{{hit.name}}" class="doctor_pic" />
</div>
<div class="w-4/5">
<div class="hit-name">
{{hit.name}}
</div>
<div class="hit-description">
<ais-highlight attribute="specialties" [hit]="hit"></ais-highlight>
<ais-highlight attribute="description" [hit]="hit"></ais-highlight>
</div>
</div>
</div>
</div>
<div class="hit-price">${{hit.price}}</div>
</div> -->
</div>
</ng-template>
</ais-hits>
</div>
<div class="">
<br />
<app-geo-search></app-geo-search>
<!-- <ais-pagination></ais-pagination> -->
</div>
</div>
</ais-instantsearch>
</div>
<ais-search-box></ais-search-box>
<app-geo-search></app-geo-search>
<ais-hits>
<ng-template let-hits="hits">
<div class="ais-Hits-list my-5 py-5">
<owl-carousel-o [options]="customOptions">
<ng-container *ngFor="let hit of hits">
<ng-template carouselSlide [id]="hit.name">
<!-- <img [src]="slide.src" [alt]="slide.alt" [title]="slide.title"> -->
<div class="top-head">
HSS, Sports Medicine 541 E 71st St
</div>
<div class="section-padding">
<div class="flex flex-wrap">
<div class="w-2/6">
<img src="{{hit.photo_url}}" alt="{{hit.name}}" class="doctor_pic" />
</div>
<div class="w-4/6">
<h3 class="hit-name">
{{hit.name}}
</h3>
<div class="hit-description">
<span *ngFor="let specialty of hit.specialties">
{{specialty}},
</span>
<!-- <ais-highlight attribute="specialties" [hit]="hit"></ais-highlight> -->
</div>
<div class="hit-bookmark">Save</div>
</div>
<div class="hit-features">"Very professional. Dr Kelly & his staff are very responsive and in tune with their patient's recoveries."</div>
<hr class="w-full my-3" />
<a href="#" class="bg-red-500 text-white inline-block align-middle text-center select-none border font-normal whitespace-no-wrap py-2 px-4 rounded text-base leading-normal no-underline">
Book Appointment
</a>
</div>
</div>
</ng-template>
</ng-container>
</owl-carousel-o>
</div>
</ng-template>
</ais-hits>

</ais-instantsearch>
</div>
</div>
8 changes: 3 additions & 5 deletions src/app/app.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,10 @@ const searchClient = algoliasearch(
export class AppComponent {
customOptions: OwlOptions = {
loop: true,
mouseDrag: false,
touchDrag: false,
pullDrag: false,
dots: false,
center: true,
navSpeed: 700,
navText: ['', ''],
navText: ['<', '>'],
responsive: {
0: {
items: 1
Expand All @@ -34,7 +32,7 @@ export class AppComponent {
items: 3
},
940: {
items: 4
items: 3
}
},
nav: true
Expand Down
47 changes: 46 additions & 1 deletion src/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,49 @@ body {
max-width: 1560px;
overflow: hidden;
margin: 0 auto
}
}

.owl-item {
opacity: 0.5;
border-bottom-left-radius: 5px;
border-bottom-right-radius: 5px;
background-color: #fafafa !important;
}

.owl-item.center {
opacity: 1 !important;
border-radius: 5px;
box-shadow: 0 0 25px rgba(0, 0, 0, 0.15);
}

.owl-item .top-head {
font-size: 12px;
border-top-left-radius: 5px;
border-top-right-radius: 5px;
padding: 8px 30px;
background-color: #143f52;
color: #fff;
}

.owl-item .section-padding {
padding: 30px 25px;
}

.owl-item .hit-name {
font-size: 18px;
}

.owl-item .hit-description {
font-size: 12px;
line-height: 18px;
color: #878f96;
text-transform: uppercase;
}

.owl-theme .owl-nav [class*=owl-] {
background: #143f52 !important;
}

.sebm-google-map-container{
height: 300px !important;
}
Loading