From 82e03978b89938219958032efb1448cc76baa181 Mon Sep 17 00:00:00 2001 From: Saumit Date: Sat, 27 Sep 2025 02:14:26 +0530 Subject: Initial snapshot - OpenTelemetry demo 2.1.3 -f --- src/frontend/styles/ProductDetail.styled.ts | 87 +++++++++++++++++++++++++++++ 1 file changed, 87 insertions(+) create mode 100644 src/frontend/styles/ProductDetail.styled.ts (limited to 'src/frontend/styles/ProductDetail.styled.ts') diff --git a/src/frontend/styles/ProductDetail.styled.ts b/src/frontend/styles/ProductDetail.styled.ts new file mode 100644 index 0000000..a2dda38 --- /dev/null +++ b/src/frontend/styles/ProductDetail.styled.ts @@ -0,0 +1,87 @@ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 + +import styled from 'styled-components'; +import Button from '../components/Button'; + +export const ProductDetail = styled.div` + ${({ theme }) => theme.breakpoints.desktop} { + padding: 100px; + } +`; + +export const Container = styled.div` + display: grid; + grid-template-columns: 1fr; + gap: 28px; + + ${({ theme }) => theme.breakpoints.desktop} { + grid-template-columns: 40% 60%; + } +`; + +export const Image = styled.div<{ $src: string }>` + width: 100%; + height: 150px; + + background: url(${({ $src }) => $src}) no-repeat center; + background-size: 100% auto; + + ${({ theme }) => theme.breakpoints.desktop} { + height: 500px; + background-position: top; + } +`; + +export const Details = styled.div` + display: flex; + flex-direction: column; + gap: 16px; + padding: 0 20px; +`; + +export const AddToCart = styled(Button)` + display: flex; + align-items: center; + gap: 10px; + justify-content: center; + width: 100%; + font-size: ${({ theme }) => theme.sizes.dSmall}; + font-weight: ${({ theme }) => theme.fonts.regular}; + + ${({ theme }) => theme.breakpoints.desktop} { + font-size: ${({ theme }) => theme.sizes.dMedium}; + width: 220px; + } +`; + +export const Name = styled.h5` + font-size: ${({ theme }) => theme.sizes.dMedium}; + margin: 0; + + ${({ theme }) => theme.breakpoints.desktop} { + font-size: ${({ theme }) => theme.sizes.dLarge}; + } +`; + +export const Text = styled.p` + margin: 0; +`; + +export const Description = styled(Text)` + margin: 0; + color: ${({ theme }) => theme.colors.textLightGray}; + font-weight: ${({ theme }) => theme.fonts.regular}; + + ${({ theme }) => theme.breakpoints.desktop} { + font-size: ${({ theme }) => theme.sizes.dMedium}; + } +`; + +export const ProductPrice = styled(Text)` + font-weight: ${({ theme }) => theme.fonts.bold}; + + ${({ theme }) => theme.breakpoints.desktop} { + font-size: ${({ theme }) => theme.sizes.dLarge}; + } +`; -- cgit v1.2.3