Skip to content

Conversation

@parthz-13
Copy link

Closes #2332

Summary

Adds a new two-cols-footer layout that complements the existing two-cols-header layout. This layout displays two columns with an optional top section and a footer section that spans both columns at the bottom.

Test Slide Screenshot

Screenshot 2025-11-11 at 9 14 32 PM

Implementation Details

• Follows the same pattern and conventions as two-cols-header.vue
• Uses CSS Grid with 3 rows: auto 1fr auto
• Maintains consistent prop structure (class, layoutClass)

@netlify
Copy link

netlify bot commented Nov 11, 2025

Deploy Preview for slidev ready!

Name Link
🔨 Latest commit e6ec750
🔍 Latest deploy log https://app.netlify.com/projects/slidev/deploys/69144c65f16e5e0008f5e09b
😎 Deploy Preview https://deploy-preview-2342--slidev.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@parthz-13
Copy link
Author

parthz-13 commented Nov 11, 2025

Hey @antfu ,
This PR is ready for review. Please let me know if there’s anything I should adjust or clarify.
Thanks!

@JPustkuchen
Copy link
Contributor

Thanks @parthz-13! Looks great, but one change seems unrelated and should be removed, see comments.

@parthz-13
Copy link
Author

Thanks @parthz-13! Looks great, but one change seems unrelated and should be removed, see comments.

Hey @JPustkuchen, thanks for catching that. It was an unintentional whitespace change. I’ve reverted it now.

@parthz-13
Copy link
Author

hey @kermanx, just wanted to check if you had time to review this PR. Please let me know if there’s anything I should adjust or clarify.

@pkg-pr-new
Copy link

pkg-pr-new bot commented Nov 17, 2025

Open in StackBlitz

@slidev/client

npm i https://pkg.pr.new/slidevjs/slidev/@slidev/client@2342

create-slidev

npm i https://pkg.pr.new/slidevjs/slidev/create-slidev@2342

create-slidev-theme

npm i https://pkg.pr.new/slidevjs/slidev/create-slidev-theme@2342

@slidev/parser

npm i https://pkg.pr.new/slidevjs/slidev/@slidev/parser@2342

@slidev/cli

npm i https://pkg.pr.new/slidevjs/slidev/@slidev/cli@2342

@slidev/types

npm i https://pkg.pr.new/slidevjs/slidev/@slidev/types@2342

commit: e6ec750

@kermanx
Copy link
Member

kermanx commented Nov 17, 2025

Why not use the bottom slot of two-cols-header?

---
layout: two-cols-header
---

This shows at the top, aligned to the start (top) of the grid

::left::
# Left
This shows on the left

::right::
# Right
This shows on the right

::bottom::
This spans both columns at the bottom (footer)

<style>
.two-cols-header {
  column-gap: 20px; /* Adjust the gap size as needed */
}
</style>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Provide a two-cols-footer layout

3 participants