Skip to content

Commit

Permalink
svg added
Browse files Browse the repository at this point in the history
  • Loading branch information
Dobrunia committed Jan 18, 2025
1 parent 3ea7387 commit d5a5332
Showing 1 changed file with 82 additions and 0 deletions.
82 changes: 82 additions & 0 deletions codex-ui/dev/pages/layout/PageBlock.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,90 @@
PageBlock is a page unit with three slots: left, right, and center content. By default, the content has a fixed width of 700px. When stretched is true, the content adapts to the screen size.
</template>
</PageHeader>
<div class="page-block-wrapper">
<Heading :level="2">
Examplesz
</Heading>
<Heading :level="3">
default
</Heading>
<svg
width="700px"
viewBox="0 0 1830 457"
fill="none"
xmlns="http://www.w3.org/2000/svg"
>
<rect
width="1830"
height="457"
fill="#151515"
/>
<rect
x="233"
y="50"
width="300"
height="357"
fill="#23252A"
/>
<rect
x="1297"
y="50"
width="300"
height="357"
fill="#23252A"
/>
<rect
x="565"
y="50"
width="700"
height="357"
fill="#23252A"
/>
</svg>
<br>
<br>
<br>
<br>
<Heading :level="3">
stretched
</Heading>
<svg
width="700px"
viewBox="0 0 1830 457"
fill="none"
xmlns="http://www.w3.org/2000/svg"
>
<rect
width="1830"
height="457"
fill="#151515"
/>
<rect
x="16"
y="50"
width="316.82"
height="357"
fill="#23252A"
/>
<rect
x="364.82"
y="50"
width="1100.36"
height="357"
fill="#23252A"
/>
<rect
x="1497.18"
y="50"
width="316.82"
height="357"
fill="#23252A"
/>
</svg>
</div>
</template>

<script setup lang="ts">
import PageHeader from '../../components/PageHeader.vue';
import { PageBlock, Heading } from '../../../src/vue/';
</script>

0 comments on commit d5a5332

Please sign in to comment.