File tree Expand file tree Collapse file tree 2 files changed +66
-11
lines changed
src/internal/components/card Expand file tree Collapse file tree 2 files changed +66
-11
lines changed Original file line number Diff line number Diff line change 1+ // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
2+ // SPDX-License-Identifier: Apache-2.0
3+ import React from 'react' ;
4+
5+ import Box from '~components/box' ;
6+ import ButtonGroup from '~components/button-group' ;
7+ import Card from '~components/internal/components/card' ;
8+
9+ import image from '../container/images/16-9.png' ;
10+ import { CardPage } from './common' ;
11+
12+ export default function ButtonsScenario ( ) {
13+ return (
14+ < article >
15+ < CardPage title = "Image preview" >
16+ < Card
17+ header = {
18+ < >
19+ < div style = { { display : 'flex' , justifyContent : 'space-between' } } >
20+ < div style = { { display : 'flex' , alignItems : 'center' } } > image-title.jpg</ div >
21+ < ButtonGroup
22+ onItemClick = { ( ) => null }
23+ items = { [
24+ {
25+ type : 'icon-button' ,
26+ id : 'download' ,
27+ iconName : 'download' ,
28+ text : 'Download' ,
29+ } ,
30+ {
31+ type : 'icon-button' ,
32+ id : 'expand' ,
33+ iconName : 'expand' ,
34+ text : 'Expand' ,
35+ } ,
36+ ] }
37+ variant = { 'icon' }
38+ />
39+ </ div >
40+ < Box color = "text-body-secondary" > Metadata about file - 4GB</ Box >
41+ </ >
42+ }
43+ disableContentPaddings = { true }
44+ >
45+ < div
46+ style = { {
47+ backgroundImage : `url(${ image } )` ,
48+ backgroundPosition : 'center' ,
49+ backgroundSize : 'cover' ,
50+ width : '100%' ,
51+ height : 300 ,
52+ } }
53+ />
54+ </ Card >
55+ </ CardPage >
56+ </ article >
57+ ) ;
58+ }
Original file line number Diff line number Diff line change 7272 padding-block-start : 8px ;
7373 padding-block-end : 4px ;
7474 padding-inline : awsui .$space-card-horizontal ;
75- & -top-row {
76- @include styles .font-heading-s ;
77- display : flex ;
78- }
7975 & -inner {
80- padding-block-start : 4px ;
81- inline-size : 100% ;
82- display : inline-block ;
76+ @include styles .font-heading-s ;
77+ min-block-size : 32px ;
8378 }
8479}
8580
9590 }
9691}
9792
98- .with-actions {
99- > .card-inner > .card-header {
100- inline-size : 90% ;
93+ .with-actions > .card-inner > .header > .header-top-row {
94+ display : flex ;
95+ > .header-inner {
96+ inline-size : 100% ;
97+ display : flex ;
98+ align-items : center ;
10199 }
102100}
103101
117115
118116.description {
119117 color : awsui .$color-text-heading-secondary ;
120- margin-block-end : 8px ;
121118}
You can’t perform that action at this time.
0 commit comments