Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

JQuery single page design

Featured Replies

I'm looking to build a responsive site as a photography portfolio, that would preferably be kept to a single page.

 

I would like to show the 2 styles of photography that I do separately, so I have an idea in which, when the page loads,

there are 3 main page elements:

 

• A profile picture that would sit in the centre of the page, which would create a bio/contact form when clicked/pressed.

• An image that takes up half of the page height vertically at the top, but 100% width.

• An image that takes up half of the page height vertically at the bottom, but 100% width.

 

The images that sit at the top and bottom would act as buttons that would open galleries relating to the type

of photography that the images represent, however, ideally, I'd want that process to be as seamless as possible,

i.e if the user clicks the image on top, the profile picture in the middle would rise to the top of the page,

and the image clicked would open out to 100% height, by sliding the middle point to the bottom,

and become a full page gallery, from which users can click or swipe left or right between images.

Within this view, a small close (X) button would appear, which when clicked, would return the user to

the original page state.

 

At this point, I'm just looking to see if this is possible, and if anyone has any suggestions of the best way

to start, I'd really appreciate it.

 

Thanks,

A graphical representation would explain things better!

but anyways from your description .. it seems possible with customized jquery plugin

First off you'd need to have a reasonable amount of experience writing jquery for this, you'll have to do things like getting the viewport height for those 1/2 screen height images, the contact form visibility can be a single toggle method that you can bind to a click event on your main profile picture. For the gallerys the best bet is to create a modal that will be position fixed. Again like the contact form, the method to toggle the modal would be binded to a click event on one of the thumbnails. within the modal you could have a carousel of all the images for that particular type - I'd recommend you fetch the large images using Ajax otherwise you're gonna have horrendous page load time.

 

 

There's a lot of stuff going on here so it's not really beginner stuff. For a start I'd try to create each part as a seperate entity so first the toggling of the contact form, that being the easiest, then the toggling of the modal overlay and gradually add functionality from there.

Edited by rbrtsmith

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.