-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
new file: client/public/images/mission-2.png new file: client/public/images/policy.png modified: client/public/images/shopping.png new file: client/public/images/vision.png new file: client/src/components/Image.tsx new file: client/src/components/cards/RelatedCard.tsx modified: client/src/components/layouts/Navbar.tsx modified: client/src/pages/about.tsx modified: client/src/pages/home.tsx modified: client/src/pages/news/index.tsx modified: client/src/pages/news/singlePage.tsx modified: client/src/pages/products/details.tsx modified: client/src/pages/products/index.tsx
- Loading branch information
1 parent
dcffb5d
commit 429691c
Showing
13 changed files
with
159 additions
and
184 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,23 @@ | ||
import { Component } from "solid-js"; | ||
|
||
export type Image = { | ||
image: String; | ||
name: String; | ||
width: String; | ||
heigh: String; | ||
is_scale: Boolean; | ||
}; | ||
|
||
const Image: Component<Image> = (props) => { | ||
return ( | ||
<div class="aspect-h-4 aspect-w-3 hidden overflow-hidden rounded-lg lg:block"> | ||
<img | ||
src="https://tailwindui.com/img/ecommerce-images/product-page-02-tertiary-product-shot-01.jpg" | ||
alt="Two each of gray, white, and black shirts laying flat." | ||
class="h-full w-full object-cover object-center hover:scale-125 duration-150" | ||
/> | ||
</div> | ||
); | ||
}; | ||
|
||
export default Image; |
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,34 @@ | ||
import { Component } from "solid-js"; | ||
import { NavLink } from "@solidjs/router"; | ||
|
||
export type NewsData = { | ||
id: string; | ||
title: string; | ||
image: string; | ||
des: string; | ||
author: string; | ||
}; | ||
interface Props { | ||
props: NewsData; | ||
} | ||
|
||
const RelatedCard: Component<Props> = ({ props }) => { | ||
return ( | ||
<NavLink href={`/news/${props.id}`}> | ||
<div class="lg:w-full mt-2 "> | ||
<div class="h-full flex sm:flex-row flex-col items-center sm:justify-start justify-center text-center sm:text-left border p-2 rounded-xl"> | ||
<img | ||
alt="team" | ||
class="flex-shrink-0 rounded-lg w-24 h-24 object-cover object-center sm:mb-0 mb-4" | ||
src={props?.image} | ||
/> | ||
<div class="flex-grow sm:pl-8"> | ||
<p class="mb-4">{props.title}</p> | ||
</div> | ||
</div> | ||
</div> | ||
</NavLink> | ||
); | ||
}; | ||
|
||
export default RelatedCard; |
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
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
Oops, something went wrong.